@vuu-ui/vuu-ui-controls 0.8.16-debug → 0.8.17-debug

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/cjs/index.js CHANGED
@@ -175,7 +175,7 @@ module.exports = __toCommonJS(src_exports);
175
175
  // src/combo-box/ComboBox.tsx
176
176
  var import_vuu_layout7 = require("@vuu-ui/vuu-layout");
177
177
  var import_core14 = require("@salt-ds/core");
178
- var import_react39 = require("react");
178
+ var import_react40 = require("react");
179
179
 
180
180
  // src/common-hooks/collectionProvider.tsx
181
181
  var import_react = require("react");
@@ -1289,7 +1289,7 @@ var DropdownButton = (0, import_react10.forwardRef)(function DropdownButton2({
1289
1289
 
1290
1290
  // src/dropdown/Dropdown.tsx
1291
1291
  var import_core12 = require("@salt-ds/core");
1292
- var import_react37 = require("react");
1292
+ var import_react38 = require("react");
1293
1293
  var import_vuu_layout5 = require("@vuu-ui/vuu-layout");
1294
1294
 
1295
1295
  // src/list/common-hooks/keyUtils.ts
@@ -2200,18 +2200,18 @@ var Highlighter = (props) => {
2200
2200
  };
2201
2201
 
2202
2202
  // src/list/ListItem.tsx
2203
- var import_react17 = require("react");
2203
+ var import_react18 = require("react");
2204
2204
  var import_classnames4 = __toESM(require("classnames"));
2205
2205
 
2206
2206
  // src/list/CheckboxIcon.tsx
2207
+ var import_react17 = __toESM(require("react"));
2207
2208
  var import_classnames3 = __toESM(require("classnames"));
2208
- var import_jsx_runtime5 = require("react/jsx-runtime");
2209
2209
  var classBase3 = "vuuCheckboxIcon";
2210
2210
  var CheckboxIcon = ({
2211
2211
  checked = false,
2212
2212
  disabled = false,
2213
2213
  ...htmlAttributes
2214
- }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2214
+ }) => /* @__PURE__ */ import_react17.default.createElement(
2215
2215
  "span",
2216
2216
  {
2217
2217
  ...htmlAttributes,
@@ -2222,13 +2222,13 @@ var CheckboxIcon = ({
2222
2222
  );
2223
2223
 
2224
2224
  // src/list/ListItem.tsx
2225
- var import_jsx_runtime6 = require("react/jsx-runtime");
2225
+ var import_jsx_runtime5 = require("react/jsx-runtime");
2226
2226
  var classBase4 = "vuuListItem";
2227
- var ListItemProxy = (0, import_react17.forwardRef)(function ListItemNextProxy({
2227
+ var ListItemProxy = (0, import_react18.forwardRef)(function ListItemNextProxy({
2228
2228
  height,
2229
2229
  ...htmlAttributes
2230
2230
  }, forwardedRef) {
2231
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2231
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2232
2232
  "div",
2233
2233
  {
2234
2234
  ...htmlAttributes,
@@ -2239,7 +2239,7 @@ var ListItemProxy = (0, import_react17.forwardRef)(function ListItemNextProxy({
2239
2239
  }
2240
2240
  );
2241
2241
  });
2242
- var ListItem = (0, import_react17.forwardRef)(
2242
+ var ListItem = (0, import_react18.forwardRef)(
2243
2243
  function ListItem2({
2244
2244
  children,
2245
2245
  className: classNameProp,
@@ -2263,7 +2263,7 @@ var ListItem = (0, import_react17.forwardRef)(
2263
2263
  ...styleProp,
2264
2264
  height: itemHeight
2265
2265
  } : styleProp;
2266
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2266
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2267
2267
  "div",
2268
2268
  {
2269
2269
  className,
@@ -2273,8 +2273,8 @@ var ListItem = (0, import_react17.forwardRef)(
2273
2273
  ref: forwardedRef,
2274
2274
  style,
2275
2275
  children: [
2276
- showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CheckboxIcon, { "aria-hidden": true, checked: selected }),
2277
- children && typeof children !== "string" ? children : itemTextHighlightPattern == null ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: `${classBase4}-textWrapper`, children: label || children }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2276
+ showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CheckboxIcon, { "aria-hidden": true, checked: selected }),
2277
+ children && typeof children !== "string" ? children : itemTextHighlightPattern == null ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `${classBase4}-textWrapper`, children: label || children }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2278
2278
  Highlighter,
2279
2279
  {
2280
2280
  matchPattern: itemTextHighlightPattern,
@@ -2291,31 +2291,31 @@ var ListItem = (0, import_react17.forwardRef)(
2291
2291
  var import_vuu_layout4 = require("@vuu-ui/vuu-layout");
2292
2292
  var import_core9 = require("@salt-ds/core");
2293
2293
  var import_classnames6 = __toESM(require("classnames"));
2294
- var import_react32 = require("react");
2294
+ var import_react33 = require("react");
2295
2295
 
2296
2296
  // src/list/useList.ts
2297
2297
  var import_vuu_layout3 = require("@vuu-ui/vuu-layout");
2298
- var import_react29 = require("react");
2298
+ var import_react30 = require("react");
2299
2299
 
2300
2300
  // src/drag-drop/dragDropTypesNext.ts
2301
2301
  var FWD = "fwd";
2302
2302
  var BWD = "bwd";
2303
2303
 
2304
2304
  // src/drag-drop/DragDropProvider.tsx
2305
- var import_react19 = require("react");
2305
+ var import_react20 = require("react");
2306
2306
 
2307
2307
  // src/drag-drop/useGlobalDragDrop.ts
2308
2308
  var import_vuu_utils3 = require("@vuu-ui/vuu-utils");
2309
- var import_react18 = require("react");
2309
+ var import_react19 = require("react");
2310
2310
  var useGlobalDragDrop = ({
2311
2311
  onDragOverDropTarget,
2312
2312
  onDrop
2313
2313
  }) => {
2314
- const dropTargetRef = (0, import_react18.useRef)();
2315
- const measuredDropTargetsRef = (0, import_react18.useRef)();
2316
- const dragDropStateRef = (0, import_react18.useRef)(null);
2317
- const mousePosRef = (0, import_react18.useRef)({ x: 0, y: 0 });
2318
- const overDropTarget = (0, import_react18.useCallback)((x, y) => {
2314
+ const dropTargetRef = (0, import_react19.useRef)();
2315
+ const measuredDropTargetsRef = (0, import_react19.useRef)();
2316
+ const dragDropStateRef = (0, import_react19.useRef)(null);
2317
+ const mousePosRef = (0, import_react19.useRef)({ x: 0, y: 0 });
2318
+ const overDropTarget = (0, import_react19.useCallback)((x, y) => {
2319
2319
  const { current: dropTargets } = measuredDropTargetsRef;
2320
2320
  if (dropTargets) {
2321
2321
  for (const [id, measuredTarget] of Object.entries(dropTargets)) {
@@ -2326,7 +2326,7 @@ var useGlobalDragDrop = ({
2326
2326
  }
2327
2327
  return void 0;
2328
2328
  }, []);
2329
- const dragMouseMoveHandler = (0, import_react18.useCallback)(
2329
+ const dragMouseMoveHandler = (0, import_react19.useCallback)(
2330
2330
  (evt) => {
2331
2331
  const { clientX, clientY } = evt;
2332
2332
  const { current: dragDropState } = dragDropStateRef;
@@ -2360,7 +2360,7 @@ var useGlobalDragDrop = ({
2360
2360
  // eslint-disable-next-line react-hooks/exhaustive-deps
2361
2361
  []
2362
2362
  );
2363
- const dragMouseUpHandler = (0, import_react18.useCallback)(() => {
2363
+ const dragMouseUpHandler = (0, import_react19.useCallback)(() => {
2364
2364
  document.removeEventListener("mousemove", dragMouseMoveHandler, false);
2365
2365
  document.removeEventListener("mouseup", dragMouseUpHandler, false);
2366
2366
  const { current: dragDropState } = dragDropStateRef;
@@ -2374,7 +2374,7 @@ var useGlobalDragDrop = ({
2374
2374
  }
2375
2375
  }
2376
2376
  }, [dragMouseMoveHandler, onDrop]);
2377
- const resumeDrag = (0, import_react18.useCallback)(
2377
+ const resumeDrag = (0, import_react19.useCallback)(
2378
2378
  (dragDropState) => {
2379
2379
  console.log(`resume drag of `, {
2380
2380
  el: dragDropState.draggableElement
@@ -2393,14 +2393,14 @@ var useGlobalDragDrop = ({
2393
2393
  };
2394
2394
 
2395
2395
  // src/drag-drop/DragDropProvider.tsx
2396
- var import_jsx_runtime7 = require("react/jsx-runtime");
2396
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2397
2397
  var NO_DRAG_CONTEXT = {
2398
2398
  isDragSource: void 0,
2399
2399
  isDropTarget: void 0,
2400
2400
  register: () => void 0
2401
2401
  };
2402
2402
  var unconfiguredRegistrationCall = () => console.log(`have you forgotten to provide a DragDrop Provider ?`);
2403
- var DragDropContext = (0, import_react19.createContext)({
2403
+ var DragDropContext = (0, import_react20.createContext)({
2404
2404
  registerDragDropParty: unconfiguredRegistrationCall
2405
2405
  });
2406
2406
  var measureDropTargets = (dropTargetIds = []) => {
@@ -2417,12 +2417,12 @@ var DragDropProvider = ({
2417
2417
  children,
2418
2418
  dragSources: dragSourcesProp
2419
2419
  }) => {
2420
- const resumeDragHandlers = (0, import_react19.useMemo)(
2420
+ const resumeDragHandlers = (0, import_react20.useMemo)(
2421
2421
  () => /* @__PURE__ */ new Map(),
2422
2422
  []
2423
2423
  );
2424
- const dropHandlers = (0, import_react19.useMemo)(() => /* @__PURE__ */ new Map(), []);
2425
- const handleDragOverDropTarget = (0, import_react19.useCallback)(
2424
+ const dropHandlers = (0, import_react20.useMemo)(() => /* @__PURE__ */ new Map(), []);
2425
+ const handleDragOverDropTarget = (0, import_react20.useCallback)(
2426
2426
  (dropTargetId, dragDropState) => {
2427
2427
  const resumeDrag2 = resumeDragHandlers.get(dropTargetId);
2428
2428
  if (resumeDrag2) {
@@ -2433,7 +2433,7 @@ var DragDropProvider = ({
2433
2433
  },
2434
2434
  [resumeDragHandlers]
2435
2435
  );
2436
- const handleDrop = (0, import_react19.useCallback)(
2436
+ const handleDrop = (0, import_react20.useCallback)(
2437
2437
  (dropTargetId, dragDropState) => {
2438
2438
  const handleDrop2 = dropHandlers.get(dropTargetId);
2439
2439
  if (handleDrop2) {
@@ -2446,7 +2446,7 @@ var DragDropProvider = ({
2446
2446
  onDragOverDropTarget: handleDragOverDropTarget,
2447
2447
  onDrop: handleDrop
2448
2448
  });
2449
- const [dragSources, dropTargets] = (0, import_react19.useMemo)(() => {
2449
+ const [dragSources, dropTargets] = (0, import_react20.useMemo)(() => {
2450
2450
  const sources = /* @__PURE__ */ new Map();
2451
2451
  const targets = /* @__PURE__ */ new Map();
2452
2452
  for (const [sourceId, { dropTargets: dropTargets2 }] of Object.entries(dragSourcesProp)) {
@@ -2468,7 +2468,7 @@ var DragDropProvider = ({
2468
2468
  }
2469
2469
  return [sources, targets];
2470
2470
  }, [dragSourcesProp]);
2471
- const onDragOut = (0, import_react19.useCallback)(
2471
+ const onDragOut = (0, import_react20.useCallback)(
2472
2472
  (id, dragDropState) => {
2473
2473
  measuredDropTargetsRef.current = measureDropTargets(dragSources.get(id));
2474
2474
  resumeDrag(dragDropState);
@@ -2476,10 +2476,10 @@ var DragDropProvider = ({
2476
2476
  },
2477
2477
  [dragSources, measuredDropTargetsRef, resumeDrag]
2478
2478
  );
2479
- const onEndOfDragOperation = (0, import_react19.useCallback)((id) => {
2479
+ const onEndOfDragOperation = (0, import_react20.useCallback)((id) => {
2480
2480
  console.log(`end of drag operation, id= ${id}`);
2481
2481
  }, []);
2482
- const registerDragDropParty = (0, import_react19.useCallback)(
2482
+ const registerDragDropParty = (0, import_react20.useCallback)(
2483
2483
  (id, resumeDrag2, onDrop) => {
2484
2484
  if (resumeDrag2) {
2485
2485
  resumeDragHandlers.set(id, resumeDrag2);
@@ -2489,7 +2489,7 @@ var DragDropProvider = ({
2489
2489
  },
2490
2490
  [dropHandlers, resumeDragHandlers]
2491
2491
  );
2492
- const contextValue = (0, import_react19.useMemo)(
2492
+ const contextValue = (0, import_react20.useMemo)(
2493
2493
  () => ({
2494
2494
  dragSources,
2495
2495
  dropTargets,
@@ -2505,7 +2505,7 @@ var DragDropProvider = ({
2505
2505
  registerDragDropParty
2506
2506
  ]
2507
2507
  );
2508
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DragDropContext.Provider, { value: contextValue, children });
2508
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DragDropContext.Provider, { value: contextValue, children });
2509
2509
  };
2510
2510
  var useDragDropProvider = (id) => {
2511
2511
  var _a2, _b;
@@ -2515,7 +2515,7 @@ var useDragDropProvider = (id) => {
2515
2515
  onDragOut,
2516
2516
  onEndOfDragOperation,
2517
2517
  registerDragDropParty
2518
- } = (0, import_react19.useContext)(DragDropContext);
2518
+ } = (0, import_react20.useContext)(DragDropContext);
2519
2519
  if (id && (dragSources || dropTargets)) {
2520
2520
  const isDragSource = (_a2 = dragSources == null ? void 0 : dragSources.has(id)) != null ? _a2 : false;
2521
2521
  const isDropTarget = (_b = dropTargets == null ? void 0 : dropTargets.has(id)) != null ? _b : false;
@@ -2534,7 +2534,7 @@ var useDragDropProvider = (id) => {
2534
2534
  // src/drag-drop/useDragDropNext.tsx
2535
2535
  var import_vuu_layout2 = require("@vuu-ui/vuu-layout");
2536
2536
  var import_vuu_utils5 = require("@vuu-ui/vuu-utils");
2537
- var import_react27 = require("react");
2537
+ var import_react28 = require("react");
2538
2538
 
2539
2539
  // src/drag-drop/DragDropState.ts
2540
2540
  var DragDropState = class {
@@ -2565,16 +2565,16 @@ var DragDropState = class {
2565
2565
  // src/drag-drop/Draggable.tsx
2566
2566
  var import_core7 = require("@salt-ds/core");
2567
2567
  var import_classnames5 = __toESM(require("classnames"));
2568
- var import_react20 = require("react");
2568
+ var import_react21 = require("react");
2569
2569
  var import_vuu_popups2 = require("@vuu-ui/vuu-popups");
2570
- var import_jsx_runtime8 = require("react/jsx-runtime");
2570
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2571
2571
  var makeClassNames = (classNames) => classNames.split(" ").map((className) => `vuuDraggable-${className}`);
2572
- var Draggable = (0, import_react20.forwardRef)(
2572
+ var Draggable = (0, import_react21.forwardRef)(
2573
2573
  function Draggable2({ wrapperClassName, element, onDropped, onTransitionEnd, style, scale = 1 }, forwardedRef) {
2574
- const handleVuuDrop = (0, import_react20.useCallback)(() => {
2574
+ const handleVuuDrop = (0, import_react21.useCallback)(() => {
2575
2575
  onDropped == null ? void 0 : onDropped();
2576
2576
  }, [onDropped]);
2577
- const callbackRef = (0, import_react20.useCallback)(
2577
+ const callbackRef = (0, import_react21.useCallback)(
2578
2578
  (el) => {
2579
2579
  if (el) {
2580
2580
  el.innerHTML = "";
@@ -2588,20 +2588,20 @@ var Draggable = (0, import_react20.forwardRef)(
2588
2588
  [element, handleVuuDrop, scale]
2589
2589
  );
2590
2590
  const forkedRef = (0, import_core7.useForkRef)(forwardedRef, callbackRef);
2591
- const position = (0, import_react20.useMemo)(
2591
+ const position = (0, import_react21.useMemo)(
2592
2592
  () => ({
2593
2593
  left: 0,
2594
2594
  top: 0
2595
2595
  }),
2596
2596
  []
2597
2597
  );
2598
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_vuu_popups2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2598
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_vuu_popups2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2599
2599
  import_vuu_popups2.PopupComponent,
2600
2600
  {
2601
2601
  anchorElement: { current: document.body },
2602
2602
  placement: "absolute",
2603
2603
  position,
2604
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2604
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2605
2605
  "div",
2606
2606
  {
2607
2607
  className: (0, import_classnames5.default)("vuuDraggable", ...makeClassNames(wrapperClassName)),
@@ -2871,17 +2871,17 @@ var isContainerScrollable = (scrollableContainer, orientation) => {
2871
2871
  };
2872
2872
 
2873
2873
  // src/drag-drop/useAutoScroll.ts
2874
- var import_react21 = require("react");
2874
+ var import_react22 = require("react");
2875
2875
  var useAutoScroll = ({
2876
2876
  containerRef,
2877
2877
  onScrollingStopped,
2878
2878
  orientation = "vertical"
2879
2879
  }) => {
2880
- const scrollTimer = (0, import_react21.useRef)(null);
2881
- const isScrolling = (0, import_react21.useRef)(false);
2882
- const scrollPosRef = (0, import_react21.useRef)(0);
2883
- const lastScrollDirectionRef = (0, import_react21.useRef)("fwd");
2884
- const stopScrolling = (0, import_react21.useCallback)(
2880
+ const scrollTimer = (0, import_react22.useRef)(null);
2881
+ const isScrolling = (0, import_react22.useRef)(false);
2882
+ const scrollPosRef = (0, import_react22.useRef)(0);
2883
+ const lastScrollDirectionRef = (0, import_react22.useRef)("fwd");
2884
+ const stopScrolling = (0, import_react22.useCallback)(
2885
2885
  (atEnd = false) => {
2886
2886
  console.log("[useAutoScroll] stopScrolling");
2887
2887
  if (scrollTimer.current !== null) {
@@ -2897,7 +2897,7 @@ var useAutoScroll = ({
2897
2897
  },
2898
2898
  [onScrollingStopped]
2899
2899
  );
2900
- const startScrolling = (0, import_react21.useCallback)(
2900
+ const startScrolling = (0, import_react22.useCallback)(
2901
2901
  (direction, scrollRate, scrollUnit = 30) => {
2902
2902
  const { current: container } = containerRef;
2903
2903
  if (container) {
@@ -2936,14 +2936,14 @@ var useAutoScroll = ({
2936
2936
  };
2937
2937
 
2938
2938
  // src/drag-drop/useDragDropCopy.ts
2939
- var import_react22 = require("react");
2939
+ var import_react23 = require("react");
2940
2940
  var useDragDropCopy = ({
2941
2941
  selected,
2942
2942
  viewportRange
2943
2943
  }) => {
2944
- const rangeRef = (0, import_react22.useRef)();
2944
+ const rangeRef = (0, import_react23.useRef)();
2945
2945
  rangeRef.current = viewportRange;
2946
- const beginDrag = (0, import_react22.useCallback)(
2946
+ const beginDrag = (0, import_react23.useCallback)(
2947
2947
  (dragElement) => {
2948
2948
  if (dragElement.ariaSelected && Array.isArray(selected) && selected.length > 1) {
2949
2949
  console.log("its a selected element, and we have a multi select");
@@ -2951,8 +2951,8 @@ var useDragDropCopy = ({
2951
2951
  },
2952
2952
  [selected]
2953
2953
  );
2954
- const drag = (0, import_react22.useCallback)(() => void 0, []);
2955
- const drop = (0, import_react22.useCallback)(() => void 0, []);
2954
+ const drag = (0, import_react23.useCallback)(() => void 0, []);
2955
+ const drop = (0, import_react23.useCallback)(() => void 0, []);
2956
2956
  return {
2957
2957
  beginDrag,
2958
2958
  drag,
@@ -2961,14 +2961,14 @@ var useDragDropCopy = ({
2961
2961
  };
2962
2962
 
2963
2963
  // src/drag-drop/useDragDropIndicator.tsx
2964
- var import_react24 = require("react");
2964
+ var import_react25 = require("react");
2965
2965
 
2966
2966
  // src/drag-drop/useDropIndicator.ts
2967
- var import_react23 = require("react");
2967
+ var import_react24 = require("react");
2968
2968
  var useDropIndicator = () => {
2969
- const spacer = (0, import_react23.useMemo)(() => createDropIndicatorPosition(), []);
2970
- const clearSpacer = (0, import_react23.useCallback)(() => spacer.remove(), [spacer]);
2971
- const positionDropIndicator = (0, import_react23.useCallback)(
2969
+ const spacer = (0, import_react24.useMemo)(() => createDropIndicatorPosition(), []);
2970
+ const clearSpacer = (0, import_react24.useCallback)(() => spacer.remove(), [spacer]);
2971
+ const positionDropIndicator = (0, import_react24.useCallback)(
2972
2972
  (dropTarget, dropZone2 = "end") => {
2973
2973
  if (dropZone2 === "end") {
2974
2974
  dropTarget.element.after(spacer);
@@ -2986,7 +2986,7 @@ var useDropIndicator = () => {
2986
2986
  };
2987
2987
 
2988
2988
  // src/drag-drop/useDragDropIndicator.tsx
2989
- var import_jsx_runtime9 = require("react/jsx-runtime");
2989
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2990
2990
  var NOT_OVERFLOWED2 = ':not([data-overflowed="true"])';
2991
2991
  var NOT_HIDDEN2 = ':not([aria-hidden="true"])';
2992
2992
  var useDragDropIndicator = ({
@@ -2997,18 +2997,18 @@ var useDragDropIndicator = ({
2997
2997
  selected,
2998
2998
  viewportRange
2999
2999
  }) => {
3000
- const dragDirectionRef = (0, import_react24.useRef)();
3001
- const dropIndicatorRef = (0, import_react24.useRef)(null);
3002
- const dropTargetRef = (0, import_react24.useRef)(null);
3003
- const dropZoneRef = (0, import_react24.useRef)("");
3004
- const isScrollable = (0, import_react24.useRef)(false);
3005
- const dragPosRef = (0, import_react24.useRef)(-1);
3006
- const measuredDropTargets = (0, import_react24.useRef)([]);
3007
- const overflowMenuShowingRef = (0, import_react24.useRef)(false);
3008
- const [showOverflow, setShowOverflow] = (0, import_react24.useState)(false);
3009
- const [dropIndicator, setDropIndicator] = (0, import_react24.useState)();
3000
+ const dragDirectionRef = (0, import_react25.useRef)();
3001
+ const dropIndicatorRef = (0, import_react25.useRef)(null);
3002
+ const dropTargetRef = (0, import_react25.useRef)(null);
3003
+ const dropZoneRef = (0, import_react25.useRef)("");
3004
+ const isScrollable = (0, import_react25.useRef)(false);
3005
+ const dragPosRef = (0, import_react25.useRef)(-1);
3006
+ const measuredDropTargets = (0, import_react25.useRef)([]);
3007
+ const overflowMenuShowingRef = (0, import_react25.useRef)(false);
3008
+ const [showOverflow, setShowOverflow] = (0, import_react25.useState)(false);
3009
+ const [dropIndicator, setDropIndicator] = (0, import_react25.useState)();
3010
3010
  const { clearSpacer, positionDropIndicator } = useDropIndicator();
3011
- const draggedItemRef = (0, import_react24.useRef)();
3011
+ const draggedItemRef = (0, import_react25.useRef)();
3012
3012
  const fullItemQuery = `:is(${itemQuery}${NOT_OVERFLOWED2}${NOT_HIDDEN2},[data-overflow-indicator])`;
3013
3013
  const indexOf = (dropTarget) => measuredDropTargets.current.findIndex((d) => d.id === dropTarget.id);
3014
3014
  const reposition = (dropTarget, distance, indexShift) => {
@@ -3019,12 +3019,12 @@ var useDragDropIndicator = ({
3019
3019
  dropTarget.currentIndex += indexShift;
3020
3020
  }
3021
3021
  };
3022
- const rangeRef = (0, import_react24.useRef)();
3022
+ const rangeRef = (0, import_react25.useRef)();
3023
3023
  rangeRef.current = viewportRange;
3024
- const handleScrollStart = (0, import_react24.useCallback)(() => {
3024
+ const handleScrollStart = (0, import_react25.useCallback)(() => {
3025
3025
  clearSpacer();
3026
3026
  }, [clearSpacer]);
3027
- const handleScrollStop = (0, import_react24.useCallback)(
3027
+ const handleScrollStop = (0, import_react25.useCallback)(
3028
3028
  (scrollDirection, _scrollPos, atEnd) => {
3029
3029
  const { current: container } = containerRef;
3030
3030
  const { current: draggedItem } = draggedItemRef;
@@ -3062,7 +3062,7 @@ var useDragDropIndicator = ({
3062
3062
  // setVizData,
3063
3063
  ]
3064
3064
  );
3065
- const beginDrag = (0, import_react24.useCallback)(
3065
+ const beginDrag = (0, import_react25.useCallback)(
3066
3066
  (dragElement) => {
3067
3067
  if (dragElement.ariaSelected && Array.isArray(selected) && selected.length > 1) {
3068
3068
  console.log("its a selected element, and we have a multi select");
@@ -3108,7 +3108,7 @@ var useDragDropIndicator = ({
3108
3108
  height: 2
3109
3109
  };
3110
3110
  setDropIndicator(
3111
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3111
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3112
3112
  Draggable,
3113
3113
  {
3114
3114
  wrapperClassName: "dropIndicatorContainer",
@@ -3130,7 +3130,7 @@ var useDragDropIndicator = ({
3130
3130
  positionDropIndicator
3131
3131
  ]
3132
3132
  );
3133
- const drag = (0, import_react24.useCallback)(
3133
+ const drag = (0, import_react25.useCallback)(
3134
3134
  (dragPos, mouseMoveDirection) => {
3135
3135
  const { current: currentDropTarget } = dropTargetRef;
3136
3136
  const { current: draggedItem } = draggedItemRef;
@@ -3176,7 +3176,7 @@ var useDragDropIndicator = ({
3176
3176
  },
3177
3177
  [containerRef, orientation, positionDropIndicator]
3178
3178
  );
3179
- const drop = (0, import_react24.useCallback)(() => {
3179
+ const drop = (0, import_react25.useCallback)(() => {
3180
3180
  clearSpacer();
3181
3181
  const { current: draggedItem } = draggedItemRef;
3182
3182
  const { current: dropTarget } = dropTargetRef;
@@ -3221,7 +3221,7 @@ var useDragDropIndicator = ({
3221
3221
  }
3222
3222
  setShowOverflow(false);
3223
3223
  }, [clearSpacer, onDrop]);
3224
- const releaseDrag = (0, import_react24.useCallback)(() => {
3224
+ const releaseDrag = (0, import_react25.useCallback)(() => {
3225
3225
  }, []);
3226
3226
  return {
3227
3227
  beginDrag,
@@ -3236,19 +3236,19 @@ var useDragDropIndicator = ({
3236
3236
  };
3237
3237
 
3238
3238
  // src/drag-drop/useDragDropNaturalMovementNext.tsx
3239
- var import_react26 = require("react");
3239
+ var import_react27 = require("react");
3240
3240
 
3241
3241
  // src/drag-drop/useDragDisplacers.ts
3242
- var import_react25 = require("react");
3242
+ var import_react26 = require("react");
3243
3243
  var useDragDisplacers = (orientation = "horizontal") => {
3244
- const animationFrame = (0, import_react25.useRef)(0);
3245
- const transitioning = (0, import_react25.useRef)(false);
3246
- const spacers = (0, import_react25.useMemo)(
3244
+ const animationFrame = (0, import_react26.useRef)(0);
3245
+ const transitioning = (0, import_react26.useRef)(false);
3246
+ const spacers = (0, import_react26.useMemo)(
3247
3247
  // We only need to listen for transition end on one of the spacers
3248
3248
  () => [createDragSpacer(transitioning), createDragSpacer()],
3249
3249
  []
3250
3250
  );
3251
- const animateTransition = (0, import_react25.useCallback)(
3251
+ const animateTransition = (0, import_react26.useCallback)(
3252
3252
  (size, propertyName = "width") => {
3253
3253
  const [spacer1, spacer2] = spacers;
3254
3254
  animationFrame.current = requestAnimationFrame(() => {
@@ -3261,7 +3261,7 @@ var useDragDisplacers = (orientation = "horizontal") => {
3261
3261
  },
3262
3262
  [spacers]
3263
3263
  );
3264
- const clearSpacers = (0, import_react25.useCallback)(
3264
+ const clearSpacers = (0, import_react26.useCallback)(
3265
3265
  (useTransition = false) => {
3266
3266
  if (useTransition === true) {
3267
3267
  const [spacer] = spacers;
@@ -3278,13 +3278,13 @@ var useDragDisplacers = (orientation = "horizontal") => {
3278
3278
  },
3279
3279
  [animateTransition, orientation, spacers]
3280
3280
  );
3281
- const cancelAnyPendingAnimation = (0, import_react25.useCallback)(() => {
3281
+ const cancelAnyPendingAnimation = (0, import_react26.useCallback)(() => {
3282
3282
  if (animationFrame.current) {
3283
3283
  cancelAnimationFrame(animationFrame.current);
3284
3284
  animationFrame.current = 0;
3285
3285
  }
3286
3286
  }, []);
3287
- const displaceItem = (0, import_react25.useCallback)(
3287
+ const displaceItem = (0, import_react26.useCallback)(
3288
3288
  (dropTargets, dropTarget, size, useTransition = false, direction = "static") => {
3289
3289
  if (dropTarget) {
3290
3290
  const propertyName = orientation === "horizontal" ? "width" : "height";
@@ -3331,7 +3331,7 @@ var useDragDisplacers = (orientation = "horizontal") => {
3331
3331
  spacers
3332
3332
  ]
3333
3333
  );
3334
- const displaceLastItem = (0, import_react25.useCallback)(
3334
+ const displaceLastItem = (0, import_react26.useCallback)(
3335
3335
  (dropTargets, dropTarget, size, useTransition = false, direction = "static") => {
3336
3336
  const propertyName = orientation === "horizontal" ? "width" : "height";
3337
3337
  const [spacer1, spacer2] = spacers;
@@ -3384,22 +3384,22 @@ var useDragDropNaturalMovement = ({
3384
3384
  selected,
3385
3385
  viewportRange
3386
3386
  }) => {
3387
- const dragDirectionRef = (0, import_react26.useRef)();
3388
- const isScrollable = (0, import_react26.useRef)(false);
3389
- const dragPosRef = (0, import_react26.useRef)(-1);
3390
- const measuredDropTargets = (0, import_react26.useRef)([]);
3391
- const overflowMenuShowingRef = (0, import_react26.useRef)(false);
3392
- const [showOverflow, setShowOverflow] = (0, import_react26.useState)(false);
3387
+ const dragDirectionRef = (0, import_react27.useRef)();
3388
+ const isScrollable = (0, import_react27.useRef)(false);
3389
+ const dragPosRef = (0, import_react27.useRef)(-1);
3390
+ const measuredDropTargets = (0, import_react27.useRef)([]);
3391
+ const overflowMenuShowingRef = (0, import_react27.useRef)(false);
3392
+ const [showOverflow, setShowOverflow] = (0, import_react27.useState)(false);
3393
3393
  const { clearSpacers, displaceItem, displaceLastItem } = useDragDisplacers(orientation);
3394
- const draggedItemRef = (0, import_react26.useRef)();
3394
+ const draggedItemRef = (0, import_react27.useRef)();
3395
3395
  const fullItemQuery = `:is(${itemQuery}${NOT_OVERFLOWED}${NOT_HIDDEN},.vuuOverflowContainer-OverflowIndicator)`;
3396
3396
  const indexOf = (dropTarget) => measuredDropTargets.current.findIndex((d) => d.id === dropTarget.id);
3397
- const rangeRef = (0, import_react26.useRef)();
3397
+ const rangeRef = (0, import_react27.useRef)();
3398
3398
  rangeRef.current = viewportRange;
3399
- const handleScrollStart = (0, import_react26.useCallback)(() => {
3399
+ const handleScrollStart = (0, import_react27.useCallback)(() => {
3400
3400
  clearSpacers();
3401
3401
  }, [clearSpacers]);
3402
- const handleScrollStop = (0, import_react26.useCallback)(
3402
+ const handleScrollStop = (0, import_react27.useCallback)(
3403
3403
  (scrollDirection, _scrollPos, atEnd) => {
3404
3404
  const { current: container } = containerRef;
3405
3405
  const { current: draggedItem } = draggedItemRef;
@@ -3440,7 +3440,7 @@ var useDragDropNaturalMovement = ({
3440
3440
  },
3441
3441
  [containerRef, displaceItem, displaceLastItem, fullItemQuery, orientation]
3442
3442
  );
3443
- const beginDrag = (0, import_react26.useCallback)(
3443
+ const beginDrag = (0, import_react27.useCallback)(
3444
3444
  (dragElement) => {
3445
3445
  if (
3446
3446
  //TODO need a different check for selected
@@ -3519,7 +3519,7 @@ var useDragDropNaturalMovement = ({
3519
3519
  viewportRange
3520
3520
  ]
3521
3521
  );
3522
- const [showPopup, hidePopup] = (0, import_react26.useMemo)(() => {
3522
+ const [showPopup, hidePopup] = (0, import_react27.useMemo)(() => {
3523
3523
  let popupShowing = false;
3524
3524
  const show = (dropTarget) => {
3525
3525
  if (!popupShowing) {
@@ -3545,7 +3545,7 @@ var useDragDropNaturalMovement = ({
3545
3545
  };
3546
3546
  return [show, hide];
3547
3547
  }, []);
3548
- const drag = (0, import_react26.useCallback)(
3548
+ const drag = (0, import_react27.useCallback)(
3549
3549
  (dragPos, mouseMoveDirection) => {
3550
3550
  const { current: draggedItem } = draggedItemRef;
3551
3551
  if (draggedItem) {
@@ -3586,7 +3586,7 @@ var useDragDropNaturalMovement = ({
3586
3586
  },
3587
3587
  [containerRef, displaceItem, displaceLastItem, hidePopup, showPopup]
3588
3588
  );
3589
- const drop = (0, import_react26.useCallback)(() => {
3589
+ const drop = (0, import_react27.useCallback)(() => {
3590
3590
  var _a2;
3591
3591
  clearSpacers();
3592
3592
  const { current: dropTargets } = measuredDropTargets;
@@ -3620,7 +3620,7 @@ var useDragDropNaturalMovement = ({
3620
3620
  }
3621
3621
  }
3622
3622
  }, [clearSpacers, containerRef, onDrop]);
3623
- const releaseDrag = (0, import_react26.useCallback)(() => {
3623
+ const releaseDrag = (0, import_react27.useCallback)(() => {
3624
3624
  clearSpacers(true);
3625
3625
  }, [clearSpacers]);
3626
3626
  return {
@@ -3635,7 +3635,7 @@ var useDragDropNaturalMovement = ({
3635
3635
  };
3636
3636
 
3637
3637
  // src/drag-drop/useDragDropNext.tsx
3638
- var import_jsx_runtime10 = require("react/jsx-runtime");
3638
+ var import_jsx_runtime9 = require("react/jsx-runtime");
3639
3639
  var NULL_DRAG_DROP_RESULT = {
3640
3640
  beginDrag: () => void 0,
3641
3641
  drag: () => void 0,
@@ -3675,27 +3675,27 @@ var useDragDropNext = ({
3675
3675
  orientation,
3676
3676
  ...dragDropProps
3677
3677
  }) => {
3678
- const dragBoundaries = (0, import_react27.useRef)({
3678
+ const dragBoundaries = (0, import_react28.useRef)({
3679
3679
  start: 0,
3680
3680
  end: 0,
3681
3681
  contraStart: 0,
3682
3682
  contraEnd: 0
3683
3683
  });
3684
- const [draggableStatus, setDraggableStatus] = (0, import_react27.useState)({
3684
+ const [draggableStatus, setDraggableStatus] = (0, import_react28.useState)({
3685
3685
  draggable: void 0,
3686
3686
  draggedItemIndex: -1,
3687
3687
  isDragging: false
3688
3688
  });
3689
- const dragDropStateRef = (0, import_react27.useRef)(null);
3690
- const mouseDownTimer = (0, import_react27.useRef)(null);
3691
- const isScrollableRef = (0, import_react27.useRef)(false);
3692
- const mousePosRef = (0, import_react27.useRef)({ x: 0, y: 0 });
3693
- const startPosRef = (0, import_react27.useRef)({ x: 0, y: 0 });
3694
- const settlingItemRef = (0, import_react27.useRef)(null);
3695
- const scrollableContainerRef = (0, import_react27.useRef)(null);
3696
- const dropPosRef = (0, import_react27.useRef)(-1);
3697
- const dropIndexRef = (0, import_react27.useRef)(-1);
3698
- const handleScrollStopRef = (0, import_react27.useRef)();
3689
+ const dragDropStateRef = (0, import_react28.useRef)(null);
3690
+ const mouseDownTimer = (0, import_react28.useRef)(null);
3691
+ const isScrollableRef = (0, import_react28.useRef)(false);
3692
+ const mousePosRef = (0, import_react28.useRef)({ x: 0, y: 0 });
3693
+ const startPosRef = (0, import_react28.useRef)({ x: 0, y: 0 });
3694
+ const settlingItemRef = (0, import_react28.useRef)(null);
3695
+ const scrollableContainerRef = (0, import_react28.useRef)(null);
3696
+ const dropPosRef = (0, import_react28.useRef)(-1);
3697
+ const dropIndexRef = (0, import_react28.useRef)(-1);
3698
+ const handleScrollStopRef = (0, import_react28.useRef)();
3699
3699
  const {
3700
3700
  isDragSource,
3701
3701
  isDropTarget,
@@ -3703,9 +3703,9 @@ var useDragDropNext = ({
3703
3703
  onEndOfDragOperation,
3704
3704
  register
3705
3705
  } = useDragDropProvider(id);
3706
- const dragMouseMoveHandlerRef = (0, import_react27.useRef)();
3707
- const dragMouseUpHandlerRef = (0, import_react27.useRef)();
3708
- const attachDragHandlers = (0, import_react27.useCallback)(() => {
3706
+ const dragMouseMoveHandlerRef = (0, import_react28.useRef)();
3707
+ const dragMouseUpHandlerRef = (0, import_react28.useRef)();
3708
+ const attachDragHandlers = (0, import_react28.useCallback)(() => {
3709
3709
  const { current: dragMove } = dragMouseMoveHandlerRef;
3710
3710
  const { current: dragUp } = dragMouseUpHandlerRef;
3711
3711
  if (dragMove && dragUp) {
@@ -3713,7 +3713,7 @@ var useDragDropNext = ({
3713
3713
  document.addEventListener("mouseup", dragUp, false);
3714
3714
  }
3715
3715
  }, []);
3716
- const removeDragHandlers = (0, import_react27.useCallback)(() => {
3716
+ const removeDragHandlers = (0, import_react28.useCallback)(() => {
3717
3717
  const { current: dragMove } = dragMouseMoveHandlerRef;
3718
3718
  const { current: dragUp } = dragMouseUpHandlerRef;
3719
3719
  if (dragMove && dragUp) {
@@ -3721,7 +3721,7 @@ var useDragDropNext = ({
3721
3721
  document.removeEventListener("mouseup", dragUp, false);
3722
3722
  }
3723
3723
  }, []);
3724
- const setDragBoundaries = (0, import_react27.useCallback)(
3724
+ const setDragBoundaries = (0, import_react28.useCallback)(
3725
3725
  (containerRect, draggableRect) => {
3726
3726
  const { current: container } = containerRef;
3727
3727
  if (container) {
@@ -3740,7 +3740,7 @@ var useDragDropNext = ({
3740
3740
  },
3741
3741
  [containerRef, itemQuery, orientation]
3742
3742
  );
3743
- const terminateDrag = (0, import_react27.useCallback)(() => {
3743
+ const terminateDrag = (0, import_react28.useCallback)(() => {
3744
3744
  var _a2;
3745
3745
  const { current: settlingItem2 } = settlingItemRef;
3746
3746
  settlingItemRef.current = null;
@@ -3761,7 +3761,7 @@ var useDragDropNext = ({
3761
3761
  (0, import_vuu_utils5.dispatchCustomEvent)(settlingItem2, "vuu-dropped");
3762
3762
  }
3763
3763
  }, [containerRef, itemQuery, onDropSettle]);
3764
- const getScrollDirection = (0, import_react27.useCallback)(
3764
+ const getScrollDirection = (0, import_react28.useCallback)(
3765
3765
  (mousePos) => {
3766
3766
  if (scrollableContainerRef.current && dragDropStateRef.current) {
3767
3767
  const { mouseOffset } = dragDropStateRef.current;
@@ -3782,7 +3782,7 @@ var useDragDropNext = ({
3782
3782
  [scrollableContainerRef, orientation]
3783
3783
  );
3784
3784
  const useDragDropHook = allowDragDrop === true || allowDragDrop === "natural-movement" ? useDragDropNaturalMovement : allowDragDrop === "drop-indicator" ? useDragDropIndicator : allowDragDrop === "drag-copy" ? useDragDropCopy : noDragDrop;
3785
- const onScrollingStopped = (0, import_react27.useCallback)(
3785
+ const onScrollingStopped = (0, import_react28.useCallback)(
3786
3786
  (scrollDirection, scrollPos, atEnd) => {
3787
3787
  var _a2;
3788
3788
  (_a2 = handleScrollStopRef.current) == null ? void 0 : _a2.call(handleScrollStopRef, scrollDirection, scrollPos, atEnd);
@@ -3794,7 +3794,7 @@ var useDragDropNext = ({
3794
3794
  onScrollingStopped,
3795
3795
  orientation
3796
3796
  });
3797
- const handleDrop = (0, import_react27.useCallback)(
3797
+ const handleDrop = (0, import_react28.useCallback)(
3798
3798
  (fromIndex, toIndex, options) => {
3799
3799
  var _a2;
3800
3800
  dropPosRef.current = toIndex;
@@ -3833,7 +3833,7 @@ var useDragDropNext = ({
3833
3833
  orientation
3834
3834
  });
3835
3835
  handleScrollStopRef.current = handleScrollStop;
3836
- const dragHandedOvertoProvider = (0, import_react27.useCallback)(
3836
+ const dragHandedOvertoProvider = (0, import_react28.useCallback)(
3837
3837
  (dragDistance, clientContraPos) => {
3838
3838
  const { CONTRA_POS } = dimensions(orientation);
3839
3839
  const lastClientContraPos = mousePosRef.current[CONTRA_POS];
@@ -3863,7 +3863,7 @@ var useDragDropNext = ({
3863
3863
  removeDragHandlers
3864
3864
  ]
3865
3865
  );
3866
- const dragMouseMoveHandler = (0, import_react27.useCallback)(
3866
+ const dragMouseMoveHandler = (0, import_react28.useCallback)(
3867
3867
  (evt) => {
3868
3868
  const { CLIENT_POS, CONTRA_CLIENT_POS, POS } = dimensions(orientation);
3869
3869
  const { clientX, clientY } = evt;
@@ -3918,7 +3918,7 @@ var useDragDropNext = ({
3918
3918
  stopScrolling
3919
3919
  ]
3920
3920
  );
3921
- const dragMouseUpHandler = (0, import_react27.useCallback)(() => {
3921
+ const dragMouseUpHandler = (0, import_react28.useCallback)(() => {
3922
3922
  removeDragHandlers();
3923
3923
  if (dragDropStateRef.current) {
3924
3924
  settlingItemRef.current = dragDropStateRef.current.draggableElement;
@@ -3932,7 +3932,7 @@ var useDragDropNext = ({
3932
3932
  }, [drop, removeDragHandlers]);
3933
3933
  dragMouseMoveHandlerRef.current = dragMouseMoveHandler;
3934
3934
  dragMouseUpHandlerRef.current = dragMouseUpHandler;
3935
- const resumeDrag = (0, import_react27.useCallback)(
3935
+ const resumeDrag = (0, import_react28.useCallback)(
3936
3936
  (dragDropState) => {
3937
3937
  dragDropStateRef.current = dragDropState;
3938
3938
  const { draggableElement, mouseOffset } = dragDropState;
@@ -3952,7 +3952,7 @@ var useDragDropNext = ({
3952
3952
  },
3953
3953
  [attachDragHandlers, beginDrag, containerRef, setDragBoundaries]
3954
3954
  );
3955
- const dragStart = (0, import_react27.useCallback)(
3955
+ const dragStart = (0, import_react28.useCallback)(
3956
3956
  (evt) => {
3957
3957
  const { target } = evt;
3958
3958
  const dragElement = getDraggableElement(target, itemQuery);
@@ -3980,7 +3980,7 @@ var useDragDropNext = ({
3980
3980
  } = dragElement;
3981
3981
  setDraggableStatus({
3982
3982
  isDragging: true,
3983
- draggable: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3983
+ draggable: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3984
3984
  Draggable,
3985
3985
  {
3986
3986
  element: cloneElement3(dragElement),
@@ -4009,7 +4009,7 @@ var useDragDropNext = ({
4009
4009
  terminateDrag
4010
4010
  ]
4011
4011
  );
4012
- const preDragMouseMoveHandler = (0, import_react27.useCallback)(
4012
+ const preDragMouseMoveHandler = (0, import_react28.useCallback)(
4013
4013
  (evt) => {
4014
4014
  const { CLIENT_POS, POS } = dimensions(orientation);
4015
4015
  const { [CLIENT_POS]: clientPos } = evt;
@@ -4027,7 +4027,7 @@ var useDragDropNext = ({
4027
4027
  // eslint-disable-next-line react-hooks/exhaustive-deps
4028
4028
  [containerRef, beginDrag, orientation]
4029
4029
  );
4030
- const preDragMouseUpHandler = (0, import_react27.useCallback)(() => {
4030
+ const preDragMouseUpHandler = (0, import_react28.useCallback)(() => {
4031
4031
  if (mouseDownTimer.current) {
4032
4032
  window.clearTimeout(mouseDownTimer.current);
4033
4033
  mouseDownTimer.current = null;
@@ -4035,7 +4035,7 @@ var useDragDropNext = ({
4035
4035
  document.removeEventListener("mousemove", preDragMouseMoveHandler, false);
4036
4036
  document.removeEventListener("mouseup", preDragMouseUpHandler, false);
4037
4037
  }, [preDragMouseMoveHandler]);
4038
- const mouseDownHandler = (0, import_react27.useCallback)(
4038
+ const mouseDownHandler = (0, import_react28.useCallback)(
4039
4039
  (evt) => {
4040
4040
  const { current: container } = containerRef;
4041
4041
  evt.stopPropagation();
@@ -4060,7 +4060,7 @@ var useDragDropNext = ({
4060
4060
  [containerRef, dragStart, preDragMouseMoveHandler, preDragMouseUpHandler]
4061
4061
  );
4062
4062
  const { current: settlingItem } = settlingItemRef;
4063
- (0, import_react27.useLayoutEffect)(() => {
4063
+ (0, import_react28.useLayoutEffect)(() => {
4064
4064
  if (settlingItem && containerRef.current) {
4065
4065
  const dropPos = dropPosRef.current;
4066
4066
  const droppedItem = containerRef.current.querySelector(
@@ -4084,7 +4084,7 @@ var useDragDropNext = ({
4084
4084
  }
4085
4085
  }
4086
4086
  }, [containerRef, itemQuery, settlingItem, terminateDrag]);
4087
- (0, import_react27.useEffect)(() => {
4087
+ (0, import_react28.useEffect)(() => {
4088
4088
  if (id && (isDragSource || isDropTarget)) {
4089
4089
  register(id, allowDragDrop === "drop-only" ? false : resumeDrag, onDrop);
4090
4090
  }
@@ -4106,7 +4106,7 @@ var useDragDropNext = ({
4106
4106
  };
4107
4107
 
4108
4108
  // src/list/useListDrop.ts
4109
- var import_react28 = require("react");
4109
+ var import_react29 = require("react");
4110
4110
  var useListDrop = ({
4111
4111
  dataHook,
4112
4112
  onDrop,
@@ -4115,10 +4115,10 @@ var useListDrop = ({
4115
4115
  setHighlightedIndex,
4116
4116
  setSelected
4117
4117
  }) => {
4118
- const selectedByIndexRef = (0, import_react28.useRef)([]);
4119
- const dataHookRef = (0, import_react28.useRef)(dataHook);
4118
+ const selectedByIndexRef = (0, import_react29.useRef)([]);
4119
+ const dataHookRef = (0, import_react29.useRef)(dataHook);
4120
4120
  dataHookRef.current = dataHook;
4121
- const adjustIndex = (0, import_react28.useCallback)(
4121
+ const adjustIndex = (0, import_react29.useCallback)(
4122
4122
  (index, fromIndex, toIndex) => {
4123
4123
  if (index === fromIndex) {
4124
4124
  return toIndex;
@@ -4133,7 +4133,7 @@ var useListDrop = ({
4133
4133
  },
4134
4134
  []
4135
4135
  );
4136
- const reorderSelectedIndices = (0, import_react28.useCallback)(
4136
+ const reorderSelectedIndices = (0, import_react29.useCallback)(
4137
4137
  (selected2, fromIndex, toIndex) => {
4138
4138
  const selectedIndices = selected2.map(
4139
4139
  (id) => dataHookRef.current.indexOfItemById(id)
@@ -4144,7 +4144,7 @@ var useListDrop = ({
4144
4144
  },
4145
4145
  [adjustIndex]
4146
4146
  );
4147
- const handleDrop = (0, import_react28.useCallback)(
4147
+ const handleDrop = (0, import_react29.useCallback)(
4148
4148
  (fromIndex, toIndex, options) => {
4149
4149
  if (hasSelection(selected)) {
4150
4150
  selectedByIndexRef.current = reorderSelectedIndices(
@@ -4168,13 +4168,13 @@ var useListDrop = ({
4168
4168
  onMoveListItem
4169
4169
  ]
4170
4170
  );
4171
- const handleDropSettle = (0, import_react28.useCallback)(
4171
+ const handleDropSettle = (0, import_react29.useCallback)(
4172
4172
  (toIndex) => {
4173
4173
  setHighlightedIndex(toIndex);
4174
4174
  },
4175
4175
  [setHighlightedIndex]
4176
4176
  );
4177
- (0, import_react28.useEffect)(() => {
4177
+ (0, import_react29.useEffect)(() => {
4178
4178
  const { current: selectedByIndex } = selectedByIndexRef;
4179
4179
  if (hasSelection(selectedByIndex)) {
4180
4180
  selectedByIndexRef.current = [];
@@ -4224,7 +4224,7 @@ var useList = ({
4224
4224
  tabToSelect,
4225
4225
  viewportRange
4226
4226
  }) => {
4227
- const lastSelection = (0, import_react29.useRef)(
4227
+ const lastSelection = (0, import_react30.useRef)(
4228
4228
  selected || defaultSelected
4229
4229
  );
4230
4230
  const handleKeyboardNavigation = (evt, nextIndex) => {
@@ -4232,7 +4232,7 @@ var useList = ({
4232
4232
  (_b = (_a2 = selectionHook.listHandlers).onKeyboardNavigation) == null ? void 0 : _b.call(_a2, evt, nextIndex);
4233
4233
  onKeyboardNavigation == null ? void 0 : onKeyboardNavigation(evt, nextIndex);
4234
4234
  };
4235
- const handleSelect = (0, import_react29.useCallback)(
4235
+ const handleSelect = (0, import_react30.useCallback)(
4236
4236
  (evt, selectedId) => {
4237
4237
  if (onSelect) {
4238
4238
  if (selectedId !== null) {
@@ -4242,7 +4242,7 @@ var useList = ({
4242
4242
  },
4243
4243
  [dataHook, onSelect]
4244
4244
  );
4245
- const scrollContainer = (0, import_react29.useMemo)(() => {
4245
+ const scrollContainer = (0, import_react30.useMemo)(() => {
4246
4246
  var _a2, _b;
4247
4247
  if (scrollContainerRef) {
4248
4248
  return scrollContainerRef;
@@ -4252,7 +4252,7 @@ var useList = ({
4252
4252
  };
4253
4253
  }
4254
4254
  }, [containerRef, scrollContainerRef]);
4255
- const handleSelectionChange = (0, import_react29.useCallback)(
4255
+ const handleSelectionChange = (0, import_react30.useCallback)(
4256
4256
  (evt, selected2) => {
4257
4257
  if (onSelectionChange) {
4258
4258
  if (isSingleSelection(selectionStrategy)) {
@@ -4299,7 +4299,7 @@ var useList = ({
4299
4299
  highlightedIdx: highlightedIndex,
4300
4300
  collectionHook: dataHook
4301
4301
  });
4302
- const handleDragStart = (0, import_react29.useCallback)(
4302
+ const handleDragStart = (0, import_react30.useCallback)(
4303
4303
  (dragDropState) => {
4304
4304
  setHighlightedIndex(-1);
4305
4305
  onDragStart == null ? void 0 : onDragStart(dragDropState);
@@ -4358,7 +4358,7 @@ var useList = ({
4358
4358
  typeToNavigate: true,
4359
4359
  items: dataHook.data
4360
4360
  });
4361
- const handleKeyDown = (0, import_react29.useCallback)(
4361
+ const handleKeyDown = (0, import_react30.useCallback)(
4362
4362
  (evt) => {
4363
4363
  var _a2, _b, _c;
4364
4364
  if (!evt.defaultPrevented) {
@@ -4391,7 +4391,7 @@ var useList = ({
4391
4391
  stickyHeaders
4392
4392
  });
4393
4393
  const isScrolling = isViewportScrolling.current || isDragDropScrolling.current;
4394
- const handleMouseMove = (0, import_react29.useCallback)(
4394
+ const handleMouseMove = (0, import_react30.useCallback)(
4395
4395
  (evt) => {
4396
4396
  if (!isScrolling && !disabled && !isDragging) {
4397
4397
  navigationMouseMove();
@@ -4456,7 +4456,7 @@ var useList = ({
4456
4456
  };
4457
4457
 
4458
4458
  // src/list/useListHeight.ts
4459
- var import_react30 = require("react");
4459
+ var import_react31 = require("react");
4460
4460
  var getContentHeight = (itemCount, itemHeight, itemGapSize = 0) => {
4461
4461
  if (itemCount === 0) {
4462
4462
  return 0;
@@ -4476,10 +4476,10 @@ var useListHeight = ({
4476
4476
  itemHeight: itemHeightProp = 36,
4477
4477
  size
4478
4478
  }) => {
4479
- const [measuredItemHeight, setMeasuredItemHeight] = (0, import_react30.useState)(itemHeightProp);
4480
- const [, forceUpdate] = (0, import_react30.useState)({});
4481
- const proxyItemRef = (0, import_react30.useRef)(null);
4482
- const [contentHeight, computedListHeight] = (0, import_react30.useMemo)(() => {
4479
+ const [measuredItemHeight, setMeasuredItemHeight] = (0, import_react31.useState)(itemHeightProp);
4480
+ const [, forceUpdate] = (0, import_react31.useState)({});
4481
+ const proxyItemRef = (0, import_react31.useRef)(null);
4482
+ const [contentHeight, computedListHeight] = (0, import_react31.useMemo)(() => {
4483
4483
  let result = 0;
4484
4484
  const itemHeight = measuredItemHeight != null ? measuredItemHeight : itemHeightProp;
4485
4485
  const contentHeight2 = getContentHeight(itemCount, itemHeight, itemGapSize);
@@ -4507,12 +4507,12 @@ var useListHeight = ({
4507
4507
  itemHeightProp,
4508
4508
  measuredItemHeight
4509
4509
  ]);
4510
- const handleRowHeight = (0, import_react30.useCallback)(({ height: height2 }) => {
4510
+ const handleRowHeight = (0, import_react31.useCallback)(({ height: height2 }) => {
4511
4511
  if (typeof height2 === "number") {
4512
4512
  setMeasuredItemHeight(height2);
4513
4513
  }
4514
4514
  }, []);
4515
- const rowHeightProxyRef = (0, import_react30.useCallback)((el) => {
4515
+ const rowHeightProxyRef = (0, import_react31.useCallback)((el) => {
4516
4516
  proxyItemRef.current = el;
4517
4517
  forceUpdate({});
4518
4518
  }, []);
@@ -4528,7 +4528,7 @@ var useListHeight = ({
4528
4528
 
4529
4529
  // src/list/useScrollPosition.ts
4530
4530
  var import_core8 = require("@salt-ds/core");
4531
- var import_react31 = require("react");
4531
+ var import_react32 = require("react");
4532
4532
  var getRange = (scrollPos, height, itemCount, itemHeight) => {
4533
4533
  const viewportRowCount = Math.ceil(height / itemHeight);
4534
4534
  const from = Math.floor(scrollPos / itemHeight);
@@ -4547,10 +4547,10 @@ var useScrollPosition = ({
4547
4547
  itemSize: listItemHeight,
4548
4548
  onViewportScroll
4549
4549
  }) => {
4550
- const firstVisibleRowRef = (0, import_react31.useRef)(0);
4551
- const lastVisibleRowRef = (0, import_react31.useRef)(0);
4552
- const scrollPosRef = (0, import_react31.useRef)(0);
4553
- const range = (0, import_react31.useMemo)(() => {
4550
+ const firstVisibleRowRef = (0, import_react32.useRef)(0);
4551
+ const lastVisibleRowRef = (0, import_react32.useRef)(0);
4552
+ const scrollPosRef = (0, import_react32.useRef)(0);
4553
+ const range = (0, import_react32.useMemo)(() => {
4554
4554
  return getRange(
4555
4555
  scrollPosRef.current,
4556
4556
  listHeight,
@@ -4558,11 +4558,11 @@ var useScrollPosition = ({
4558
4558
  listItemHeight + listItemGapSize
4559
4559
  );
4560
4560
  }, [listHeight, listItemCount, listItemHeight, listItemGapSize]);
4561
- const [viewportRange, setViewportRange] = (0, import_react31.useState)(range);
4561
+ const [viewportRange, setViewportRange] = (0, import_react32.useState)(range);
4562
4562
  (0, import_core8.useIsomorphicLayoutEffect)(() => {
4563
4563
  setViewportRange(range);
4564
4564
  }, [range]);
4565
- const handleVerticalScroll = (0, import_react31.useCallback)(
4565
+ const handleVerticalScroll = (0, import_react32.useCallback)(
4566
4566
  (e) => {
4567
4567
  const scrollTop = e.target.scrollTop;
4568
4568
  if (scrollTop !== scrollPosRef.current) {
@@ -4597,11 +4597,11 @@ var useScrollPosition = ({
4597
4597
  };
4598
4598
 
4599
4599
  // src/list/List.tsx
4600
- var import_jsx_runtime11 = require("react/jsx-runtime");
4601
- var import_react33 = require("react");
4600
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4601
+ var import_react34 = require("react");
4602
4602
  var defaultEmptyMessage = "No data to display";
4603
4603
  var classBase5 = "vuuList";
4604
- var List = (0, import_react32.forwardRef)(function List2({
4604
+ var List = (0, import_react33.forwardRef)(function List2({
4605
4605
  ListItem: ListItem4 = ListItem,
4606
4606
  ListPlaceholder,
4607
4607
  allowDragDrop,
@@ -4654,11 +4654,11 @@ var List = (0, import_react32.forwardRef)(function List2({
4654
4654
  }, forwardedRef) {
4655
4655
  var _a2, _b;
4656
4656
  const id = (0, import_vuu_layout4.useId)(idProp);
4657
- const containerRef = (0, import_react32.useRef)(null);
4658
- const scrollContainerRef = (0, import_react32.useRef)(null);
4659
- const contentContainerRef = (0, import_react32.useRef)(null);
4660
- const [size, setSize] = (0, import_react32.useState)();
4661
- const handleResize = (0, import_react32.useCallback)((size2) => {
4657
+ const containerRef = (0, import_react33.useRef)(null);
4658
+ const scrollContainerRef = (0, import_react33.useRef)(null);
4659
+ const contentContainerRef = (0, import_react33.useRef)(null);
4660
+ const [size, setSize] = (0, import_react33.useState)();
4661
+ const handleResize = (0, import_react33.useCallback)((size2) => {
4662
4662
  setSize(size2);
4663
4663
  }, []);
4664
4664
  const collectionHook = useCollectionItems({
@@ -4747,7 +4747,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4747
4747
  });
4748
4748
  const appliedFocusVisible = focusVisibleProp != null ? focusVisibleProp : focusVisible;
4749
4749
  const createHeader = function createHeader2(idx, headerId, title, expanded) {
4750
- const header = /* @__PURE__ */ (0, import_react33.createElement)(
4750
+ const header = /* @__PURE__ */ (0, import_react34.createElement)(
4751
4751
  ListItem4,
4752
4752
  {
4753
4753
  ...listItemHeaderHandlers,
@@ -4772,7 +4772,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4772
4772
  function renderCollectionItem(list, item, idx) {
4773
4773
  var _a3, _b2;
4774
4774
  const { disabled, value, id: itemId, label } = item;
4775
- const isChildItem = (0, import_react32.isValidElement)(value);
4775
+ const isChildItem = (0, import_react33.isValidElement)(value);
4776
4776
  const listItemProps = {
4777
4777
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4778
4778
  // @ts-ignore until we refactor this whole section
@@ -4794,7 +4794,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4794
4794
  showCheckbox: checkable
4795
4795
  };
4796
4796
  list.push(
4797
- isChildItem ? (0, import_react32.cloneElement)(value, listItemProps) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ListItem4, { ...listItemProps })
4797
+ isChildItem ? (0, import_react33.cloneElement)(value, listItemProps) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ListItem4, { ...listItemProps })
4798
4798
  );
4799
4799
  idx.value += 1;
4800
4800
  }
@@ -4805,7 +4805,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4805
4805
  renderCollectionItems(items, idx, idx.value + count) || []
4806
4806
  ) : header;
4807
4807
  list.push(
4808
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { role: "group", children: childItems2 }, id2)
4808
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { role: "group", children: childItems2 }, id2)
4809
4809
  );
4810
4810
  };
4811
4811
  const renderCollectionItems = (items, idx = { value: 0 }, end = items.length) => {
@@ -4826,7 +4826,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4826
4826
  };
4827
4827
  function renderEmpty() {
4828
4828
  if (emptyMessage || showEmptyMessage) {
4829
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: `${classBase5}-empty-message`, children: emptyMessage != null ? emptyMessage : defaultEmptyMessage });
4829
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `${classBase5}-empty-message`, children: emptyMessage != null ? emptyMessage : defaultEmptyMessage });
4830
4830
  } else {
4831
4831
  return null;
4832
4832
  }
@@ -4850,7 +4850,7 @@ var List = (0, import_react32.forwardRef)(function List2({
4850
4850
  maxWidth,
4851
4851
  maxHeight
4852
4852
  };
4853
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
4853
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4854
4854
  import_vuu_layout4.MeasuredContainer,
4855
4855
  {
4856
4856
  "aria-multiselectable": selectionStrategy === "multiple" || selectionStrategy === "extended" || selectionStrategy === "extended-multi-range" || void 0,
@@ -4872,8 +4872,8 @@ var List = (0, import_react32.forwardRef)(function List2({
4872
4872
  style: { ...styleProp, ...sizeStyles },
4873
4873
  tabIndex: listDisabled || disableFocus ? void 0 : tabIndex,
4874
4874
  children: [
4875
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ListItemProxy, { ref: rowHeightProxyRef, height: itemHeightProp }),
4876
- collectionHook.data.length === 0 && ListPlaceholder !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ListPlaceholder, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: `${classBase5}-viewport`, ref: scrollContainerRef, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
4875
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ListItemProxy, { ref: rowHeightProxyRef, height: itemHeightProp }),
4876
+ collectionHook.data.length === 0 && ListPlaceholder !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ListPlaceholder, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: `${classBase5}-viewport`, ref: scrollContainerRef, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4877
4877
  "div",
4878
4878
  {
4879
4879
  className: `${classBase5}-scrollingContentContainer`,
@@ -4915,10 +4915,10 @@ function clsx() {
4915
4915
  }
4916
4916
 
4917
4917
  // src/list/VirtualizedList.tsx
4918
- var import_react35 = require("react");
4918
+ var import_react36 = require("react");
4919
4919
 
4920
4920
  // src/list/useVirtualization.ts
4921
- var import_react34 = require("react");
4921
+ var import_react35 = require("react");
4922
4922
 
4923
4923
  // src/list/keyset.ts
4924
4924
  var KeySet = class {
@@ -4967,7 +4967,7 @@ var useVirtualization = ({
4967
4967
  listItemHeight,
4968
4968
  viewportRange
4969
4969
  }) => {
4970
- const keys = (0, import_react34.useMemo)(() => new KeySet(0, 1), []);
4970
+ const keys = (0, import_react35.useMemo)(() => new KeySet(0, 1), []);
4971
4971
  const rowHeightWithGap = listItemHeight + listItemGapSize;
4972
4972
  const lo = Math.max(0, viewportRange.from - renderBuffer);
4973
4973
  const hi = Math.min(data.length, viewportRange.to + renderBuffer);
@@ -4984,11 +4984,11 @@ var useVirtualization = ({
4984
4984
  };
4985
4985
 
4986
4986
  // src/list/VirtualizedList.tsx
4987
- var import_jsx_runtime12 = require("react/jsx-runtime");
4987
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4988
4988
  var defaultEmptyMessage2 = "No data to display";
4989
4989
  var withBaseName2 = (0, import_core10.makePrefixer)("saltList");
4990
- var ListItem3 = (0, import_react35.memo)(ListItem);
4991
- var VirtualizedList = (0, import_react35.forwardRef)(function List3({
4990
+ var ListItem3 = (0, import_react36.memo)(ListItem);
4991
+ var VirtualizedList = (0, import_react36.forwardRef)(function List3({
4992
4992
  borderless,
4993
4993
  children,
4994
4994
  className,
@@ -5034,8 +5034,8 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5034
5034
  ...htmlAttributes
5035
5035
  }, forwardedRef) {
5036
5036
  const id = (0, import_core10.useIdMemo)(idProp);
5037
- const rootRef = (0, import_react35.useRef)(null);
5038
- const rowHeightProxyRef = (0, import_react35.useRef)(null);
5037
+ const rootRef = (0, import_react36.useRef)(null);
5038
+ const rowHeightProxyRef = (0, import_react36.useRef)(null);
5039
5039
  const collectionHook = useCollectionItems({
5040
5040
  id,
5041
5041
  label: "List",
@@ -5109,7 +5109,7 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5109
5109
  const [key, offset, pos, item] = row;
5110
5110
  const index = pos - 1;
5111
5111
  list.push(
5112
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
5112
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
5113
5113
  ListItem3,
5114
5114
  {
5115
5115
  "aria-setsize": collectionHook.data.length,
@@ -5142,7 +5142,7 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5142
5142
  }
5143
5143
  function renderEmpty() {
5144
5144
  if (emptyMessage || showEmptyMessage) {
5145
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: withBaseName2("empty-message"), children: emptyMessage != null ? emptyMessage : defaultEmptyMessage2 });
5145
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: withBaseName2("empty-message"), children: emptyMessage != null ? emptyMessage : defaultEmptyMessage2 });
5146
5146
  } else {
5147
5147
  return null;
5148
5148
  }
@@ -5163,7 +5163,7 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5163
5163
  maxWidth: maxWidth != null ? maxWidth : width,
5164
5164
  maxHeight: maxHeight != null ? maxHeight : listHeight
5165
5165
  };
5166
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
5166
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
5167
5167
  "div",
5168
5168
  {
5169
5169
  ...htmlAttributes,
@@ -5176,13 +5176,13 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5176
5176
  onScroll: onVerticalScroll,
5177
5177
  style: { ...styleProp, ...sizeStyles },
5178
5178
  tabIndex: listDisabled || disableFocus ? void 0 : 0,
5179
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
5179
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
5180
5180
  "div",
5181
5181
  {
5182
5182
  className: withBaseName2("scrollingContentContainer"),
5183
5183
  style: { height: contentHeight },
5184
5184
  children: [
5185
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ListItemProxy, { ref: rowHeightProxyRef }),
5185
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ListItemProxy, { ref: rowHeightProxyRef }),
5186
5186
  renderContent()
5187
5187
  ]
5188
5188
  }
@@ -5193,12 +5193,12 @@ var VirtualizedList = (0, import_react35.forwardRef)(function List3({
5193
5193
 
5194
5194
  // src/list/RadioIcon.tsx
5195
5195
  var import_classnames7 = __toESM(require("classnames"));
5196
- var import_jsx_runtime13 = require("react/jsx-runtime");
5196
+ var import_jsx_runtime12 = require("react/jsx-runtime");
5197
5197
  var classBase6 = "vuuRadioIcon";
5198
5198
  var RadioIcon = ({
5199
5199
  checked = false,
5200
5200
  ...htmlAttributes
5201
- }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5201
+ }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
5202
5202
  "span",
5203
5203
  {
5204
5204
  ...htmlAttributes,
@@ -5208,7 +5208,7 @@ var RadioIcon = ({
5208
5208
 
5209
5209
  // src/dropdown/useDropdown.ts
5210
5210
  var import_core11 = require("@salt-ds/core");
5211
- var import_react36 = require("react");
5211
+ var import_react37 = require("react");
5212
5212
  var useDropdown = ({
5213
5213
  collectionHook,
5214
5214
  defaultHighlightedIndex: defaultHighlightedIndexProp,
@@ -5231,7 +5231,7 @@ var useDropdown = ({
5231
5231
  default: defaultIsOpen != null ? defaultIsOpen : false,
5232
5232
  name: "useDropdownList"
5233
5233
  });
5234
- const handleSelectionChange = (0, import_react36.useCallback)(
5234
+ const handleSelectionChange = (0, import_react37.useCallback)(
5235
5235
  (evt, selected2) => {
5236
5236
  if (!isMultiSelect) {
5237
5237
  setIsOpen(false);
@@ -5251,7 +5251,7 @@ var useDropdown = ({
5251
5251
  },
5252
5252
  [isMultiSelect, onOpenChange, onSelectionChange, setIsOpen]
5253
5253
  );
5254
- const handleSelect = (0, import_react36.useCallback)(
5254
+ const handleSelect = (0, import_react37.useCallback)(
5255
5255
  (evt, selected2) => {
5256
5256
  if (!isMultiSelect) {
5257
5257
  setIsOpen(false);
@@ -5275,14 +5275,14 @@ var useDropdown = ({
5275
5275
  selectionStrategy,
5276
5276
  tabToSelect: !isMultiSelect
5277
5277
  });
5278
- const handleOpenChange = (0, import_react36.useCallback)(
5278
+ const handleOpenChange = (0, import_react37.useCallback)(
5279
5279
  (open) => {
5280
5280
  setIsOpen(open);
5281
5281
  onOpenChange == null ? void 0 : onOpenChange(open);
5282
5282
  },
5283
5283
  [onOpenChange, setIsOpen]
5284
5284
  );
5285
- const triggerLabel = (0, import_react36.useMemo)(() => {
5285
+ const triggerLabel = (0, import_react37.useMemo)(() => {
5286
5286
  if (Array.isArray(listHook.selected)) {
5287
5287
  const selectedItems = listHook.selected.map(
5288
5288
  (id) => collectionHook.itemById(id)
@@ -5306,8 +5306,8 @@ var useDropdown = ({
5306
5306
  };
5307
5307
 
5308
5308
  // src/dropdown/Dropdown.tsx
5309
- var import_jsx_runtime14 = require("react/jsx-runtime");
5310
- var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5309
+ var import_jsx_runtime13 = require("react/jsx-runtime");
5310
+ var Dropdown2 = (0, import_react38.forwardRef)(function Dropdown3({
5311
5311
  "aria-label": ariaLabel,
5312
5312
  children,
5313
5313
  defaultIsOpen,
@@ -5328,8 +5328,8 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5328
5328
  ...props
5329
5329
  }, forwardedRef) {
5330
5330
  const id = (0, import_vuu_layout5.useId)(idProp);
5331
- const rootRef = (0, import_react37.useRef)(null);
5332
- const listRef = (0, import_react37.useRef)(null);
5331
+ const rootRef = (0, import_react38.useRef)(null);
5332
+ const listRef = (0, import_react38.useRef)(null);
5333
5333
  const forkedRef = (0, import_core12.useForkRef)(rootRef, forwardedRef);
5334
5334
  const collectionHook = useCollectionItems({
5335
5335
  id,
@@ -5362,7 +5362,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5362
5362
  selected: collectionHook.itemToCollectionItemId(selectedProp),
5363
5363
  selectionStrategy
5364
5364
  });
5365
- const itemIdToItem = (0, import_react37.useCallback)(
5365
+ const itemIdToItem = (0, import_react38.useCallback)(
5366
5366
  (itemId) => {
5367
5367
  if (Array.isArray(itemId)) {
5368
5368
  const items = itemId.map((id2) => collectionHook.itemById(id2));
@@ -5380,7 +5380,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5380
5380
  };
5381
5381
  if (triggerComponent) {
5382
5382
  const ownProps = triggerComponent.props;
5383
- return (0, import_react37.cloneElement)(
5383
+ return (0, import_react38.cloneElement)(
5384
5384
  triggerComponent,
5385
5385
  forwardCallbackProps(ownProps, {
5386
5386
  ...dropdownListHook.isOpen ? listControlProps : {},
@@ -5388,7 +5388,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5388
5388
  })
5389
5389
  );
5390
5390
  } else {
5391
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5391
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5392
5392
  DropdownButton,
5393
5393
  {
5394
5394
  label: triggerLabel,
@@ -5398,7 +5398,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5398
5398
  );
5399
5399
  }
5400
5400
  };
5401
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CollectionProvider, { collectionHook, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
5401
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CollectionProvider, { collectionHook, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
5402
5402
  DropdownBase,
5403
5403
  {
5404
5404
  ...props,
@@ -5410,7 +5410,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5410
5410
  width,
5411
5411
  children: [
5412
5412
  getTriggerComponent(),
5413
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
5413
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
5414
5414
  List,
5415
5415
  {
5416
5416
  ListItem: ListItem4,
@@ -5433,7 +5433,7 @@ var Dropdown2 = (0, import_react37.forwardRef)(function Dropdown3({
5433
5433
  // src/combo-box/useCombobox.ts
5434
5434
  var import_core13 = require("@salt-ds/core");
5435
5435
  var import_vuu_layout6 = require("@vuu-ui/vuu-layout");
5436
- var import_react38 = require("react");
5436
+ var import_react39 = require("react");
5437
5437
  var EnterOnly = ["Enter"];
5438
5438
  var useCombobox = ({
5439
5439
  allowBackspaceClearsSelection,
@@ -5471,9 +5471,9 @@ var useCombobox = ({
5471
5471
  }) => {
5472
5472
  const isMultiSelect = isMultiSelection(selectionStrategy);
5473
5473
  const { data, setFilterPattern } = collectionHook;
5474
- const setHighlightedIndexRef = (0, import_react38.useRef)(null);
5475
- const selectedRef = (0, import_react38.useRef)(isMultiSelect ? [] : null);
5476
- const ignoreSelectOnFocus = (0, import_react38.useRef)(true);
5474
+ const setHighlightedIndexRef = (0, import_react39.useRef)(null);
5475
+ const selectedRef = (0, import_react39.useRef)(isMultiSelect ? [] : null);
5476
+ const ignoreSelectOnFocus = (0, import_react39.useRef)(true);
5477
5477
  const [isOpen, setIsOpen] = (0, import_core13.useControlled)({
5478
5478
  controlled: isOpenProp,
5479
5479
  default: defaultIsOpen != null ? defaultIsOpen : false,
@@ -5485,15 +5485,15 @@ var useCombobox = ({
5485
5485
  name: "ComboBox",
5486
5486
  state: "value"
5487
5487
  });
5488
- const [disableAriaActiveDescendant, setDisableAriaActiveDescendant] = (0, import_react38.useState)(true);
5489
- const highlightSelectedItem = (0, import_react38.useCallback)((selected2) => {
5488
+ const [disableAriaActiveDescendant, setDisableAriaActiveDescendant] = (0, import_react39.useState)(true);
5489
+ const highlightSelectedItem = (0, import_react39.useCallback)((selected2) => {
5490
5490
  var _a2;
5491
5491
  if (Array.isArray(selected2)) {
5492
5492
  } else if (selected2 == null) {
5493
5493
  (_a2 = setHighlightedIndexRef.current) == null ? void 0 : _a2.call(setHighlightedIndexRef, -1);
5494
5494
  }
5495
5495
  }, []);
5496
- const setTextValue = (0, import_react38.useCallback)(
5496
+ const setTextValue = (0, import_react39.useCallback)(
5497
5497
  (value2, applyFilter = true) => {
5498
5498
  setValue(value2);
5499
5499
  if (applyFilter) {
@@ -5502,7 +5502,7 @@ var useCombobox = ({
5502
5502
  },
5503
5503
  [setFilterPattern, setValue]
5504
5504
  );
5505
- const reconcileInput = (0, import_react38.useCallback)(
5505
+ const reconcileInput = (0, import_react39.useCallback)(
5506
5506
  (selected2) => {
5507
5507
  let newValue = allowFreeText ? value != null ? value : "" : "";
5508
5508
  if (Array.isArray(selected2)) {
@@ -5532,7 +5532,7 @@ var useCombobox = ({
5532
5532
  value
5533
5533
  ]
5534
5534
  );
5535
- const applySelection = (0, import_react38.useCallback)(() => {
5535
+ const applySelection = (0, import_react39.useCallback)(() => {
5536
5536
  const { current: selected2 } = selectedRef;
5537
5537
  if (reconcileInput(selected2)) {
5538
5538
  if (selected2) {
@@ -5550,7 +5550,7 @@ var useCombobox = ({
5550
5550
  }
5551
5551
  }
5552
5552
  }, [onSelectionChange, reconcileInput]);
5553
- const selectFreeTextInputValue = (0, import_react38.useCallback)(() => {
5553
+ const selectFreeTextInputValue = (0, import_react39.useCallback)(() => {
5554
5554
  if (allowFreeText) {
5555
5555
  const text = value == null ? void 0 : value.trim();
5556
5556
  const { current: selected2 } = selectedRef;
@@ -5580,7 +5580,7 @@ var useCombobox = ({
5580
5580
  onSelectionChange,
5581
5581
  itemToString2
5582
5582
  ]);
5583
- const handleOpenChange = (0, import_react38.useCallback)(
5583
+ const handleOpenChange = (0, import_react39.useCallback)(
5584
5584
  (open, closeReason) => {
5585
5585
  if (open && isMultiSelect) {
5586
5586
  setTextValue("", false);
@@ -5602,7 +5602,7 @@ var useCombobox = ({
5602
5602
  setTextValue
5603
5603
  ]
5604
5604
  );
5605
- const handleSelectionChange = (0, import_react38.useCallback)(
5605
+ const handleSelectionChange = (0, import_react39.useCallback)(
5606
5606
  (evt, selected2) => {
5607
5607
  selectedRef.current = selected2;
5608
5608
  if (!isMultiSelect) {
@@ -5611,7 +5611,7 @@ var useCombobox = ({
5611
5611
  },
5612
5612
  [handleOpenChange, isMultiSelect]
5613
5613
  );
5614
- const handleKeyboardNavigation = (0, import_react38.useCallback)(() => {
5614
+ const handleKeyboardNavigation = (0, import_react39.useCallback)(() => {
5615
5615
  setDisableAriaActiveDescendant(false);
5616
5616
  }, []);
5617
5617
  const {
@@ -5639,7 +5639,7 @@ var useCombobox = ({
5639
5639
  });
5640
5640
  setHighlightedIndexRef.current = setHighlightedIndex;
5641
5641
  const { onClick: listHandlersOnClick } = listHookListHandlers;
5642
- const handleListClick = (0, import_react38.useCallback)(
5642
+ const handleListClick = (0, import_react39.useCallback)(
5643
5643
  (evt) => {
5644
5644
  var _a2;
5645
5645
  (_a2 = document.getElementById(`${id}-input`)) == null ? void 0 : _a2.focus();
@@ -5647,7 +5647,7 @@ var useCombobox = ({
5647
5647
  },
5648
5648
  [id, listHandlersOnClick]
5649
5649
  );
5650
- const handleInputChange = (0, import_react38.useCallback)(
5650
+ const handleInputChange = (0, import_react39.useCallback)(
5651
5651
  (evt) => {
5652
5652
  const newValue = evt.target.value;
5653
5653
  setValue(newValue);
@@ -5660,7 +5660,7 @@ var useCombobox = ({
5660
5660
  },
5661
5661
  [setFilterPattern, setIsOpen, setValue]
5662
5662
  );
5663
- const handleInputKeyDown = (0, import_react38.useCallback)(
5663
+ const handleInputKeyDown = (0, import_react39.useCallback)(
5664
5664
  (e) => {
5665
5665
  if (e.key === "Backspace" && allowBackspaceClearsSelection) {
5666
5666
  selectedRef.current = null;
@@ -5671,7 +5671,7 @@ var useCombobox = ({
5671
5671
  );
5672
5672
  const { onFocus: inputOnFocus = onFocus } = inputProps;
5673
5673
  const { onFocus: listOnFocus } = listControlProps;
5674
- const handleInputFocus = (0, import_react38.useCallback)(
5674
+ const handleInputFocus = (0, import_react39.useCallback)(
5675
5675
  (evt) => {
5676
5676
  setDisableAriaActiveDescendant(false);
5677
5677
  listOnFocus == null ? void 0 : listOnFocus(evt);
@@ -5679,7 +5679,7 @@ var useCombobox = ({
5679
5679
  },
5680
5680
  [inputOnFocus, listOnFocus]
5681
5681
  );
5682
- const listFocused = (0, import_react38.useCallback)(
5682
+ const listFocused = (0, import_react39.useCallback)(
5683
5683
  (evt) => {
5684
5684
  const element = evt.relatedTarget;
5685
5685
  return (element == null ? void 0 : element.id) === `${id}-list`;
@@ -5688,7 +5688,7 @@ var useCombobox = ({
5688
5688
  );
5689
5689
  const { onBlur: inputOnBlur = onBlur } = inputProps;
5690
5690
  const { onBlur: listOnBlur } = listControlProps;
5691
- const handleInputBlur = (0, import_react38.useCallback)(
5691
+ const handleInputBlur = (0, import_react39.useCallback)(
5692
5692
  (evt) => {
5693
5693
  if (listFocused(evt)) {
5694
5694
  } else {
@@ -5701,7 +5701,7 @@ var useCombobox = ({
5701
5701
  [listFocused, listOnBlur, inputOnBlur]
5702
5702
  );
5703
5703
  const { onSelect: inputOnSelect } = inputProps;
5704
- const handleInputSelect = (0, import_react38.useCallback)(
5704
+ const handleInputSelect = (0, import_react39.useCallback)(
5705
5705
  (event) => {
5706
5706
  if (ignoreSelectOnFocus.current) {
5707
5707
  ignoreSelectOnFocus.current = false;
@@ -5763,16 +5763,16 @@ var useCombobox = ({
5763
5763
 
5764
5764
  // src/list/ChevronIcon.tsx
5765
5765
  var import_classnames8 = __toESM(require("classnames"));
5766
- var import_jsx_runtime15 = require("react/jsx-runtime");
5766
+ var import_jsx_runtime14 = require("react/jsx-runtime");
5767
5767
  var classBase7 = "vuuChevronIcon";
5768
5768
  var ChevronIcon = (props) => {
5769
5769
  const { direction, ...htmlAttributes } = props;
5770
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { ...htmlAttributes, className: (0, import_classnames8.default)(classBase7, direction) });
5770
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { ...htmlAttributes, className: (0, import_classnames8.default)(classBase7, direction) });
5771
5771
  };
5772
5772
 
5773
5773
  // src/combo-box/ComboBox.tsx
5774
- var import_jsx_runtime16 = require("react/jsx-runtime");
5775
- var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5774
+ var import_jsx_runtime15 = require("react/jsx-runtime");
5775
+ var ComboBox = (0, import_react40.forwardRef)(function Combobox({
5776
5776
  InputProps: InputProps4,
5777
5777
  ListProps: ListProps3,
5778
5778
  PopupProps,
@@ -5809,7 +5809,7 @@ var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5809
5809
  ...props
5810
5810
  }, forwardedRef) {
5811
5811
  const id = (0, import_vuu_layout7.useId)(idProp);
5812
- const listRef = (0, import_react39.useRef)(null);
5812
+ const listRef = (0, import_react40.useRef)(null);
5813
5813
  const valueFromSelected = (item) => {
5814
5814
  return Array.isArray(item) && item.length > 0 ? item[0] : void 0;
5815
5815
  };
@@ -5869,21 +5869,21 @@ var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5869
5869
  selectionStrategy,
5870
5870
  value: initialValue
5871
5871
  });
5872
- const handleDropdownIconClick = (0, import_react39.useCallback)(() => {
5872
+ const handleDropdownIconClick = (0, import_react40.useCallback)(() => {
5873
5873
  if (isOpen) {
5874
5874
  onOpenChange(false, "toggle");
5875
5875
  } else {
5876
5876
  onOpenChange(true);
5877
5877
  }
5878
5878
  }, [isOpen, onOpenChange]);
5879
- const endAdornment = endAdornmentProp === null ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5879
+ const endAdornment = endAdornmentProp === null ? null : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5880
5880
  ChevronIcon,
5881
5881
  {
5882
5882
  direction: isOpen ? "up" : "down",
5883
5883
  onClick: handleDropdownIconClick
5884
5884
  }
5885
5885
  );
5886
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CollectionProvider, { collectionHook, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
5886
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CollectionProvider, { collectionHook, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
5887
5887
  DropdownBase,
5888
5888
  {
5889
5889
  ...props,
@@ -5895,7 +5895,7 @@ var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5895
5895
  ref: forwardedRef,
5896
5896
  width,
5897
5897
  children: [
5898
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5898
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5899
5899
  import_core14.Input,
5900
5900
  {
5901
5901
  ...inputProps,
@@ -5904,7 +5904,7 @@ var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5904
5904
  endAdornment
5905
5905
  }
5906
5906
  ),
5907
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5907
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
5908
5908
  List,
5909
5909
  {
5910
5910
  ...ListProps3,
@@ -5929,8 +5929,8 @@ var ComboBox = (0, import_react39.forwardRef)(function Combobox({
5929
5929
  // src/cycle-state-button/CycleStateButton.tsx
5930
5930
  var import_core15 = require("@salt-ds/core");
5931
5931
  var import_classnames9 = __toESM(require("classnames"));
5932
- var import_react40 = require("react");
5933
- var import_jsx_runtime17 = require("react/jsx-runtime");
5932
+ var import_react41 = require("react");
5933
+ var import_jsx_runtime16 = require("react/jsx-runtime");
5934
5934
  var classBase8 = "vuuCycleStateButton";
5935
5935
  var getNextValue = (value, valueList) => {
5936
5936
  const index = valueList.indexOf(value.toUpperCase());
@@ -5940,14 +5940,14 @@ var getNextValue = (value, valueList) => {
5940
5940
  return valueList[index + 1];
5941
5941
  }
5942
5942
  };
5943
- var CycleStateButton = (0, import_react40.forwardRef)(function CycleStateButton2({
5943
+ var CycleStateButton = (0, import_react41.forwardRef)(function CycleStateButton2({
5944
5944
  className,
5945
5945
  onCommit,
5946
5946
  value = "",
5947
5947
  values,
5948
5948
  ...buttonProps
5949
5949
  }, forwardedRef) {
5950
- const handleClick = (0, import_react40.useCallback)(
5950
+ const handleClick = (0, import_react41.useCallback)(
5951
5951
  (evt) => {
5952
5952
  const nextValue = getNextValue(value, values);
5953
5953
  onCommit(evt, nextValue).then((response) => {
@@ -5958,7 +5958,7 @@ var CycleStateButton = (0, import_react40.forwardRef)(function CycleStateButton2
5958
5958
  },
5959
5959
  [onCommit, value, values]
5960
5960
  );
5961
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
5961
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5962
5962
  import_core15.Button,
5963
5963
  {
5964
5964
  ...buttonProps,
@@ -6010,7 +6010,7 @@ function applyRules(rules, value) {
6010
6010
  // src/editable/useEditableText.ts
6011
6011
  var import_vuu_layout8 = require("@vuu-ui/vuu-layout");
6012
6012
  var import_vuu_utils7 = require("@vuu-ui/vuu-utils");
6013
- var import_react41 = require("react");
6013
+ var import_react42 = require("react");
6014
6014
  var WarnCommit = () => {
6015
6015
  console.warn(
6016
6016
  "onCommit handler has not been provided to InputCell cell renderer"
@@ -6023,15 +6023,15 @@ var useEditableText = ({
6023
6023
  onCommit,
6024
6024
  type
6025
6025
  }) => {
6026
- const [message, setMessage] = (0, import_react41.useState)();
6027
- const [value, setValue] = (0, import_react41.useState)(initialValue);
6028
- const initialValueRef = (0, import_react41.useRef)(initialValue);
6029
- const isDirtyRef = (0, import_react41.useRef)(false);
6030
- const hasCommittedRef = (0, import_react41.useRef)(false);
6026
+ const [message, setMessage] = (0, import_react42.useState)();
6027
+ const [value, setValue] = (0, import_react42.useState)(initialValue);
6028
+ const initialValueRef = (0, import_react42.useRef)(initialValue);
6029
+ const isDirtyRef = (0, import_react42.useRef)(false);
6030
+ const hasCommittedRef = (0, import_react42.useRef)(false);
6031
6031
  (0, import_vuu_layout8.useLayoutEffectSkipFirst)(() => {
6032
6032
  setValue(initialValue);
6033
6033
  }, [initialValue]);
6034
- const commit = (0, import_react41.useCallback)(
6034
+ const commit = (0, import_react42.useCallback)(
6035
6035
  (target) => {
6036
6036
  if (isDirtyRef.current) {
6037
6037
  hasCommittedRef.current = true;
@@ -6057,7 +6057,7 @@ var useEditableText = ({
6057
6057
  },
6058
6058
  [clientSideEditValidationCheck, onCommit, value]
6059
6059
  );
6060
- const handleKeyDown = (0, import_react41.useCallback)(
6060
+ const handleKeyDown = (0, import_react42.useCallback)(
6061
6061
  (evt) => {
6062
6062
  if (evt.key === "Enter") {
6063
6063
  commit(evt.target);
@@ -6073,7 +6073,7 @@ var useEditableText = ({
6073
6073
  },
6074
6074
  [commit]
6075
6075
  );
6076
- const handleBlur = (0, import_react41.useCallback)(
6076
+ const handleBlur = (0, import_react42.useCallback)(
6077
6077
  (evt) => {
6078
6078
  if (isDirtyRef.current) {
6079
6079
  commit(evt.target);
@@ -6081,7 +6081,7 @@ var useEditableText = ({
6081
6081
  },
6082
6082
  [commit]
6083
6083
  );
6084
- const handleChange = (0, import_react41.useCallback)(
6084
+ const handleChange = (0, import_react42.useCallback)(
6085
6085
  (evt) => {
6086
6086
  let typedValue = evt.target.value;
6087
6087
  if (type === "number" && !isNaN(parseFloat(typedValue))) {
@@ -6111,11 +6111,11 @@ var useEditableText = ({
6111
6111
 
6112
6112
  // src/editable-label/EditableLabel.tsx
6113
6113
  var import_classnames10 = __toESM(require("classnames"));
6114
- var import_react42 = require("react");
6114
+ var import_react43 = require("react");
6115
6115
  var import_core16 = require("@salt-ds/core");
6116
- var import_jsx_runtime18 = require("react/jsx-runtime");
6116
+ var import_jsx_runtime17 = require("react/jsx-runtime");
6117
6117
  var classBase9 = "vuuEditableLabel";
6118
- var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6118
+ var EditableLabel = (0, import_react43.forwardRef)(function EditableLabel2({
6119
6119
  className: classNameProp,
6120
6120
  defaultEditing,
6121
6121
  defaultValue,
@@ -6126,8 +6126,8 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6126
6126
  value: valueProp,
6127
6127
  ...restProps
6128
6128
  }, forwardedRef) {
6129
- const inputRef = (0, import_react42.useRef)(null);
6130
- const editingRef = (0, import_react42.useRef)(false);
6129
+ const inputRef = (0, import_react43.useRef)(null);
6130
+ const editingRef = (0, import_react43.useRef)(false);
6131
6131
  const [value, setValue] = (0, import_core16.useControlled)({
6132
6132
  controlled: valueProp,
6133
6133
  default: defaultValue != null ? defaultValue : "",
@@ -6140,14 +6140,14 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6140
6140
  name: "EditableLabel",
6141
6141
  state: "editing"
6142
6142
  });
6143
- const setEditing = (0, import_react42.useCallback)(
6143
+ const setEditing = (0, import_react43.useCallback)(
6144
6144
  (value2) => {
6145
6145
  _setEditing(editingRef.current = value2);
6146
6146
  },
6147
6147
  [_setEditing]
6148
6148
  );
6149
- const initialValue = (0, import_react42.useRef)(value);
6150
- (0, import_react42.useLayoutEffect)(() => {
6149
+ const initialValue = (0, import_react43.useRef)(value);
6150
+ (0, import_react43.useLayoutEffect)(() => {
6151
6151
  if (editing) {
6152
6152
  if (inputRef.current !== null) {
6153
6153
  inputRef.current.select();
@@ -6155,7 +6155,7 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6155
6155
  }
6156
6156
  }
6157
6157
  }, [editing, inputRef]);
6158
- const enterEditMode = (0, import_react42.useCallback)(() => {
6158
+ const enterEditMode = (0, import_react43.useCallback)(() => {
6159
6159
  setEditing(true);
6160
6160
  onEnterEditMode && onEnterEditMode();
6161
6161
  }, [onEnterEditMode, setEditing]);
@@ -6200,7 +6200,7 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6200
6200
  const className = (0, import_classnames10.default)(classBase9, classNameProp, {
6201
6201
  [`${classBase9}-editing`]: editing
6202
6202
  });
6203
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6203
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
6204
6204
  "div",
6205
6205
  {
6206
6206
  ...restProps,
@@ -6208,7 +6208,7 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6208
6208
  onDoubleClick: handleDoubleClick,
6209
6209
  "data-text": value,
6210
6210
  ref: forwardedRef,
6211
- children: editing ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6211
+ children: editing ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
6212
6212
  import_core16.Input,
6213
6213
  {
6214
6214
  inputProps: { className: `${classBase9}-input`, spellCheck: false },
@@ -6221,18 +6221,18 @@ var EditableLabel = (0, import_react42.forwardRef)(function EditableLabel2({
6221
6221
  textAlign: "left",
6222
6222
  variant: "secondary"
6223
6223
  }
6224
- ) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: `${classBase9}-label`, children: value })
6224
+ ) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: `${classBase9}-label`, children: value })
6225
6225
  }
6226
6226
  );
6227
6227
  });
6228
6228
 
6229
6229
  // src/expando-input/ExpandoInput.tsx
6230
6230
  var import_classnames11 = __toESM(require("classnames"));
6231
- var import_react43 = require("react");
6232
- var import_jsx_runtime19 = require("react/jsx-runtime");
6231
+ var import_react44 = require("react");
6232
+ var import_jsx_runtime18 = require("react/jsx-runtime");
6233
6233
  var classBase10 = "vuuExpandoInput";
6234
6234
  var noop = () => void 0;
6235
- var ExpandoInput = (0, import_react43.forwardRef)(function ExpandoInput2({
6235
+ var ExpandoInput = (0, import_react44.forwardRef)(function ExpandoInput2({
6236
6236
  className: classNameProp,
6237
6237
  errorMessage,
6238
6238
  value,
@@ -6240,14 +6240,14 @@ var ExpandoInput = (0, import_react43.forwardRef)(function ExpandoInput2({
6240
6240
  onCommit = noop,
6241
6241
  ...props
6242
6242
  }, forwardedRef) {
6243
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6243
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6244
6244
  "div",
6245
6245
  {
6246
6246
  className: (0, import_classnames11.default)(classBase10, classNameProp, {
6247
6247
  [`${classBase10}-error`]: errorMessage
6248
6248
  }),
6249
6249
  "data-text": value,
6250
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6250
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6251
6251
  VuuInput,
6252
6252
  {
6253
6253
  ...props,
@@ -6266,17 +6266,17 @@ var ExpandoInput = (0, import_react43.forwardRef)(function ExpandoInput2({
6266
6266
  });
6267
6267
 
6268
6268
  // src/inputs/Checkbox.tsx
6269
- var import_jsx_runtime20 = require("react/jsx-runtime");
6269
+ var import_jsx_runtime19 = require("react/jsx-runtime");
6270
6270
  var Checkbox = (props) => {
6271
6271
  const { onToggle, checked, label } = props;
6272
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
6272
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
6273
6273
  "div",
6274
6274
  {
6275
6275
  className: "vuuCheckbox",
6276
6276
  onClick: onToggle,
6277
6277
  onKeyUp: (e) => e.key === " " && onToggle(),
6278
6278
  children: [
6279
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckboxIcon, { tabIndex: 0, checked }),
6279
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckboxIcon, { tabIndex: 0, checked }),
6280
6280
  label
6281
6281
  ]
6282
6282
  }
@@ -6284,13 +6284,13 @@ var Checkbox = (props) => {
6284
6284
  };
6285
6285
 
6286
6286
  // src/inputs/RadioButton.tsx
6287
- var import_jsx_runtime21 = require("react/jsx-runtime");
6287
+ var import_jsx_runtime20 = require("react/jsx-runtime");
6288
6288
  var RadioButton = (props) => {
6289
6289
  const { onClick, checked, label, groupName } = props;
6290
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "vuuRadioButton", onClick, children: [
6291
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "radio", children: [
6292
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", { type: "radio", name: groupName }),
6293
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RadioIcon, { checked })
6290
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "vuuRadioButton", onClick, children: [
6291
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "radio", children: [
6292
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", { type: "radio", name: groupName }),
6293
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(RadioIcon, { checked })
6294
6294
  ] }),
6295
6295
  label
6296
6296
  ] });
@@ -6300,11 +6300,11 @@ var RadioButton = (props) => {
6300
6300
  var import_vuu_layout9 = require("@vuu-ui/vuu-layout");
6301
6301
  var import_vuu_table2 = require("@vuu-ui/vuu-table");
6302
6302
  var import_core17 = require("@salt-ds/core");
6303
- var import_react45 = require("react");
6303
+ var import_react46 = require("react");
6304
6304
 
6305
6305
  // src/instrument-picker/SearchCell.tsx
6306
6306
  var import_vuu_utils8 = require("@vuu-ui/vuu-utils");
6307
- var import_jsx_runtime22 = require("react/jsx-runtime");
6307
+ var import_jsx_runtime21 = require("react/jsx-runtime");
6308
6308
  var classBase11 = "vuuSearchCell";
6309
6309
  var SearchCell = ({
6310
6310
  column,
@@ -6313,8 +6313,8 @@ var SearchCell = ({
6313
6313
  }) => {
6314
6314
  const key = columnMap[column.name];
6315
6315
  const value = row[key];
6316
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: classBase11, tabIndex: -1, children: [
6317
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { "data-icon": "draggable" }),
6316
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: classBase11, tabIndex: -1, children: [
6317
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { "data-icon": "draggable" }),
6318
6318
  value
6319
6319
  ] });
6320
6320
  };
@@ -6324,7 +6324,7 @@ var SearchCell = ({
6324
6324
 
6325
6325
  // src/instrument-picker/useInstrumentPicker.ts
6326
6326
  var import_vuu_table = require("@vuu-ui/vuu-table");
6327
- var import_react44 = require("react");
6327
+ var import_react45 = require("react");
6328
6328
  var defaultItemToString = (columns, columnMap) => (row) => {
6329
6329
  return columns.map(({ name }) => row[columnMap[name]]).join(" ");
6330
6330
  };
@@ -6339,26 +6339,26 @@ var useInstrumentPicker = ({
6339
6339
  onSelect,
6340
6340
  searchColumns
6341
6341
  }) => {
6342
- const [value, setValue] = (0, import_react44.useState)("");
6342
+ const [value, setValue] = (0, import_react45.useState)("");
6343
6343
  const [isOpen, setIsOpen] = useControlled({
6344
6344
  controlled: isOpenProp,
6345
6345
  default: defaultIsOpen != null ? defaultIsOpen : false,
6346
6346
  name: "useDropdownList"
6347
6347
  });
6348
6348
  const { highlightedIndexRef, onKeyDown, tableRef } = (0, import_vuu_table.useControlledTableNavigation)(-1, dataSource.size);
6349
- const baseFilterPattern = (0, import_react44.useMemo)(
6349
+ const baseFilterPattern = (0, import_react45.useMemo)(
6350
6350
  // TODO make this contains once server supports it
6351
6351
  () => searchColumns.map((col) => `${col} starts "__VALUE__"`).join(" or "),
6352
6352
  [searchColumns]
6353
6353
  );
6354
- const handleOpenChange = (0, import_react44.useCallback)(
6354
+ const handleOpenChange = (0, import_react45.useCallback)(
6355
6355
  (open, closeReason) => {
6356
6356
  setIsOpen(open);
6357
6357
  onOpenChange == null ? void 0 : onOpenChange(open, closeReason);
6358
6358
  },
6359
6359
  [onOpenChange, setIsOpen]
6360
6360
  );
6361
- const handleInputChange = (0, import_react44.useCallback)(
6361
+ const handleInputChange = (0, import_react45.useCallback)(
6362
6362
  (evt) => {
6363
6363
  const { value: value2 } = evt.target;
6364
6364
  setValue(value2);
@@ -6376,7 +6376,7 @@ var useInstrumentPicker = ({
6376
6376
  },
6377
6377
  [baseFilterPattern, dataSource, setIsOpen]
6378
6378
  );
6379
- const handleSelectRow = (0, import_react44.useCallback)(
6379
+ const handleSelectRow = (0, import_react45.useCallback)(
6380
6380
  (row) => {
6381
6381
  const value2 = itemToString2(row);
6382
6382
  setValue(value2);
@@ -6407,9 +6407,9 @@ var useInstrumentPicker = ({
6407
6407
  };
6408
6408
 
6409
6409
  // src/instrument-picker/InstrumentPicker.tsx
6410
- var import_jsx_runtime23 = require("react/jsx-runtime");
6410
+ var import_jsx_runtime22 = require("react/jsx-runtime");
6411
6411
  var classBase12 = "vuuInstrumentPicker";
6412
- var InstrumentPicker = (0, import_react45.forwardRef)(function InstrumentPicker2({
6412
+ var InstrumentPicker = (0, import_react46.forwardRef)(function InstrumentPicker2({
6413
6413
  TableProps: { dataSource, ...TableProps3 },
6414
6414
  className,
6415
6415
  columnMap,
@@ -6441,7 +6441,7 @@ var InstrumentPicker = (0, import_react45.forwardRef)(function InstrumentPicker2
6441
6441
  onSelect,
6442
6442
  searchColumns
6443
6443
  });
6444
- const endAdornment = (0, import_react45.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "data-icon": "chevron-down" }), []);
6444
+ const endAdornment = (0, import_react46.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { "data-icon": "chevron-down" }), []);
6445
6445
  const tableProps = {
6446
6446
  ...TableProps3,
6447
6447
  config: {
@@ -6449,7 +6449,7 @@ var InstrumentPicker = (0, import_react45.forwardRef)(function InstrumentPicker2
6449
6449
  zebraStripes: false
6450
6450
  }
6451
6451
  };
6452
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
6452
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
6453
6453
  DropdownBase,
6454
6454
  {
6455
6455
  ...htmlAttributes,
@@ -6462,7 +6462,7 @@ var InstrumentPicker = (0, import_react45.forwardRef)(function InstrumentPicker2
6462
6462
  ref: forwardedRef,
6463
6463
  width,
6464
6464
  children: [
6465
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6465
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6466
6466
  import_core17.Input,
6467
6467
  {
6468
6468
  ...inputProps,
@@ -6471,7 +6471,7 @@ var InstrumentPicker = (0, import_react45.forwardRef)(function InstrumentPicker2
6471
6471
  value
6472
6472
  }
6473
6473
  ),
6474
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6474
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6475
6475
  import_vuu_table2.Table,
6476
6476
  {
6477
6477
  rowHeight: 25,
@@ -6497,11 +6497,11 @@ var import_vuu_layout20 = require("@vuu-ui/vuu-layout");
6497
6497
  var import_vuu_table3 = require("@vuu-ui/vuu-table");
6498
6498
  var import_core25 = require("@salt-ds/core");
6499
6499
  var import_classnames23 = __toESM(require("classnames"));
6500
- var import_react73 = require("react");
6500
+ var import_react74 = require("react");
6501
6501
 
6502
6502
  // src/instrument-search/SearchCell.tsx
6503
6503
  var import_vuu_utils9 = require("@vuu-ui/vuu-utils");
6504
- var import_jsx_runtime24 = require("react/jsx-runtime");
6504
+ var import_jsx_runtime23 = require("react/jsx-runtime");
6505
6505
  var classBase13 = "vuuSearchCell";
6506
6506
  var SearchCell2 = ({
6507
6507
  column,
@@ -6510,8 +6510,8 @@ var SearchCell2 = ({
6510
6510
  }) => {
6511
6511
  const key = columnMap[column.name];
6512
6512
  const value = row[key];
6513
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: classBase13, tabIndex: -1, children: [
6514
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { "data-icon": "draggable" }),
6513
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: classBase13, tabIndex: -1, children: [
6514
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "data-icon": "draggable" }),
6515
6515
  value
6516
6516
  ] });
6517
6517
  };
@@ -6524,54 +6524,54 @@ var import_vuu_data8 = require("@vuu-ui/vuu-data");
6524
6524
 
6525
6525
  // ../vuu-data-react/src/hooks/useDataSource.ts
6526
6526
  var import_vuu_utils10 = require("@vuu-ui/vuu-utils");
6527
- var import_react46 = require("react");
6527
+ var import_react47 = require("react");
6528
6528
  var { SELECTED } = import_vuu_utils10.metadataKeys;
6529
6529
 
6530
6530
  // ../vuu-data-react/src/hooks/useLookupValues.ts
6531
6531
  var import_vuu_data3 = require("@vuu-ui/vuu-data");
6532
6532
 
6533
6533
  // ../vuu-shell/src/app-header/AppHeader.tsx
6534
- var import_react49 = require("react");
6534
+ var import_react50 = require("react");
6535
6535
  var import_classnames13 = __toESM(require("classnames"));
6536
6536
  var import_vuu_layout10 = require("@vuu-ui/vuu-layout");
6537
6537
 
6538
6538
  // ../vuu-shell/src/login/LoginPanel.tsx
6539
- var import_react48 = require("react");
6539
+ var import_react49 = require("react");
6540
6540
  var import_core18 = require("@salt-ds/core");
6541
6541
 
6542
6542
  // ../vuu-shell/src/login/VuuLogo.tsx
6543
- var import_react47 = require("react");
6544
- var import_jsx_runtime25 = require("react/jsx-runtime");
6543
+ var import_react48 = require("react");
6544
+ var import_jsx_runtime24 = require("react/jsx-runtime");
6545
6545
 
6546
6546
  // ../vuu-shell/src/login/LoginPanel.tsx
6547
6547
  var import_classnames12 = __toESM(require("classnames"));
6548
- var import_jsx_runtime26 = require("react/jsx-runtime");
6548
+ var import_jsx_runtime25 = require("react/jsx-runtime");
6549
6549
 
6550
6550
  // ../vuu-shell/src/login/login-utils.ts
6551
6551
  var import_vuu_utils11 = require("@vuu-ui/vuu-utils");
6552
6552
 
6553
6553
  // ../vuu-shell/src/app-header/AppHeader.tsx
6554
6554
  var import_core19 = require("@salt-ds/core");
6555
- var import_jsx_runtime27 = require("react/jsx-runtime");
6555
+ var import_jsx_runtime26 = require("react/jsx-runtime");
6556
6556
 
6557
6557
  // ../vuu-shell/src/connection-status/ConnectionStatusIcon.tsx
6558
- var import_react50 = __toESM(require("react"));
6558
+ var import_react51 = __toESM(require("react"));
6559
6559
  var import_classnames14 = __toESM(require("classnames"));
6560
- var import_jsx_runtime28 = require("react/jsx-runtime");
6560
+ var import_jsx_runtime27 = require("react/jsx-runtime");
6561
6561
 
6562
6562
  // ../vuu-shell/src/density-switch/DensitySwitch.tsx
6563
- var import_react51 = require("react");
6563
+ var import_react52 = require("react");
6564
6564
  var import_classnames15 = __toESM(require("classnames"));
6565
- var import_jsx_runtime29 = require("react/jsx-runtime");
6565
+ var import_jsx_runtime28 = require("react/jsx-runtime");
6566
6566
 
6567
6567
  // ../vuu-shell/src/feature/Feature.tsx
6568
- var import_react53 = __toESM(require("react"));
6568
+ var import_react54 = __toESM(require("react"));
6569
6569
  var import_vuu_layout11 = require("@vuu-ui/vuu-layout");
6570
6570
 
6571
6571
  // ../vuu-shell/src/feature/FeatureErrorBoundary.tsx
6572
- var import_react52 = __toESM(require("react"));
6573
- var import_jsx_runtime30 = require("react/jsx-runtime");
6574
- var FeatureErrorBoundary = class extends import_react52.default.Component {
6572
+ var import_react53 = __toESM(require("react"));
6573
+ var import_jsx_runtime29 = require("react/jsx-runtime");
6574
+ var FeatureErrorBoundary = class extends import_react53.default.Component {
6575
6575
  constructor(props) {
6576
6576
  super(props);
6577
6577
  this.state = { errorMessage: null };
@@ -6585,9 +6585,9 @@ var FeatureErrorBoundary = class extends import_react52.default.Component {
6585
6585
  }
6586
6586
  render() {
6587
6587
  if (this.state.errorMessage) {
6588
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
6589
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h1", { children: "An error occured while creating component." }),
6590
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { children: this.state.errorMessage })
6588
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
6589
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h1", { children: "An error occured while creating component." }),
6590
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { children: this.state.errorMessage })
6591
6591
  ] });
6592
6592
  }
6593
6593
  return this.props.children;
@@ -6595,8 +6595,8 @@ var FeatureErrorBoundary = class extends import_react52.default.Component {
6595
6595
  };
6596
6596
 
6597
6597
  // ../vuu-shell/src/feature/Loader.tsx
6598
- var import_jsx_runtime31 = require("react/jsx-runtime");
6599
- var Loader = () => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "hwLoader" });
6598
+ var import_jsx_runtime30 = require("react/jsx-runtime");
6599
+ var Loader = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "hwLoader" });
6600
6600
 
6601
6601
  // ../vuu-shell/src/feature/css-module-loader.ts
6602
6602
  var importCSS = async (path) => {
@@ -6605,10 +6605,10 @@ var importCSS = async (path) => {
6605
6605
  };
6606
6606
 
6607
6607
  // ../vuu-shell/src/feature/Feature.tsx
6608
- var import_jsx_runtime32 = require("react/jsx-runtime");
6608
+ var import_jsx_runtime31 = require("react/jsx-runtime");
6609
6609
  var componentsMap = /* @__PURE__ */ new Map();
6610
6610
  var useCachedFeature = (url) => {
6611
- (0, import_react53.useEffect)(
6611
+ (0, import_react54.useEffect)(
6612
6612
  () => () => {
6613
6613
  componentsMap.delete(url);
6614
6614
  },
@@ -6617,7 +6617,7 @@ var useCachedFeature = (url) => {
6617
6617
  if (!componentsMap.has(url)) {
6618
6618
  componentsMap.set(
6619
6619
  url,
6620
- import_react53.default.lazy(() => import(
6620
+ import_react54.default.lazy(() => import(
6621
6621
  /* @vite-ignore */
6622
6622
  url
6623
6623
  ))
@@ -6645,26 +6645,26 @@ function RawFeature({
6645
6645
  });
6646
6646
  }
6647
6647
  const LazyFeature = useCachedFeature(url);
6648
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FeatureErrorBoundary, { url, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react53.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Loader, {}), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LazyFeature, { ...props, ...params }) }) });
6648
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FeatureErrorBoundary, { url, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react54.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Loader, {}), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LazyFeature, { ...props, ...params }) }) });
6649
6649
  }
6650
- var Feature = import_react53.default.memo(RawFeature);
6650
+ var Feature = import_react54.default.memo(RawFeature);
6651
6651
  Feature.displayName = "Feature";
6652
6652
  (0, import_vuu_layout11.registerComponent)("Feature", Feature, "view");
6653
6653
 
6654
6654
  // ../vuu-shell/src/layout-management/SaveLayoutPanel.tsx
6655
- var import_react54 = require("react");
6655
+ var import_react55 = require("react");
6656
6656
  var import_core20 = require("@salt-ds/core");
6657
6657
  var import_vuu_utils12 = require("@vuu-ui/vuu-utils");
6658
- var import_jsx_runtime33 = require("react/jsx-runtime");
6658
+ var import_jsx_runtime32 = require("react/jsx-runtime");
6659
6659
  var classBase14 = "saveLayoutPanel";
6660
6660
  var formField = `${classBase14}-formField`;
6661
6661
 
6662
6662
  // ../vuu-shell/src/layout-management/useLayoutManager.tsx
6663
- var import_react55 = __toESM(require("react"));
6663
+ var import_react56 = __toESM(require("react"));
6664
6664
  var import_vuu_layout12 = require("@vuu-ui/vuu-layout");
6665
6665
  var import_vuu_popups3 = require("@vuu-ui/vuu-popups");
6666
- var import_jsx_runtime34 = require("react/jsx-runtime");
6667
- var LayoutManagementContext = import_react55.default.createContext({
6666
+ var import_jsx_runtime33 = require("react/jsx-runtime");
6667
+ var LayoutManagementContext = import_react56.default.createContext({
6668
6668
  getApplicationSettings: () => void 0,
6669
6669
  layoutMetadata: [],
6670
6670
  saveLayout: () => void 0,
@@ -6676,13 +6676,13 @@ var LayoutManagementContext = import_react55.default.createContext({
6676
6676
  });
6677
6677
 
6678
6678
  // ../vuu-shell/src/layout-management/LayoutList.tsx
6679
- var import_jsx_runtime35 = require("react/jsx-runtime");
6679
+ var import_jsx_runtime34 = require("react/jsx-runtime");
6680
6680
 
6681
6681
  // ../vuu-icons/src/VuuLogo.tsx
6682
- var import_react56 = require("react");
6683
- var import_jsx_runtime36 = require("react/jsx-runtime");
6684
- var VuuLogo2 = (0, import_react56.memo)(() => {
6685
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
6682
+ var import_react57 = require("react");
6683
+ var import_jsx_runtime35 = require("react/jsx-runtime");
6684
+ var VuuLogo2 = (0, import_react57.memo)(() => {
6685
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
6686
6686
  "svg",
6687
6687
  {
6688
6688
  width: "44",
@@ -6691,44 +6691,44 @@ var VuuLogo2 = (0, import_react56.memo)(() => {
6691
6691
  fill: "none",
6692
6692
  xmlns: "http://www.w3.org/2000/svg",
6693
6693
  children: [
6694
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("g", { clipPath: "url(#clip0_217_6990)", children: [
6695
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6694
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("g", { clipPath: "url(#clip0_217_6990)", children: [
6695
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6696
6696
  "path",
6697
6697
  {
6698
6698
  d: "M39.8642 15.5509L35.9196 7.58974L34.3369 6.85464L24.6235 22.0825L39.1628 30.618L42.3152 25.6347L39.8642 15.5509Z",
6699
6699
  fill: "url(#paint0_linear_217_6990)"
6700
6700
  }
6701
6701
  ),
6702
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6702
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6703
6703
  "path",
6704
6704
  {
6705
6705
  d: "M42.6246 24.8716C41.9199 25.9157 40.9625 26.824 39.767 27.4905C38.424 28.2396 36.9563 28.597 35.5081 28.597C32.7541 28.597 30.0715 27.3094 28.4466 24.9855L15.772 3.90967L15.7655 3.9206C13.3615 0.137431 8.25372 -1.13143 4.24754 1.10507C0.178173 3.37435 -1.20852 8.39359 1.14854 12.3125L18.3445 40.9095C19.1108 42.1846 20.1816 43.1834 21.4144 43.8764C21.4241 43.8826 21.4338 43.8889 21.4435 43.8951C21.4484 43.8982 21.4549 43.9013 21.4597 43.9045C22.0332 44.2228 22.6423 44.471 23.2725 44.6536C23.3194 44.6677 23.368 44.6817 23.415 44.6942C23.6418 44.7551 23.8702 44.8097 24.1019 44.8534C24.1456 44.8612 24.1894 44.8659 24.2331 44.8737C24.4194 44.9049 24.6073 44.9314 24.7952 44.9501C24.8698 44.9579 24.9443 44.9658 25.0188 44.9704C25.2342 44.9876 25.4497 44.9985 25.6668 45.0001C25.6781 45.0001 25.6895 45.0001 25.6992 45.0001C25.7024 45.0001 25.704 45.0001 25.7073 45.0001C25.7105 45.0001 25.7121 45.0001 25.7154 45.0001C25.9503 45.0001 26.1868 44.9876 26.4217 44.9689C26.4751 44.9642 26.5286 44.9595 26.5837 44.9533C26.8137 44.9299 27.0438 44.9002 27.2738 44.8596C27.277 44.8596 27.2803 44.8596 27.2835 44.8596C27.5362 44.8144 27.7889 44.7551 28.0384 44.6864C28.0546 44.6817 28.0692 44.677 28.0854 44.6723C28.4483 44.5709 28.8063 44.4445 29.1594 44.2931C29.1659 44.29 29.174 44.2868 29.1805 44.2837C29.4494 44.1682 29.7151 44.0418 29.9759 43.8967C30.24 43.75 30.491 43.5908 30.7308 43.4206C30.9398 43.2739 31.1407 43.1179 31.3367 42.9524C31.5748 42.7495 31.8 42.5373 32.009 42.3141C32.1661 42.1471 32.3168 41.9723 32.4609 41.7913C32.5079 41.732 32.5517 41.6711 32.5954 41.6118C32.6942 41.4807 32.7882 41.3465 32.8789 41.2091C32.9259 41.1373 32.9728 41.0671 33.0182 40.9953C33.036 40.9672 33.0555 40.9407 33.0717 40.9126L42.7153 24.8763H42.6214L42.6246 24.8716Z",
6706
6706
  fill: "url(#paint1_linear_217_6990)"
6707
6707
  }
6708
6708
  ),
6709
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6709
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6710
6710
  "path",
6711
6711
  {
6712
6712
  d: "M42.8402 16.4218L42.1112 15.2232L38.9636 9.58433L37.504 7.19644C37.2286 6.56123 36.579 6.11331 35.8176 6.11331C34.8083 6.11331 33.9919 6.90147 33.9919 7.87223C33.9919 8.20154 34.0907 8.50432 34.2543 8.76808L34.2349 8.78056L39.9048 18.0808C40.5884 19.2186 40.7715 20.5437 40.4199 21.8141C40.0684 23.0845 39.226 24.1458 38.045 24.806C37.2675 25.2398 36.3846 25.4693 35.4936 25.4693C33.6727 25.4693 31.9766 24.5281 31.0662 23.0143L22.9161 9.63271H22.9323L19.4899 3.90958L19.4834 3.92051C19.4235 3.8253 19.3538 3.73947 19.2907 3.64738L19.1935 3.48663C19.1935 3.48663 19.1854 3.49131 19.1821 3.49443C17.5654 1.27666 14.9799 0.0390178 12.3118 0.00936427V0H7.91199V0.02185C10.9851 -0.184164 14.0582 1.23296 15.7656 3.92051L15.7721 3.90958L28.4451 24.987C30.0699 27.3093 32.7542 28.5985 35.5066 28.5985C36.9548 28.5985 38.4225 28.2426 39.7655 27.4919C40.961 26.8255 41.9168 25.9156 42.6231 24.8731H42.717L42.6846 24.9261C43.1366 24.2347 43.4833 23.4731 43.7068 22.6615C44.2916 20.5452 43.9871 18.3352 42.8369 16.4234L42.8402 16.4218Z",
6713
6713
  fill: "#F37880"
6714
6714
  }
6715
6715
  ),
6716
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("g", { opacity: "0.86", children: [
6717
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6716
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("g", { opacity: "0.86", children: [
6717
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6718
6718
  "path",
6719
6719
  {
6720
6720
  d: "M34.2332 8.78212L39.9031 18.0824C40.5868 19.2202 40.7698 20.5452 40.4183 21.8156C40.2044 22.5897 39.8059 23.2858 39.2616 23.8617C39.9744 23.2343 40.4879 22.4243 40.7423 21.5035C41.0938 20.2331 40.9107 18.908 40.2271 17.7703L34.5572 8.46998L34.5767 8.4575C34.413 8.19374 34.3142 7.89096 34.3142 7.56165C34.3142 7.15586 34.4584 6.78285 34.6982 6.48476C34.2672 6.80626 33.9902 7.30881 33.9902 7.87379C33.9902 8.2031 34.0891 8.50588 34.2527 8.76964L34.2332 8.78212Z",
6721
6721
  fill: "white"
6722
6722
  }
6723
6723
  ),
6724
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6724
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6725
6725
  "path",
6726
6726
  {
6727
6727
  d: "M42.6917 24.9169L42.6863 24.9256C42.6863 24.9256 42.6899 24.9187 42.6935 24.9152C42.6935 24.9152 42.6935 24.9152 42.6935 24.9169H42.6917Z",
6728
6728
  fill: "white"
6729
6729
  }
6730
6730
  ),
6731
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6731
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
6732
6732
  "path",
6733
6733
  {
6734
6734
  d: "M40.0911 27.1798C38.7481 27.9289 37.2804 28.2863 35.8322 28.2863C33.0782 28.2863 30.3955 26.9988 28.7707 24.6749L16.0961 3.59744L16.0896 3.60837C14.9281 1.78077 13.1364 0.543128 11.1422 0H7.91199V0.02185C10.9851 -0.184164 14.0582 1.23296 15.7656 3.92051L15.7721 3.90958L28.4451 24.987C30.0699 27.3093 32.7542 28.5985 35.5066 28.5985C36.9548 28.5985 38.4225 28.2426 39.7655 27.4919C40.4815 27.0924 41.1084 26.6055 41.6511 26.0561C41.1862 26.479 40.6662 26.8583 40.0894 27.1798H40.0911Z",
@@ -6737,8 +6737,8 @@ var VuuLogo2 = (0, import_react56.memo)(() => {
6737
6737
  )
6738
6738
  ] })
6739
6739
  ] }),
6740
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("defs", { children: [
6741
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
6740
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("defs", { children: [
6741
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
6742
6742
  "linearGradient",
6743
6743
  {
6744
6744
  id: "paint0_linear_217_6990",
@@ -6748,12 +6748,12 @@ var VuuLogo2 = (0, import_react56.memo)(() => {
6748
6748
  y2: "18.7363",
6749
6749
  gradientUnits: "userSpaceOnUse",
6750
6750
  children: [
6751
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("stop", { stopColor: "#4906A5" }),
6752
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
6751
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("stop", { stopColor: "#4906A5" }),
6752
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
6753
6753
  ]
6754
6754
  }
6755
6755
  ),
6756
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
6756
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
6757
6757
  "linearGradient",
6758
6758
  {
6759
6759
  id: "paint1_linear_217_6990",
@@ -6763,12 +6763,12 @@ var VuuLogo2 = (0, import_react56.memo)(() => {
6763
6763
  y2: "22.5009",
6764
6764
  gradientUnits: "userSpaceOnUse",
6765
6765
  children: [
6766
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("stop", { stopColor: "#7C06A5" }),
6767
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
6766
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("stop", { stopColor: "#7C06A5" }),
6767
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
6768
6768
  ]
6769
6769
  }
6770
6770
  ),
6771
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("clipPath", { id: "clip0_217_6990", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("rect", { width: "44", height: "45", fill: "white" }) })
6771
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("clipPath", { id: "clip0_217_6990", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("rect", { width: "44", height: "45", fill: "white" }) })
6772
6772
  ] })
6773
6773
  ]
6774
6774
  }
@@ -6779,28 +6779,28 @@ VuuLogo2.displayName = "VuuLogo";
6779
6779
  // ../vuu-shell/src/left-nav/LeftNav.tsx
6780
6780
  var import_vuu_layout14 = require("@vuu-ui/vuu-layout");
6781
6781
  var import_classnames17 = __toESM(require("classnames"));
6782
- var import_react58 = require("react");
6782
+ var import_react59 = require("react");
6783
6783
 
6784
6784
  // ../vuu-shell/src/feature-list/FeatureList.tsx
6785
6785
  var import_vuu_layout13 = require("@vuu-ui/vuu-layout");
6786
- var import_jsx_runtime37 = require("react/jsx-runtime");
6786
+ var import_jsx_runtime36 = require("react/jsx-runtime");
6787
6787
 
6788
6788
  // ../vuu-shell/src/theme-provider/ThemeProvider.tsx
6789
- var import_react57 = require("react");
6789
+ var import_react58 = require("react");
6790
6790
  var import_classnames16 = __toESM(require("classnames"));
6791
- var import_jsx_runtime38 = require("react/jsx-runtime");
6791
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6792
6792
  var DEFAULT_DENSITY = "medium";
6793
6793
  var DEFAULT_THEME = "salt-theme";
6794
6794
  var DEFAULT_THEME_MODE = "light";
6795
- var ThemeContext = (0, import_react57.createContext)({
6795
+ var ThemeContext = (0, import_react58.createContext)({
6796
6796
  density: "high",
6797
6797
  theme: "vuu",
6798
6798
  themeMode: "light"
6799
6799
  });
6800
6800
  var createThemedChildren = (children, theme, themeMode, density) => {
6801
6801
  var _a2;
6802
- if ((0, import_react57.isValidElement)(children)) {
6803
- return (0, import_react57.cloneElement)(children, {
6802
+ if ((0, import_react58.isValidElement)(children)) {
6803
+ return (0, import_react58.cloneElement)(children, {
6804
6804
  className: (0, import_classnames16.default)(
6805
6805
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
6806
6806
  (_a2 = children.props) == null ? void 0 : _a2.className,
@@ -6832,88 +6832,88 @@ var ThemeProvider = ({
6832
6832
  density: inheritedDensity,
6833
6833
  themeMode: inheritedThemeMode,
6834
6834
  theme: inheritedTheme
6835
- } = (0, import_react57.useContext)(ThemeContext);
6835
+ } = (0, import_react58.useContext)(ThemeContext);
6836
6836
  const density = (_a2 = densityProp != null ? densityProp : inheritedDensity) != null ? _a2 : DEFAULT_DENSITY;
6837
6837
  const themeMode = (_b = themeModeProp != null ? themeModeProp : inheritedThemeMode) != null ? _b : DEFAULT_THEME_MODE;
6838
6838
  const theme = (_c = themeProp != null ? themeProp : inheritedTheme) != null ? _c : DEFAULT_THEME;
6839
6839
  const themedChildren = applyThemeClasses ? createThemedChildren(children, theme, themeMode, density) : children;
6840
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ThemeContext.Provider, { value: { themeMode, density, theme }, children: themedChildren });
6840
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ThemeContext.Provider, { value: { themeMode, density, theme }, children: themedChildren });
6841
6841
  };
6842
6842
  ThemeProvider.displayName = "ThemeProvider";
6843
6843
 
6844
6844
  // ../vuu-shell/src/left-nav/LeftNav.tsx
6845
- var import_jsx_runtime39 = require("react/jsx-runtime");
6845
+ var import_jsx_runtime38 = require("react/jsx-runtime");
6846
6846
 
6847
6847
  // ../vuu-shell/src/session-editing-form/SessionEditingForm.tsx
6848
- var import_react59 = require("react");
6848
+ var import_react60 = require("react");
6849
6849
  var import_classnames18 = __toESM(require("classnames"));
6850
6850
  var import_core21 = require("@salt-ds/core");
6851
6851
  var import_core22 = require("@salt-ds/core");
6852
6852
  var import_vuu_data = require("@vuu-ui/vuu-data");
6853
6853
  var import_vuu_utils13 = require("@vuu-ui/vuu-utils");
6854
- var import_jsx_runtime40 = require("react/jsx-runtime");
6854
+ var import_jsx_runtime39 = require("react/jsx-runtime");
6855
6855
 
6856
6856
  // ../vuu-shell/src/shell.tsx
6857
6857
  var import_vuu_data2 = require("@vuu-ui/vuu-data");
6858
6858
  var import_vuu_layout18 = require("@vuu-ui/vuu-layout");
6859
6859
  var import_vuu_utils14 = require("@vuu-ui/vuu-utils");
6860
6860
  var import_classnames21 = __toESM(require("classnames"));
6861
- var import_react63 = require("react");
6861
+ var import_react64 = require("react");
6862
6862
 
6863
6863
  // ../vuu-shell/src/shell-layouts/context-panel/ContextPanel.tsx
6864
6864
  var import_core23 = require("@salt-ds/core");
6865
6865
  var import_classnames19 = __toESM(require("classnames"));
6866
- var import_react60 = require("react");
6866
+ var import_react61 = require("react");
6867
6867
  var import_vuu_layout15 = require("@vuu-ui/vuu-layout");
6868
- var import_jsx_runtime41 = require("react/jsx-runtime");
6868
+ var import_jsx_runtime40 = require("react/jsx-runtime");
6869
6869
 
6870
6870
  // ../vuu-shell/src/shell-layouts/useFullHeightLeftPanel.tsx
6871
6871
  var import_vuu_layout16 = require("@vuu-ui/vuu-layout");
6872
6872
 
6873
6873
  // ../vuu-shell/src/shell-layouts/side-panel/SidePanel.tsx
6874
- var import_react61 = require("react");
6874
+ var import_react62 = require("react");
6875
6875
  var import_classnames20 = __toESM(require("classnames"));
6876
- var import_jsx_runtime42 = require("react/jsx-runtime");
6876
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6877
6877
 
6878
6878
  // ../vuu-shell/src/shell-layouts/useFullHeightLeftPanel.tsx
6879
- var import_jsx_runtime43 = require("react/jsx-runtime");
6879
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6880
6880
 
6881
6881
  // ../vuu-shell/src/shell-layouts/useInlayLeftPanel.tsx
6882
6882
  var import_vuu_layout17 = require("@vuu-ui/vuu-layout");
6883
- var import_react62 = require("react");
6884
- var import_jsx_runtime44 = require("react/jsx-runtime");
6883
+ var import_react63 = require("react");
6884
+ var import_jsx_runtime43 = require("react/jsx-runtime");
6885
6885
 
6886
6886
  // ../vuu-shell/src/shell.tsx
6887
6887
  var import_vuu_popups4 = require("@vuu-ui/vuu-popups");
6888
- var import_jsx_runtime45 = require("react/jsx-runtime");
6888
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6889
6889
  var { error } = (0, import_vuu_utils14.logger)("Shell");
6890
6890
 
6891
6891
  // ../vuu-shell/src/ShellContextProvider.tsx
6892
- var import_react64 = require("react");
6893
- var import_jsx_runtime46 = require("react/jsx-runtime");
6892
+ var import_react65 = require("react");
6893
+ var import_jsx_runtime45 = require("react/jsx-runtime");
6894
6894
  var defaultConfig = {};
6895
- var ShellContext = (0, import_react64.createContext)(defaultConfig);
6895
+ var ShellContext = (0, import_react65.createContext)(defaultConfig);
6896
6896
 
6897
6897
  // ../vuu-shell/src/theme-switch/ThemeSwitch.tsx
6898
6898
  var import_classnames22 = __toESM(require("classnames"));
6899
6899
  var import_core24 = require("@salt-ds/core");
6900
- var import_react65 = require("react");
6901
- var import_jsx_runtime47 = require("react/jsx-runtime");
6900
+ var import_react66 = require("react");
6901
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6902
6902
 
6903
6903
  // ../vuu-data-react/src/hooks/useLookupValues.ts
6904
6904
  var import_vuu_utils15 = require("@vuu-ui/vuu-utils");
6905
- var import_react66 = require("react");
6905
+ var import_react67 = require("react");
6906
6906
 
6907
6907
  // ../vuu-data-react/src/hooks/useServerConnectionStatus.ts
6908
- var import_react67 = require("react");
6908
+ var import_react68 = require("react");
6909
6909
  var import_vuu_data4 = require("@vuu-ui/vuu-data");
6910
6910
 
6911
6911
  // ../vuu-data-react/src/hooks/useServerConnectionQuality.ts
6912
- var import_react68 = require("react");
6912
+ var import_react69 = require("react");
6913
6913
  var import_vuu_data5 = require("@vuu-ui/vuu-data");
6914
6914
 
6915
6915
  // ../vuu-data-react/src/hooks/useTypeaheadSuggestions.ts
6916
- var import_react69 = require("react");
6916
+ var import_react70 = require("react");
6917
6917
  var import_vuu_data6 = require("@vuu-ui/vuu-data");
6918
6918
 
6919
6919
  // ../../node_modules/@lezer/common/dist/index.js
@@ -9978,31 +9978,31 @@ var strictParser = parser.configure({ strict: true });
9978
9978
 
9979
9979
  // ../vuu-data-react/src/hooks/useVuuMenuActions.ts
9980
9980
  var import_vuu_utils17 = require("@vuu-ui/vuu-utils");
9981
- var import_react70 = require("react");
9981
+ var import_react71 = require("react");
9982
9982
  var { KEY } = import_vuu_utils17.metadataKeys;
9983
9983
 
9984
9984
  // ../vuu-data-react/src/hooks/useVuuTables.ts
9985
9985
  var import_vuu_data7 = require("@vuu-ui/vuu-data");
9986
- var import_react71 = require("react");
9986
+ var import_react72 = require("react");
9987
9987
  var getVuuTableSchema = (table) => (0, import_vuu_data7.getServerAPI)().then((server) => server.getTableSchema(table));
9988
9988
 
9989
9989
  // src/instrument-search/useInstrumentSearch.ts
9990
9990
  var import_vuu_layout19 = require("@vuu-ui/vuu-layout");
9991
- var import_react72 = require("react");
9991
+ var import_react73 = require("react");
9992
9992
  var useInstrumentSearch = ({
9993
9993
  dataSource: dataSourceProp,
9994
9994
  searchColumns = ["description"],
9995
9995
  table
9996
9996
  }) => {
9997
- const [dataSource, setDataSource] = (0, import_react72.useState)(dataSourceProp);
9997
+ const [dataSource, setDataSource] = (0, import_react73.useState)(dataSourceProp);
9998
9998
  const { loadSession, saveSession } = (0, import_vuu_layout19.useViewContext)();
9999
- const [searchState, setSearchState] = (0, import_react72.useState)({ searchText: "", filter: "" });
10000
- const baseFilterPattern = (0, import_react72.useMemo)(
9999
+ const [searchState, setSearchState] = (0, import_react73.useState)({ searchText: "", filter: "" });
10000
+ const baseFilterPattern = (0, import_react73.useMemo)(
10001
10001
  // TODO make this contains once server supports it
10002
10002
  () => searchColumns.map((col) => `${col} starts "__VALUE__"`).join(" or "),
10003
10003
  [searchColumns]
10004
10004
  );
10005
- (0, import_react72.useMemo)(() => {
10005
+ (0, import_react73.useMemo)(() => {
10006
10006
  if (dataSourceProp === void 0) {
10007
10007
  if (table) {
10008
10008
  const sessionKey = `instrument-search-${table.module}-${table.table}`;
@@ -10027,7 +10027,7 @@ var useInstrumentSearch = ({
10027
10027
  }
10028
10028
  }
10029
10029
  }, [dataSourceProp, loadSession, saveSession, table]);
10030
- const handleChange = (0, import_react72.useCallback)(
10030
+ const handleChange = (0, import_react73.useCallback)(
10031
10031
  (evt) => {
10032
10032
  const { value } = evt.target;
10033
10033
  const filter = baseFilterPattern.replaceAll("__VALUE__", value);
@@ -10051,7 +10051,7 @@ var useInstrumentSearch = ({
10051
10051
  };
10052
10052
 
10053
10053
  // src/instrument-search/InstrumentSearch.tsx
10054
- var import_jsx_runtime48 = require("react/jsx-runtime");
10054
+ var import_jsx_runtime47 = require("react/jsx-runtime");
10055
10055
  var classBase15 = "vuuInstrumentSearch";
10056
10056
  var defaultTableConfig = {
10057
10057
  columns: [
@@ -10069,7 +10069,7 @@ var defaultTableConfig = {
10069
10069
  ],
10070
10070
  rowSeparators: true
10071
10071
  };
10072
- var searchIcon = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { "data-icon": "search" });
10072
+ var searchIcon = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { "data-icon": "search" });
10073
10073
  var InstrumentSearch = ({
10074
10074
  TableProps: TableProps3,
10075
10075
  autoFocus = false,
@@ -10087,14 +10087,14 @@ var InstrumentSearch = ({
10087
10087
  table
10088
10088
  });
10089
10089
  const { highlightedIndexRef, onHighlight, onKeyDown, tableRef } = (0, import_vuu_table3.useControlledTableNavigation)(-1, (_a2 = dataSource == null ? void 0 : dataSource.size) != null ? _a2 : 0);
10090
- const searchCallbackRef = (0, import_react73.useCallback)((el) => {
10090
+ const searchCallbackRef = (0, import_react74.useCallback)((el) => {
10091
10091
  setTimeout(() => {
10092
10092
  var _a3;
10093
10093
  (_a3 = el == null ? void 0 : el.querySelector("input")) == null ? void 0 : _a3.focus();
10094
10094
  }, 100);
10095
10095
  }, []);
10096
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...htmlAttributes, className: (0, import_classnames23.default)(classBase15, className), children: [
10097
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: `${classBase15}-inputField`, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
10096
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { ...htmlAttributes, className: (0, import_classnames23.default)(classBase15, className), children: [
10097
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: `${classBase15}-inputField`, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10098
10098
  import_core25.Input,
10099
10099
  {
10100
10100
  inputProps: { onKeyDown },
@@ -10105,7 +10105,7 @@ var InstrumentSearch = ({
10105
10105
  onChange
10106
10106
  }
10107
10107
  ) }),
10108
- dataSource ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
10108
+ dataSource ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10109
10109
  import_vuu_table3.Table,
10110
10110
  {
10111
10111
  disableFocus: true,
@@ -10130,9 +10130,9 @@ var _a;
10130
10130
 
10131
10131
  // src/price-ticker/PriceTicker.tsx
10132
10132
  var import_vuu_utils18 = require("@vuu-ui/vuu-utils");
10133
- var import_react74 = require("react");
10133
+ var import_react75 = require("react");
10134
10134
  var import_classnames24 = __toESM(require("classnames"));
10135
- var import_jsx_runtime49 = require("react/jsx-runtime");
10135
+ var import_jsx_runtime48 = require("react/jsx-runtime");
10136
10136
  var classBase16 = "vuuPriceTicker";
10137
10137
  var getValueFormatter = (decimals) => (0, import_vuu_utils18.numericFormatter)({
10138
10138
  type: {
@@ -10144,7 +10144,7 @@ var getValueFormatter = (decimals) => (0, import_vuu_utils18.numericFormatter)({
10144
10144
  }
10145
10145
  });
10146
10146
  var INITIAL_VALUE = [void 0, void 0];
10147
- var PriceTicker = (0, import_react74.memo)(
10147
+ var PriceTicker = (0, import_react75.memo)(
10148
10148
  ({
10149
10149
  className,
10150
10150
  decimals = 2,
@@ -10152,14 +10152,14 @@ var PriceTicker = (0, import_react74.memo)(
10152
10152
  showArrow,
10153
10153
  ...htmlAttributes
10154
10154
  }) => {
10155
- const ref = (0, import_react74.useRef)(INITIAL_VALUE);
10155
+ const ref = (0, import_react75.useRef)(INITIAL_VALUE);
10156
10156
  const [prevValue, prevDirection] = ref.current;
10157
- const formatNumber = (0, import_react74.useMemo)(() => getValueFormatter(decimals), [decimals]);
10157
+ const formatNumber = (0, import_react75.useMemo)(() => getValueFormatter(decimals), [decimals]);
10158
10158
  const direction = (0, import_vuu_utils18.isValidNumber)(prevValue) ? (0, import_vuu_utils18.getMovingValueDirection)(price, prevDirection, prevValue, decimals) : "";
10159
10159
  ref.current = [price, direction];
10160
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ...htmlAttributes, className: (0, import_classnames24.default)(classBase16, className, direction), children: [
10160
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...htmlAttributes, className: (0, import_classnames24.default)(classBase16, className, direction), children: [
10161
10161
  formatNumber(price),
10162
- showArrow ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { "data-icon": "price-arrow" }) : null
10162
+ showArrow ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { "data-icon": "price-arrow" }) : null
10163
10163
  ] });
10164
10164
  }
10165
10165
  );
@@ -10169,11 +10169,11 @@ PriceTicker.displayName = "PriceTicker";
10169
10169
  var import_vuu_layout21 = require("@vuu-ui/vuu-layout");
10170
10170
  var import_core28 = require("@salt-ds/core");
10171
10171
  var import_classnames25 = __toESM(require("classnames"));
10172
- var import_react79 = __toESM(require("react"));
10172
+ var import_react80 = __toESM(require("react"));
10173
10173
 
10174
10174
  // src/tabstrip/useTabstrip.ts
10175
10175
  var import_vuu_utils23 = require("@vuu-ui/vuu-utils");
10176
- var import_react78 = require("react");
10176
+ var import_react79 = require("react");
10177
10177
 
10178
10178
  // src/tabstrip/TabMenuOptions.ts
10179
10179
  var isTabMenuOptions = (options) => typeof options === "object" && options !== null && "tabIndex" in options && typeof options.tabIndex === "number";
@@ -10206,22 +10206,22 @@ var getIndexOfEditedItem = (container) => getIndexOfItem(container, ".vuuEditabl
10206
10206
 
10207
10207
  // src/tabstrip/useAnimatedSelectionThumb.ts
10208
10208
  var import_vuu_utils20 = require("@vuu-ui/vuu-utils");
10209
- var import_react75 = require("react");
10209
+ var import_react76 = require("react");
10210
10210
  var useAnimatedSelectionThumb = (containerRef, activeTabIndex, orientation = "horizontal") => {
10211
- const animationSuspendedRef = (0, import_react75.useRef)(false);
10212
- const suspendAnimation = (0, import_react75.useCallback)(() => {
10211
+ const animationSuspendedRef = (0, import_react76.useRef)(false);
10212
+ const suspendAnimation = (0, import_react76.useCallback)(() => {
10213
10213
  animationSuspendedRef.current = true;
10214
10214
  }, []);
10215
- const resumeAnimation = (0, import_react75.useCallback)(() => {
10215
+ const resumeAnimation = (0, import_react76.useCallback)(() => {
10216
10216
  animationSuspendedRef.current = false;
10217
10217
  }, []);
10218
- const onTransitionEnd = (0, import_react75.useCallback)(() => {
10218
+ const onTransitionEnd = (0, import_react76.useCallback)(() => {
10219
10219
  var _a2, _b;
10220
10220
  (_a2 = containerRef.current) == null ? void 0 : _a2.style.setProperty("--tab-thumb-transition", "none");
10221
10221
  (_b = containerRef.current) == null ? void 0 : _b.removeEventListener("transitionend", onTransitionEnd);
10222
10222
  }, [containerRef]);
10223
- const lastSelectedRef = (0, import_react75.useRef)(-1);
10224
- return (0, import_react75.useMemo)(() => {
10223
+ const lastSelectedRef = (0, import_react76.useRef)(-1);
10224
+ return (0, import_react76.useMemo)(() => {
10225
10225
  var _a2, _b;
10226
10226
  let offset = 0;
10227
10227
  let size = 0;
@@ -10291,7 +10291,7 @@ var useAnimatedSelectionThumb = (containerRef, activeTabIndex, orientation = "ho
10291
10291
  // src/tabstrip/useKeyboardNavigation.ts
10292
10292
  var import_core26 = require("@salt-ds/core");
10293
10293
  var import_vuu_utils21 = require("@vuu-ui/vuu-utils");
10294
- var import_react76 = require("react");
10294
+ var import_react77 = require("react");
10295
10295
  var import_vuu_utils22 = require("@vuu-ui/vuu-utils");
10296
10296
  var navigation = {
10297
10297
  horizontal: {
@@ -10341,23 +10341,23 @@ var useKeyboardNavigation2 = ({
10341
10341
  selectedIndex: selectedTabIndex = 0
10342
10342
  }) => {
10343
10343
  const manualActivation = keyBoardActivation === "manual";
10344
- const mouseClickPending = (0, import_react76.useRef)(false);
10345
- const focusedRef = (0, import_react76.useRef)(-1);
10346
- const [hasFocus, setHasFocus] = (0, import_react76.useState)(false);
10347
- const [, forceRefresh] = (0, import_react76.useState)({});
10344
+ const mouseClickPending = (0, import_react77.useRef)(false);
10345
+ const focusedRef = (0, import_react77.useRef)(-1);
10346
+ const [hasFocus, setHasFocus] = (0, import_react77.useState)(false);
10347
+ const [, forceRefresh] = (0, import_react77.useState)({});
10348
10348
  const [highlightedIdx, _setHighlightedIdx] = (0, import_core26.useControlled)({
10349
10349
  controlled: highlightedIdxProp,
10350
10350
  default: defaultHighlightedIdx,
10351
10351
  name: "UseKeyboardNavigation"
10352
10352
  });
10353
- const setHighlightedIdx = (0, import_react76.useCallback)(
10353
+ const setHighlightedIdx = (0, import_react77.useCallback)(
10354
10354
  (value) => {
10355
10355
  _setHighlightedIdx(focusedRef.current = value);
10356
10356
  },
10357
10357
  [_setHighlightedIdx]
10358
10358
  );
10359
- const keyboardNavigation = (0, import_react76.useRef)(false);
10360
- const focusTab = (0, import_react76.useCallback)(
10359
+ const keyboardNavigation = (0, import_react77.useRef)(false);
10360
+ const focusTab = (0, import_react77.useCallback)(
10361
10361
  (tabIndex, immediateFocus = false, withKeyboard, delay = 70) => {
10362
10362
  setHighlightedIdx(tabIndex);
10363
10363
  if (withKeyboard === true && !keyboardNavigation.current) {
@@ -10397,14 +10397,14 @@ var useKeyboardNavigation2 = ({
10397
10397
  }
10398
10398
  }
10399
10399
  };
10400
- const getIndexCount = (0, import_react76.useCallback)(
10400
+ const getIndexCount = (0, import_react77.useCallback)(
10401
10401
  () => {
10402
10402
  var _a2, _b;
10403
10403
  return (_b = (_a2 = containerRef.current) == null ? void 0 : _a2.querySelectorAll(`[data-index]`).length) != null ? _b : 0;
10404
10404
  },
10405
10405
  [containerRef]
10406
10406
  );
10407
- const nextFocusableItemIdx = (0, import_react76.useCallback)(
10407
+ const nextFocusableItemIdx = (0, import_react77.useCallback)(
10408
10408
  (direction = "fwd", idx) => {
10409
10409
  const indexCount = getIndexCount();
10410
10410
  const index = typeof idx === "number" ? idx : indexCount;
@@ -10424,7 +10424,7 @@ var useKeyboardNavigation2 = ({
10424
10424
  },
10425
10425
  [containerRef, getIndexCount]
10426
10426
  );
10427
- const navigateChildItems = (0, import_react76.useCallback)(
10427
+ const navigateChildItems = (0, import_react77.useCallback)(
10428
10428
  (e, forceFocusVisible = false) => {
10429
10429
  const direction = navigation[orientation][e.key];
10430
10430
  const nextIdx = nextFocusableItemIdx(direction, highlightedIdx);
@@ -10446,14 +10446,14 @@ var useKeyboardNavigation2 = ({
10446
10446
  orientation
10447
10447
  ]
10448
10448
  );
10449
- const highlightedTabHasMenu = (0, import_react76.useCallback)(() => {
10449
+ const highlightedTabHasMenu = (0, import_react77.useCallback)(() => {
10450
10450
  const el = getElementByPosition(containerRef.current, highlightedIdx);
10451
10451
  if (el) {
10452
10452
  return el.querySelector(".vuuPopupMenu") != null;
10453
10453
  }
10454
10454
  return false;
10455
10455
  }, [containerRef, highlightedIdx]);
10456
- const activateTabMenu = (0, import_react76.useCallback)(() => {
10456
+ const activateTabMenu = (0, import_react77.useCallback)(() => {
10457
10457
  const el = getElementByPosition(containerRef.current, highlightedIdx);
10458
10458
  const menuEl = el == null ? void 0 : el.querySelector(".vuuPopupMenu");
10459
10459
  if (menuEl) {
@@ -10461,7 +10461,7 @@ var useKeyboardNavigation2 = ({
10461
10461
  }
10462
10462
  return false;
10463
10463
  }, [containerRef, highlightedIdx]);
10464
- const handleKeyDown = (0, import_react76.useCallback)(
10464
+ const handleKeyDown = (0, import_react77.useCallback)(
10465
10465
  (e) => {
10466
10466
  if (getIndexCount() > 0 && isNavigationKey2(e.key, orientation)) {
10467
10467
  e.preventDefault();
@@ -10486,7 +10486,7 @@ var useKeyboardNavigation2 = ({
10486
10486
  const handleItemClick = (_, tabIndex) => {
10487
10487
  setHighlightedIdx(tabIndex);
10488
10488
  };
10489
- const handleFocus = (0, import_react76.useCallback)(() => {
10489
+ const handleFocus = (0, import_react77.useCallback)(() => {
10490
10490
  if (!hasFocus) {
10491
10491
  setHasFocus(true);
10492
10492
  if (!mouseClickPending.current) {
@@ -10496,7 +10496,7 @@ var useKeyboardNavigation2 = ({
10496
10496
  }
10497
10497
  }
10498
10498
  }, [hasFocus]);
10499
- const handleContainerMouseDown = (0, import_react76.useCallback)(() => {
10499
+ const handleContainerMouseDown = (0, import_react77.useCallback)(() => {
10500
10500
  if (!hasFocus) {
10501
10501
  mouseClickPending.current = true;
10502
10502
  }
@@ -10534,7 +10534,7 @@ var useKeyboardNavigation2 = ({
10534
10534
 
10535
10535
  // src/tabstrip/useSelection.ts
10536
10536
  var import_core27 = require("@salt-ds/core");
10537
- var import_react77 = require("react");
10537
+ var import_react78 = require("react");
10538
10538
  var defaultSelectionKeys2 = ["Enter", " "];
10539
10539
  var isTabElement = (el) => el && el.matches('[class*="vuuTab "]');
10540
10540
  var useSelection2 = ({
@@ -10549,18 +10549,18 @@ var useSelection2 = ({
10549
10549
  name: "Tabstrip",
10550
10550
  state: "value"
10551
10551
  });
10552
- const isSelectionEvent = (0, import_react77.useCallback)(
10552
+ const isSelectionEvent = (0, import_react78.useCallback)(
10553
10553
  (evt) => defaultSelectionKeys2.includes(evt.key),
10554
10554
  []
10555
10555
  );
10556
- const selectItem = (0, import_react77.useCallback)(
10556
+ const selectItem = (0, import_react78.useCallback)(
10557
10557
  (tabIndex) => {
10558
10558
  setSelected(tabIndex);
10559
10559
  onSelectionChange == null ? void 0 : onSelectionChange(tabIndex);
10560
10560
  },
10561
10561
  [onSelectionChange, setSelected]
10562
10562
  );
10563
- const handleKeyDown = (0, import_react77.useCallback)(
10563
+ const handleKeyDown = (0, import_react78.useCallback)(
10564
10564
  (e) => {
10565
10565
  const targetElement = e.target;
10566
10566
  if (isSelectionEvent(e) && highlightedIdx !== selected && isTabElement(targetElement)) {
@@ -10571,7 +10571,7 @@ var useSelection2 = ({
10571
10571
  },
10572
10572
  [isSelectionEvent, highlightedIdx, selected, selectItem]
10573
10573
  );
10574
- const onClick = (0, import_react77.useCallback)(
10574
+ const onClick = (0, import_react78.useCallback)(
10575
10575
  (e, tabIndex) => {
10576
10576
  if (tabIndex !== selected) {
10577
10577
  selectItem(tabIndex);
@@ -10611,7 +10611,7 @@ var useTabstrip = ({
10611
10611
  orientation,
10612
10612
  keyBoardActivation
10613
10613
  }) => {
10614
- const lastSelection = (0, import_react78.useRef)(activeTabIndexProp);
10614
+ const lastSelection = (0, import_react79.useRef)(activeTabIndexProp);
10615
10615
  const {
10616
10616
  focusTab: keyboardHookFocusTab,
10617
10617
  highlightedIdx,
@@ -10641,7 +10641,7 @@ var useTabstrip = ({
10641
10641
  animateSelectionThumb ? selectionHookSelected : -1,
10642
10642
  orientation
10643
10643
  );
10644
- const handleDrop = (0, import_react78.useCallback)(
10644
+ const handleDrop = (0, import_react79.useCallback)(
10645
10645
  (fromIndex, toIndex) => {
10646
10646
  const { current: selected } = lastSelection;
10647
10647
  console.log(
@@ -10683,7 +10683,7 @@ var useTabstrip = ({
10683
10683
  orientation: "horizontal",
10684
10684
  itemQuery: ".vuuOverflowContainer-item"
10685
10685
  });
10686
- const handleExitEditMode = (0, import_react78.useCallback)(
10686
+ const handleExitEditMode = (0, import_react79.useCallback)(
10687
10687
  (originalValue, editedValue, allowDeactivation, tabIndex) => {
10688
10688
  console.log(
10689
10689
  `handleExitEditMode ${originalValue} ${editedValue} ${allowDeactivation} ${tabIndex}`
@@ -10695,7 +10695,7 @@ var useTabstrip = ({
10695
10695
  },
10696
10696
  [keyboardHookFocusTab, onExitEditMode]
10697
10697
  );
10698
- const handleClick = (0, import_react78.useCallback)(
10698
+ const handleClick = (0, import_react79.useCallback)(
10699
10699
  (evt, tabIndex) => {
10700
10700
  keyboardHookHandleClick(evt, tabIndex);
10701
10701
  selectionHookHandleClick(evt, tabIndex);
@@ -10703,7 +10703,7 @@ var useTabstrip = ({
10703
10703
  // [dragDropHook.isDragging, keyboardHook, selectionHook]
10704
10704
  [keyboardHookHandleClick, selectionHookHandleClick]
10705
10705
  );
10706
- const getEditableLabel = (0, import_react78.useCallback)(
10706
+ const getEditableLabel = (0, import_react79.useCallback)(
10707
10707
  (tabIndex = highlightedIdx) => {
10708
10708
  const targetEl = getElementWithIndex(containerRef.current, tabIndex);
10709
10709
  if (targetEl) {
@@ -10712,7 +10712,7 @@ var useTabstrip = ({
10712
10712
  },
10713
10713
  [containerRef, highlightedIdx]
10714
10714
  );
10715
- const tabInEditMode = (0, import_react78.useCallback)(
10715
+ const tabInEditMode = (0, import_react79.useCallback)(
10716
10716
  (tabIndex = highlightedIdx) => {
10717
10717
  const editableLabel = getEditableLabel(tabIndex);
10718
10718
  if (editableLabel) {
@@ -10722,7 +10722,7 @@ var useTabstrip = ({
10722
10722
  },
10723
10723
  [getEditableLabel, highlightedIdx]
10724
10724
  );
10725
- const editTab = (0, import_react78.useCallback)(
10725
+ const editTab = (0, import_react79.useCallback)(
10726
10726
  (tabIndex = highlightedIdx) => {
10727
10727
  const editableLabelEl = getEditableLabel(tabIndex);
10728
10728
  if (editableLabelEl) {
@@ -10731,7 +10731,7 @@ var useTabstrip = ({
10731
10731
  },
10732
10732
  [getEditableLabel, highlightedIdx]
10733
10733
  );
10734
- const handleKeyDown = (0, import_react78.useCallback)(
10734
+ const handleKeyDown = (0, import_react79.useCallback)(
10735
10735
  (evt) => {
10736
10736
  keyboardHookHandleKeyDown(evt);
10737
10737
  if (!evt.defaultPrevented) {
@@ -10743,7 +10743,7 @@ var useTabstrip = ({
10743
10743
  },
10744
10744
  [editTab, keyboardHookHandleKeyDown, selectionHookHandleKeyDown]
10745
10745
  );
10746
- const handleCloseTabFromMenu = (0, import_react78.useCallback)(
10746
+ const handleCloseTabFromMenu = (0, import_react79.useCallback)(
10747
10747
  (tabIndex) => {
10748
10748
  const selectedTabIndex = getIndexOfSelectedTab(containerRef.current);
10749
10749
  const newActiveTabIndex = selectedTabIndex > tabIndex ? selectedTabIndex - 1 : selectedTabIndex === tabIndex ? 0 : selectedTabIndex;
@@ -10756,14 +10756,14 @@ var useTabstrip = ({
10756
10756
  },
10757
10757
  [containerRef, onCloseTab, resumeAnimation, suspendAnimation]
10758
10758
  );
10759
- const handleRenameTabFromMenu = (0, import_react78.useCallback)(
10759
+ const handleRenameTabFromMenu = (0, import_react79.useCallback)(
10760
10760
  (tabIndex) => {
10761
10761
  editTab(tabIndex);
10762
10762
  return true;
10763
10763
  },
10764
10764
  [editTab]
10765
10765
  );
10766
- const handleTabMenuAction = (0, import_react78.useCallback)(
10766
+ const handleTabMenuAction = (0, import_react79.useCallback)(
10767
10767
  (action) => {
10768
10768
  if (isTabMenuOptions(action.options)) {
10769
10769
  switch (action.menuId) {
@@ -10779,7 +10779,7 @@ var useTabstrip = ({
10779
10779
  },
10780
10780
  [handleCloseTabFromMenu, handleRenameTabFromMenu]
10781
10781
  );
10782
- const handleTabMenuClose = (0, import_react78.useCallback)(() => {
10782
+ const handleTabMenuClose = (0, import_react79.useCallback)(() => {
10783
10783
  if (!tabInEditMode()) {
10784
10784
  keyboardHookFocusTab(highlightedIdx);
10785
10785
  } else {
@@ -10791,7 +10791,7 @@ var useTabstrip = ({
10791
10791
  keyboardHookSetHighlightedIndex,
10792
10792
  tabInEditMode
10793
10793
  ]);
10794
- const onSwitchWrappedItemIntoView = (0, import_react78.useCallback)(
10794
+ const onSwitchWrappedItemIntoView = (0, import_react79.useCallback)(
10795
10795
  (item) => {
10796
10796
  const index = parseInt(item.index);
10797
10797
  if (!isNaN(index)) {
@@ -10804,7 +10804,7 @@ var useTabstrip = ({
10804
10804
  onFocus: keyboardHook.onFocus,
10805
10805
  onKeyDown: handleKeyDown
10806
10806
  };
10807
- const handleAddTabClick = (0, import_react78.useCallback)(() => {
10807
+ const handleAddTabClick = (0, import_react79.useCallback)(() => {
10808
10808
  onAddTab == null ? void 0 : onAddTab();
10809
10809
  requestAnimationFrame(() => {
10810
10810
  const selectedTabIndex = getIndexOfSelectedTab(containerRef.current);
@@ -10837,8 +10837,8 @@ var useTabstrip = ({
10837
10837
  };
10838
10838
 
10839
10839
  // src/tabstrip/Tabstrip.tsx
10840
- var import_jsx_runtime50 = require("react/jsx-runtime");
10841
- var import_react80 = require("react");
10840
+ var import_jsx_runtime49 = require("react/jsx-runtime");
10841
+ var import_react81 = require("react");
10842
10842
  var classBase17 = "vuuTabstrip";
10843
10843
  var Tabstrip = ({
10844
10844
  activeTabIndex: activeTabIndexProp,
@@ -10863,7 +10863,7 @@ var Tabstrip = ({
10863
10863
  tabClassName,
10864
10864
  ...htmlAttributes
10865
10865
  }) => {
10866
- const rootRef = (0, import_react79.useRef)(null);
10866
+ const rootRef = (0, import_react80.useRef)(null);
10867
10867
  const {
10868
10868
  activeTabIndex,
10869
10869
  focusVisible,
@@ -10891,7 +10891,7 @@ var Tabstrip = ({
10891
10891
  ...styleProp,
10892
10892
  ...containerStyle
10893
10893
  } : void 0;
10894
- const tabs = (0, import_react79.useMemo)(
10894
+ const tabs = (0, import_react80.useMemo)(
10895
10895
  () => (0, import_vuu_layout21.asReactElements)(children).map((child, index) => {
10896
10896
  const {
10897
10897
  id: tabId = `${id}-tab-${index}`,
@@ -10902,7 +10902,7 @@ var Tabstrip = ({
10902
10902
  showMenuButton = showTabMenuButton
10903
10903
  } = child.props;
10904
10904
  const selected = index === activeTabIndex;
10905
- return import_react79.default.cloneElement(child, {
10905
+ return import_react80.default.cloneElement(child, {
10906
10906
  ...tabProps,
10907
10907
  ...tabstripHook.navigationProps,
10908
10908
  className: (0, import_classnames25.default)(className2, tabClassName),
@@ -10920,7 +10920,7 @@ var Tabstrip = ({
10920
10920
  tabIndex: selected ? 0 : -1
10921
10921
  });
10922
10922
  }).concat(
10923
- allowAddTab ? /* @__PURE__ */ (0, import_react80.createElement)(
10923
+ allowAddTab ? /* @__PURE__ */ (0, import_react81.createElement)(
10924
10924
  import_core28.Button,
10925
10925
  {
10926
10926
  ...tabstripHook.navigationProps,
@@ -10952,8 +10952,8 @@ var Tabstrip = ({
10952
10952
  location
10953
10953
  ]
10954
10954
  );
10955
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
10956
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
10955
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
10956
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
10957
10957
  import_vuu_layout21.OverflowContainer,
10958
10958
  {
10959
10959
  ...htmlAttributes,
@@ -10975,13 +10975,13 @@ var Tabstrip = ({
10975
10975
  // src/tabstrip/Tab.tsx
10976
10976
  var import_core29 = require("@salt-ds/core");
10977
10977
  var import_classnames27 = __toESM(require("classnames"));
10978
- var import_react82 = require("react");
10978
+ var import_react83 = require("react");
10979
10979
 
10980
10980
  // src/tabstrip/TabMenu.tsx
10981
10981
  var import_vuu_popups5 = require("@vuu-ui/vuu-popups");
10982
- var import_react81 = require("react");
10982
+ var import_react82 = require("react");
10983
10983
  var import_classnames26 = __toESM(require("classnames"));
10984
- var import_jsx_runtime51 = require("react/jsx-runtime");
10984
+ var import_jsx_runtime50 = require("react/jsx-runtime");
10985
10985
  var classBase18 = "vuuTabMenu";
10986
10986
  var TabMenu = ({
10987
10987
  allowClose,
@@ -10993,7 +10993,7 @@ var TabMenu = ({
10993
10993
  onMenuClose,
10994
10994
  index
10995
10995
  }) => {
10996
- const [menuBuilder, menuOptions] = (0, import_react81.useMemo)(
10996
+ const [menuBuilder, menuOptions] = (0, import_react82.useMemo)(
10997
10997
  () => [
10998
10998
  (_location, options) => {
10999
10999
  const menuItems = [];
@@ -11013,7 +11013,7 @@ var TabMenu = ({
11013
11013
  ],
11014
11014
  [allowClose, allowRename, controlledComponentId, index]
11015
11015
  );
11016
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11016
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11017
11017
  import_vuu_popups5.PopupMenu,
11018
11018
  {
11019
11019
  className: classBase18,
@@ -11028,10 +11028,10 @@ var TabMenu = ({
11028
11028
  };
11029
11029
 
11030
11030
  // src/tabstrip/Tab.tsx
11031
- var import_jsx_runtime52 = require("react/jsx-runtime");
11031
+ var import_jsx_runtime51 = require("react/jsx-runtime");
11032
11032
  var classBase19 = "vuuTab";
11033
11033
  var noop2 = () => void 0;
11034
- var Tab = (0, import_react82.forwardRef)(function Tab2({
11034
+ var Tab = (0, import_react83.forwardRef)(function Tab2({
11035
11035
  ariaControls,
11036
11036
  children,
11037
11037
  className,
@@ -11060,10 +11060,10 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11060
11060
  if (showMenuButton && typeof onMenuAction !== "function") {
11061
11061
  throw Error("Tab onMenuAction must be provided if showMenuButton is set");
11062
11062
  }
11063
- const rootRef = (0, import_react82.useRef)(null);
11064
- const editableRef = (0, import_react82.useRef)(null);
11063
+ const rootRef = (0, import_react83.useRef)(null);
11064
+ const editableRef = (0, import_react83.useRef)(null);
11065
11065
  const setForkRef = (0, import_core29.useForkRef)(ref, rootRef);
11066
- const handleClick = (0, import_react82.useCallback)(
11066
+ const handleClick = (0, import_react83.useCallback)(
11067
11067
  (e) => {
11068
11068
  if (!editing) {
11069
11069
  e.preventDefault();
@@ -11088,7 +11088,7 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11088
11088
  };
11089
11089
  const getLabel = () => {
11090
11090
  if (editable) {
11091
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
11091
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11092
11092
  EditableLabel,
11093
11093
  {
11094
11094
  editing,
@@ -11113,7 +11113,7 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11113
11113
  }
11114
11114
  onFocusProp == null ? void 0 : onFocusProp(evt);
11115
11115
  };
11116
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
11116
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
11117
11117
  "div",
11118
11118
  {
11119
11119
  ...props,
@@ -11134,7 +11134,7 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11134
11134
  role: "tab",
11135
11135
  tabIndex,
11136
11136
  children: [
11137
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: `${classBase19}-main`, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
11137
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `${classBase19}-main`, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11138
11138
  "span",
11139
11139
  {
11140
11140
  className: `${classBase19}-text`,
@@ -11142,7 +11142,7 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11142
11142
  children: children != null ? children : getLabel()
11143
11143
  }
11144
11144
  ) }),
11145
- showMenuButton ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
11145
+ showMenuButton ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11146
11146
  TabMenu,
11147
11147
  {
11148
11148
  allowClose: closeable,
@@ -11163,7 +11163,7 @@ var Tab = (0, import_react82.forwardRef)(function Tab2({
11163
11163
  // src/tree/Tree.tsx
11164
11164
  var import_core32 = require("@salt-ds/core");
11165
11165
  var import_classnames28 = __toESM(require("classnames"));
11166
- var import_react91 = require("react");
11166
+ var import_react92 = require("react");
11167
11167
 
11168
11168
  // src/tree/list-dom-utils.ts
11169
11169
  function listItemIndex2(listItemEl) {
@@ -11181,7 +11181,7 @@ var closestListItem2 = (el) => el.closest("[data-idx],[aria-posinset]");
11181
11181
  var closestListItemIndex2 = (el) => listItemIndex2(closestListItem2(el));
11182
11182
 
11183
11183
  // src/tree/use-items-with-ids.ts
11184
- var import_react83 = require("react");
11184
+ var import_react84 = require("react");
11185
11185
  var PathSeparators2 = /* @__PURE__ */ new Set(["/", "-", "."]);
11186
11186
  var isPathSeparator2 = (char) => PathSeparators2.has(char);
11187
11187
  var isParentPath2 = (parentPath, childPath) => childPath.startsWith(parentPath) && isPathSeparator2(childPath[parentPath.length]);
@@ -11205,7 +11205,7 @@ var useItemsWithIds = (sourceProp, idRoot = "root", {
11205
11205
  return 0;
11206
11206
  }
11207
11207
  };
11208
- const isExpanded2 = (0, import_react83.useCallback)(
11208
+ const isExpanded2 = (0, import_react84.useCallback)(
11209
11209
  (path) => {
11210
11210
  if (Array.isArray(revealSelected)) {
11211
11211
  return revealSelected.some((id) => isParentPath2(path, id));
@@ -11214,7 +11214,7 @@ var useItemsWithIds = (sourceProp, idRoot = "root", {
11214
11214
  },
11215
11215
  [defaultExpanded, revealSelected]
11216
11216
  );
11217
- const normalizeItems = (0, import_react83.useCallback)(
11217
+ const normalizeItems = (0, import_react84.useCallback)(
11218
11218
  (items, indexer, level = 1, path = "", results = [], flattenedSource2 = []) => {
11219
11219
  let count2 = 0;
11220
11220
  items.forEach((item, i, all) => {
@@ -11258,10 +11258,10 @@ var useItemsWithIds = (sourceProp, idRoot = "root", {
11258
11258
  },
11259
11259
  [collapsibleHeaders, idRoot, isExpanded2]
11260
11260
  );
11261
- const [count, sourceWithIds, flattenedSource] = (0, import_react83.useMemo)(() => {
11261
+ const [count, sourceWithIds, flattenedSource] = (0, import_react84.useMemo)(() => {
11262
11262
  return normalizeItems(sourceProp, { index: 0 });
11263
11263
  }, [normalizeItems, sourceProp]);
11264
- const sourceItemById = (0, import_react83.useCallback)(
11264
+ const sourceItemById = (0, import_react84.useCallback)(
11265
11265
  (id, target = sourceWithIds) => {
11266
11266
  const sourceWithId = target.find(
11267
11267
  (i) => {
@@ -11281,7 +11281,7 @@ var useItemsWithIds = (sourceProp, idRoot = "root", {
11281
11281
  };
11282
11282
 
11283
11283
  // src/tree/use-selection.ts
11284
- var import_react84 = require("react");
11284
+ var import_react85 = require("react");
11285
11285
  var import_core30 = require("@salt-ds/core");
11286
11286
  var SINGLE = "single";
11287
11287
  var CHECKBOX2 = "checkbox";
@@ -11303,8 +11303,8 @@ var useSelection3 = ({
11303
11303
  const singleSelect = selection === SINGLE;
11304
11304
  const multiSelect = selection === MULTI || selection.startsWith(CHECKBOX2);
11305
11305
  const extendedSelect = selection === EXTENDED;
11306
- const lastActive = (0, import_react84.useRef)(-1);
11307
- const isSelectionEvent = (0, import_react84.useCallback)(
11306
+ const lastActive = (0, import_react85.useRef)(-1);
11307
+ const isSelectionEvent = (0, import_react85.useCallback)(
11308
11308
  (evt) => selectionKeys.includes(evt.key),
11309
11309
  [selectionKeys]
11310
11310
  );
@@ -11313,7 +11313,7 @@ var useSelection3 = ({
11313
11313
  default: defaultSelected != null ? defaultSelected : [],
11314
11314
  name: "selected"
11315
11315
  });
11316
- const selectItemAtIndex = (0, import_react84.useCallback)(
11316
+ const selectItemAtIndex = (0, import_react85.useCallback)(
11317
11317
  (evt, idx, id, rangeSelect, preserveExistingSelection = false) => {
11318
11318
  const { current: active } = lastActive;
11319
11319
  const isSelected2 = selected == null ? void 0 : selected.includes(id);
@@ -11354,7 +11354,7 @@ var useSelection3 = ({
11354
11354
  singleSelect
11355
11355
  ]
11356
11356
  );
11357
- const handleKeyDown = (0, import_react84.useCallback)(
11357
+ const handleKeyDown = (0, import_react85.useCallback)(
11358
11358
  (evt) => {
11359
11359
  if (~highlightedIdx && isSelectionEvent(evt)) {
11360
11360
  evt.preventDefault();
@@ -11379,7 +11379,7 @@ var useSelection3 = ({
11379
11379
  selectItemAtIndex
11380
11380
  ]
11381
11381
  );
11382
- const handleKeyboardNavigation = (0, import_react84.useCallback)(
11382
+ const handleKeyboardNavigation = (0, import_react85.useCallback)(
11383
11383
  (evt, currentIndex) => {
11384
11384
  if (extendedSelect && evt.shiftKey) {
11385
11385
  const item = treeNodes[currentIndex];
@@ -11392,7 +11392,7 @@ var useSelection3 = ({
11392
11392
  onKeyDown: handleKeyDown,
11393
11393
  onKeyboardNavigation: handleKeyboardNavigation
11394
11394
  };
11395
- const handleClick = (0, import_react84.useCallback)(
11395
+ const handleClick = (0, import_react85.useCallback)(
11396
11396
  (evt) => {
11397
11397
  if (highlightedIdx !== -1) {
11398
11398
  const item = treeNodes[highlightedIdx];
@@ -11426,14 +11426,14 @@ var useSelection3 = ({
11426
11426
  };
11427
11427
 
11428
11428
  // src/tree/use-viewport-tracking.ts
11429
- var import_react85 = require("react");
11429
+ var import_react86 = require("react");
11430
11430
  var HeightOnly3 = ["height", "scrollHeight"];
11431
11431
  var useViewportTracking2 = (root, highlightedIdx, stickyHeaders = false) => {
11432
- const scrollTop = (0, import_react85.useRef)(0);
11433
- const scrolling = (0, import_react85.useRef)(false);
11434
- const rootHeight = (0, import_react85.useRef)(0);
11435
- const rootScrollHeight = (0, import_react85.useRef)(0);
11436
- const scrollIntoView = (0, import_react85.useCallback)(
11432
+ const scrollTop = (0, import_react86.useRef)(0);
11433
+ const scrolling = (0, import_react86.useRef)(false);
11434
+ const rootHeight = (0, import_react86.useRef)(0);
11435
+ const rootScrollHeight = (0, import_react86.useRef)(0);
11436
+ const scrollIntoView = (0, import_react86.useCallback)(
11437
11437
  (el) => {
11438
11438
  const targetEl = el.ariaExpanded ? el.firstChild : el;
11439
11439
  const headerHeight = stickyHeaders ? 30 : 0;
@@ -11454,10 +11454,10 @@ var useViewportTracking2 = (root, highlightedIdx, stickyHeaders = false) => {
11454
11454
  },
11455
11455
  [root, stickyHeaders]
11456
11456
  );
11457
- const scrollHandler = (0, import_react85.useCallback)((e) => {
11457
+ const scrollHandler = (0, import_react86.useCallback)((e) => {
11458
11458
  scrollTop.current = e.target.scrollTop;
11459
11459
  }, []);
11460
- (0, import_react85.useEffect)(() => {
11460
+ (0, import_react86.useEffect)(() => {
11461
11461
  const { current: rootEl } = root;
11462
11462
  if (rootEl) {
11463
11463
  rootEl.addEventListener("scroll", scrollHandler);
@@ -11468,7 +11468,7 @@ var useViewportTracking2 = (root, highlightedIdx, stickyHeaders = false) => {
11468
11468
  }
11469
11469
  };
11470
11470
  }, [root, scrollHandler]);
11471
- (0, import_react85.useLayoutEffect)(() => {
11471
+ (0, import_react86.useLayoutEffect)(() => {
11472
11472
  if (highlightedIdx !== -1 && rootScrollHeight.current > rootHeight.current) {
11473
11473
  if (root.current) {
11474
11474
  const item = root.current.querySelector(`
@@ -11485,9 +11485,9 @@ var useViewportTracking2 = (root, highlightedIdx, stickyHeaders = false) => {
11485
11485
  }
11486
11486
  }
11487
11487
  }, [highlightedIdx, root, scrollIntoView]);
11488
- (0, import_react85.useEffect)(() => {
11488
+ (0, import_react86.useEffect)(() => {
11489
11489
  }, [stickyHeaders]);
11490
- const onResize = (0, import_react85.useCallback)(({ height, scrollHeight }) => {
11490
+ const onResize = (0, import_react86.useCallback)(({ height, scrollHeight }) => {
11491
11491
  rootHeight.current = height;
11492
11492
  rootScrollHeight.current = scrollHeight;
11493
11493
  }, []);
@@ -11496,10 +11496,10 @@ var useViewportTracking2 = (root, highlightedIdx, stickyHeaders = false) => {
11496
11496
  };
11497
11497
 
11498
11498
  // src/tree/useTree.ts
11499
- var import_react90 = require("react");
11499
+ var import_react91 = require("react");
11500
11500
 
11501
11501
  // src/tree/use-keyboard-navigation.ts
11502
- var import_react86 = require("react");
11502
+ var import_react87 = require("react");
11503
11503
 
11504
11504
  // src/tree/hierarchical-data-utils.ts
11505
11505
  var getNodeParentPath = ({ id }) => {
@@ -11649,7 +11649,7 @@ var useKeyboardNavigation3 = ({
11649
11649
  onKeyboardNavigation,
11650
11650
  selected = []
11651
11651
  }) => {
11652
- const { bwd: ArrowBwd, fwd: ArrowFwd } = (0, import_react86.useMemo)(
11652
+ const { bwd: ArrowBwd, fwd: ArrowFwd } = (0, import_react87.useMemo)(
11653
11653
  () => ({
11654
11654
  bwd: ArrowUp3,
11655
11655
  fwd: ArrowDown3
@@ -11661,14 +11661,14 @@ var useKeyboardNavigation3 = ({
11661
11661
  default: defaultHighlightedIdx,
11662
11662
  name: "highlightedIdx"
11663
11663
  });
11664
- const setHighlightedIndex = (0, import_react86.useCallback)(
11664
+ const setHighlightedIndex = (0, import_react87.useCallback)(
11665
11665
  (idx) => {
11666
11666
  onHighlight == null ? void 0 : onHighlight(idx);
11667
11667
  setHighlightedIdx(idx);
11668
11668
  },
11669
11669
  [onHighlight, setHighlightedIdx]
11670
11670
  );
11671
- const nextFocusableItemIdx = (0, import_react86.useCallback)(
11671
+ const nextFocusableItemIdx = (0, import_react87.useCallback)(
11672
11672
  (key = ArrowFwd, idx = key === ArrowFwd ? -1 : treeNodes.length) => {
11673
11673
  let nextIdx = nextItemIdx3(treeNodes.length, key, idx);
11674
11674
  while (nextIdx !== -1 && (key === ArrowFwd && nextIdx < treeNodes.length || key === ArrowBwd && nextIdx > 0) && !isFocusable3(treeNodes[nextIdx])) {
@@ -11678,10 +11678,10 @@ var useKeyboardNavigation3 = ({
11678
11678
  },
11679
11679
  [ArrowBwd, ArrowFwd, treeNodes]
11680
11680
  );
11681
- const keyBoardNavigation = (0, import_react86.useRef)(true);
11682
- const ignoreFocus = (0, import_react86.useRef)(false);
11681
+ const keyBoardNavigation = (0, import_react87.useRef)(true);
11682
+ const ignoreFocus = (0, import_react87.useRef)(false);
11683
11683
  const setIgnoreFocus = (value) => ignoreFocus.current = value;
11684
- const handleFocus = (0, import_react86.useCallback)(() => {
11684
+ const handleFocus = (0, import_react87.useCallback)(() => {
11685
11685
  if (ignoreFocus.current) {
11686
11686
  ignoreFocus.current = false;
11687
11687
  } else if (selected.length > 0) {
@@ -11694,7 +11694,7 @@ var useKeyboardNavigation3 = ({
11694
11694
  setHighlightedIndex(nextFocusableItemIdx());
11695
11695
  }
11696
11696
  }, [treeNodes, nextFocusableItemIdx, selected, setHighlightedIndex]);
11697
- const navigateChildItems = (0, import_react86.useCallback)(
11697
+ const navigateChildItems = (0, import_react87.useCallback)(
11698
11698
  (e) => {
11699
11699
  const nextIdx = nextFocusableItemIdx(e.key, highlightedIdx);
11700
11700
  if (nextIdx !== highlightedIdx) {
@@ -11709,7 +11709,7 @@ var useKeyboardNavigation3 = ({
11709
11709
  setHighlightedIndex
11710
11710
  ]
11711
11711
  );
11712
- const handleKeyDown = (0, import_react86.useCallback)(
11712
+ const handleKeyDown = (0, import_react87.useCallback)(
11713
11713
  (e) => {
11714
11714
  if (treeNodes.length > 0 && isNavigationKey3(e, "vertical")) {
11715
11715
  e.preventDefault();
@@ -11720,7 +11720,7 @@ var useKeyboardNavigation3 = ({
11720
11720
  },
11721
11721
  [treeNodes, navigateChildItems]
11722
11722
  );
11723
- const listProps = (0, import_react86.useMemo)(
11723
+ const listProps = (0, import_react87.useMemo)(
11724
11724
  () => ({
11725
11725
  onBlur: () => {
11726
11726
  setHighlightedIndex(-1);
@@ -11758,7 +11758,7 @@ var useKeyboardNavigation3 = ({
11758
11758
  };
11759
11759
 
11760
11760
  // src/tree/use-hierarchical-data.ts
11761
- var import_react87 = require("react");
11761
+ var import_react88 = require("react");
11762
11762
  var populateIndices = (nodes, results = [], idx = { value: 0 }) => {
11763
11763
  let skipToNextHeader = false;
11764
11764
  for (const node of nodes) {
@@ -11780,10 +11780,10 @@ var populateIndices = (nodes, results = [], idx = { value: 0 }) => {
11780
11780
  return results;
11781
11781
  };
11782
11782
  var useHierarchicalData = (source) => {
11783
- const externalSource = (0, import_react87.useRef)(source);
11784
- const statefulSource = (0, import_react87.useRef)(source);
11785
- const indexPositions = (0, import_react87.useRef)(populateIndices(source));
11786
- const [, forceUpdate] = (0, import_react87.useState)({});
11783
+ const externalSource = (0, import_react88.useRef)(source);
11784
+ const statefulSource = (0, import_react88.useRef)(source);
11785
+ const indexPositions = (0, import_react88.useRef)(populateIndices(source));
11786
+ const [, forceUpdate] = (0, import_react88.useState)({});
11787
11787
  if (source !== externalSource.current) {
11788
11788
  externalSource.current = source;
11789
11789
  statefulSource.current = source;
@@ -11803,7 +11803,7 @@ var useHierarchicalData = (source) => {
11803
11803
  };
11804
11804
 
11805
11805
  // src/tree/use-collapsible-groups.ts
11806
- var import_react88 = require("react");
11806
+ var import_react89 = require("react");
11807
11807
  var NO_HANDLERS4 = {};
11808
11808
  var isToggleElement = (element) => element && element.hasAttribute("aria-expanded");
11809
11809
  var useCollapsibleGroups2 = ({
@@ -11813,23 +11813,23 @@ var useCollapsibleGroups2 = ({
11813
11813
  setVisibleData,
11814
11814
  source
11815
11815
  }) => {
11816
- const fullSource = (0, import_react88.useRef)(source);
11817
- const stateSource = (0, import_react88.useRef)(fullSource.current);
11818
- const setSource = (0, import_react88.useCallback)(
11816
+ const fullSource = (0, import_react89.useRef)(source);
11817
+ const stateSource = (0, import_react89.useRef)(fullSource.current);
11818
+ const setSource = (0, import_react89.useCallback)(
11819
11819
  (value) => {
11820
11820
  setVisibleData(stateSource.current = value);
11821
11821
  },
11822
11822
  [setVisibleData]
11823
11823
  );
11824
- const expandNode = (0, import_react88.useCallback)(
11824
+ const expandNode = (0, import_react89.useCallback)(
11825
11825
  (nodeList, { id }) => replaceNode(nodeList, id, { expanded: true }),
11826
11826
  []
11827
11827
  );
11828
- const collapseNode = (0, import_react88.useCallback)(
11828
+ const collapseNode = (0, import_react89.useCallback)(
11829
11829
  (nodeList, { id }) => replaceNode(nodeList, id, { expanded: false }),
11830
11830
  []
11831
11831
  );
11832
- const handleKeyDown = (0, import_react88.useCallback)(
11832
+ const handleKeyDown = (0, import_react89.useCallback)(
11833
11833
  (e) => {
11834
11834
  if (e.key === ArrowRight3 || e.key === Enter2) {
11835
11835
  const node = treeNodes[highlightedIdx];
@@ -11855,7 +11855,7 @@ var useCollapsibleGroups2 = ({
11855
11855
  const listHandlers = collapsibleHeaders ? {
11856
11856
  onKeyDown: handleKeyDown
11857
11857
  } : NO_HANDLERS4;
11858
- const handleClick = (0, import_react88.useCallback)(
11858
+ const handleClick = (0, import_react89.useCallback)(
11859
11859
  (evt) => {
11860
11860
  const el = closestListItem2(evt.target);
11861
11861
  if (isToggleElement(el)) {
@@ -11881,14 +11881,14 @@ var useCollapsibleGroups2 = ({
11881
11881
  };
11882
11882
 
11883
11883
  // src/tree/use-tree-keyboard-navigation.ts
11884
- var import_react89 = require("react");
11884
+ var import_react90 = require("react");
11885
11885
  var useTreeKeyboardNavigation = ({
11886
11886
  highlightedIdx,
11887
11887
  hiliteItemAtIndex,
11888
11888
  indexPositions,
11889
11889
  source
11890
11890
  }) => {
11891
- const handleKeyDown = (0, import_react89.useCallback)(
11891
+ const handleKeyDown = (0, import_react90.useCallback)(
11892
11892
  (e) => {
11893
11893
  if (e.key === ArrowLeft3) {
11894
11894
  const node = indexPositions[highlightedIdx];
@@ -11925,7 +11925,7 @@ var useTree = ({
11925
11925
  selected: selectedProp,
11926
11926
  selection
11927
11927
  }) => {
11928
- const lastSelection = (0, import_react90.useRef)(EMPTY_ARRAY2);
11928
+ const lastSelection = (0, import_react91.useRef)(EMPTY_ARRAY2);
11929
11929
  const dataHook = useHierarchicalData(sourceWithIds);
11930
11930
  const handleKeyboardNavigation = (evt, nextIdx) => {
11931
11931
  var _a2, _b;
@@ -11958,7 +11958,7 @@ var useTree = ({
11958
11958
  hiliteItemAtIndex: keyboardHook.hiliteItemAtIndex,
11959
11959
  indexPositions: dataHook.indexPositions
11960
11960
  });
11961
- const handleClick = (0, import_react90.useCallback)(
11961
+ const handleClick = (0, import_react91.useCallback)(
11962
11962
  (evt) => {
11963
11963
  var _a2, _b, _c;
11964
11964
  (_a2 = collapsibleHook.listItemHandlers) == null ? void 0 : _a2.onClick(evt);
@@ -11968,7 +11968,7 @@ var useTree = ({
11968
11968
  },
11969
11969
  [collapsibleHook, selectionHook]
11970
11970
  );
11971
- const handleKeyDown = (0, import_react90.useCallback)(
11971
+ const handleKeyDown = (0, import_react91.useCallback)(
11972
11972
  (evt) => {
11973
11973
  var _a2, _b, _c, _d, _e, _f, _g, _h;
11974
11974
  (_b = (_a2 = keyboardHook.listProps).onKeyDown) == null ? void 0 : _b.call(_a2, evt);
@@ -12018,14 +12018,14 @@ var useTree = ({
12018
12018
  };
12019
12019
 
12020
12020
  // src/tree/Tree.tsx
12021
- var import_jsx_runtime53 = require("react/jsx-runtime");
12022
- var import_react92 = require("react");
12021
+ var import_jsx_runtime52 = require("react/jsx-runtime");
12022
+ var import_react93 = require("react");
12023
12023
  var classBase20 = "vuuTree";
12024
12024
  var isExpanded = (node) => node.expanded === true;
12025
12025
  var TreeNode2 = ({ children, idx, ...props }) => {
12026
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { ...props, children });
12026
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { ...props, children });
12027
12027
  };
12028
- var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12028
+ var Tree2 = (0, import_react92.forwardRef)(function Tree3({
12029
12029
  allowDragDrop,
12030
12030
  className,
12031
12031
  defaultSelected,
@@ -12041,7 +12041,7 @@ var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12041
12041
  }, forwardedRef) {
12042
12042
  var _a2;
12043
12043
  const id = (0, import_core32.useIdMemo)(idProp);
12044
- const rootRef = (0, import_react91.useRef)(null);
12044
+ const rootRef = (0, import_react92.useRef)(null);
12045
12045
  const [, sourceWithIds, sourceItemById] = useItemsWithIds(source, id, {
12046
12046
  revealSelected: revealSelected ? (_a2 = selectedProp != null ? selectedProp : defaultSelected) != null ? _a2 : false : void 0
12047
12047
  });
@@ -12084,14 +12084,14 @@ var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12084
12084
  const allowGroupSelect = groupSelectionEnabled2(groupSelection);
12085
12085
  function addLeafNode(list, item, idx) {
12086
12086
  list.push(
12087
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
12087
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
12088
12088
  TreeNode2,
12089
12089
  {
12090
12090
  ...propsCommonToAllListItems,
12091
12091
  ...getListItemProps(item, idx, highlightedIdx, selected, focusVisible),
12092
12092
  children: [
12093
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: `${classBase20}Node-icon`, "data-icon": item.icon }) : null,
12094
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: item.label })
12093
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: `${classBase20}Node-icon`, "data-icon": item.icon }) : null,
12094
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: item.label })
12095
12095
  ]
12096
12096
  }
12097
12097
  )
@@ -12102,7 +12102,7 @@ var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12102
12102
  const { value: i } = idx;
12103
12103
  idx.value += 1;
12104
12104
  list.push(
12105
- /* @__PURE__ */ (0, import_react92.createElement)(
12105
+ /* @__PURE__ */ (0, import_react93.createElement)(
12106
12106
  TreeNode2,
12107
12107
  {
12108
12108
  ...listItemHandlers,
@@ -12119,20 +12119,20 @@ var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12119
12119
  id: id2,
12120
12120
  key: `header-${i}`
12121
12121
  },
12122
- allowGroupSelect ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `${classBase20}Node-label`, children: [
12123
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: `${classBase20}Node-toggle` }),
12122
+ allowGroupSelect ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `${classBase20}Node-label`, children: [
12123
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: `${classBase20}Node-toggle` }),
12124
12124
  title
12125
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `${classBase20}Node-label`, children: [
12126
- child.icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12125
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `${classBase20}Node-label`, children: [
12126
+ child.icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12127
12127
  "span",
12128
12128
  {
12129
12129
  className: `${classBase20}Node-icon`,
12130
12130
  "data-icon": child.icon
12131
12131
  }
12132
12132
  ) : null,
12133
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: title })
12133
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: title })
12134
12134
  ] }),
12135
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ul", { role: "group", children: isExpanded(child) ? renderSourceContent(child.childNodes, idx) : "" })
12135
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { role: "group", children: isExpanded(child) ? renderSourceContent(child.childNodes, idx) : "" })
12136
12136
  )
12137
12137
  );
12138
12138
  }
@@ -12149,7 +12149,7 @@ var Tree2 = (0, import_react91.forwardRef)(function Tree3({
12149
12149
  return listItems;
12150
12150
  }
12151
12151
  }
12152
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12152
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12153
12153
  "ul",
12154
12154
  {
12155
12155
  ...htmlAttributes,
@@ -12181,15 +12181,15 @@ var Tree_default = Tree2;
12181
12181
  var import_vuu_utils24 = require("@vuu-ui/vuu-utils");
12182
12182
  var import_core33 = require("@salt-ds/core");
12183
12183
  var import_classnames29 = __toESM(require("classnames"));
12184
- var import_react93 = require("react");
12184
+ var import_react94 = require("react");
12185
12185
  var import_vuu_popups6 = require("@vuu-ui/vuu-popups");
12186
12186
  var import_vuu_layout22 = require("@vuu-ui/vuu-layout");
12187
- var import_jsx_runtime54 = require("react/jsx-runtime");
12187
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12188
12188
  var classBase21 = "vuuInput";
12189
12189
  var constantInputProps = {
12190
12190
  autoComplete: "off"
12191
12191
  };
12192
- var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12192
+ var VuuInput = (0, import_react94.forwardRef)(function VuuInput2({
12193
12193
  className,
12194
12194
  errorMessage,
12195
12195
  id: idProp,
@@ -12203,7 +12203,7 @@ var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12203
12203
  id,
12204
12204
  tooltipContent: errorMessage
12205
12205
  });
12206
- const commitValue = (0, import_react93.useCallback)(
12206
+ const commitValue = (0, import_react94.useCallback)(
12207
12207
  (evt, value) => {
12208
12208
  if (type === "number") {
12209
12209
  const numericValue = parseFloat(value);
@@ -12220,7 +12220,7 @@ var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12220
12220
  },
12221
12221
  [onCommit, type]
12222
12222
  );
12223
- const handleKeyDown = (0, import_react93.useCallback)(
12223
+ const handleKeyDown = (0, import_react94.useCallback)(
12224
12224
  (evt) => {
12225
12225
  if (evt.key === "Enter") {
12226
12226
  evt.preventDefault();
@@ -12232,14 +12232,14 @@ var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12232
12232
  },
12233
12233
  [commitValue, onKeyDown]
12234
12234
  );
12235
- const handleBlur = (0, import_react93.useCallback)(
12235
+ const handleBlur = (0, import_react94.useCallback)(
12236
12236
  (evt) => {
12237
12237
  const { value } = evt.target;
12238
12238
  commitValue(evt, value);
12239
12239
  },
12240
12240
  [commitValue]
12241
12241
  );
12242
- const endAdornment = errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12242
+ const endAdornment = errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12243
12243
  "span",
12244
12244
  {
12245
12245
  ...anchorProps,
@@ -12247,8 +12247,8 @@ var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12247
12247
  "data-icon": "error"
12248
12248
  }
12249
12249
  ) : void 0;
12250
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
12251
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12250
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
12251
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12252
12252
  import_core33.Input,
12253
12253
  {
12254
12254
  ...props,
@@ -12266,7 +12266,7 @@ var VuuInput = (0, import_react93.forwardRef)(function VuuInput2({
12266
12266
  onKeyDown: handleKeyDown
12267
12267
  }
12268
12268
  ),
12269
- tooltipProps ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_vuu_popups6.Tooltip, { ...tooltipProps, status: "error" }) : null
12269
+ tooltipProps ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_vuu_popups6.Tooltip, { ...tooltipProps, status: "error" }) : null
12270
12270
  ] });
12271
12271
  });
12272
12272
  //# sourceMappingURL=index.js.map