@star-insure/sdk 3.2.11 → 3.2.13

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.
@@ -2439,9 +2439,12 @@ function Action(_ref) {
2439
2439
 
2440
2440
  var listener = function listener(e) {
2441
2441
  // Check if Ctrl (Windows) or Cmd (Mac) key is pressed
2442
- var isCtrlOrCmdPressed = e.ctrlKey || e.metaKey;
2442
+ var isCtrlOrCmdPressed = e.ctrlKey || e.metaKey; // Check if the focus is on an input element or inside a form
2443
2443
 
2444
- if (e.key === shortcutKey && isCtrlOrCmdPressed) {
2444
+ var isInInput = e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement;
2445
+ var isInForm = e.target instanceof Element && e.target.closest('form');
2446
+
2447
+ if (isCtrlOrCmdPressed && !isInInput && !isInForm && e.key === shortcutKey) {
2445
2448
  e.preventDefault();
2446
2449
  runAction();
2447
2450
  }
@@ -2745,7 +2748,7 @@ function FilterItem(_ref) {
2745
2748
  className: "whitespace-nowrap"
2746
2749
  }, filter.label), React__default.createElement(hi2.HiChevronDown, null))
2747
2750
  }, React__default.createElement("form", {
2748
- className: "mt-2 flex max-h-[350px] min-w-[200px] flex-col gap-2 rounded-md border border-gray-300 bg-white p-4 shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2751
+ className: "mt-2 flex max-h-[350px] min-w-[200px] max-w-[220px] flex-col gap-2 rounded-md border border-gray-300 bg-white p-4 shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2749
2752
  onSubmit: handleApply
2750
2753
  }, React__default.createElement("div", {
2751
2754
  className: "flex flex-col items-start gap-1"
@@ -2761,7 +2764,7 @@ function FilterItem(_ref) {
2761
2764
  checked: selected.includes(option.value.toString()),
2762
2765
  onChange: handleInput
2763
2766
  }), React__default.createElement("label", {
2764
- className: "whitespace-nowrap",
2767
+ className: "leading-tight",
2765
2768
  htmlFor: option.label
2766
2769
  }, option.label));
2767
2770
  })), filter.type === 'greaterThan' && filter.options && React__default.createElement("label", {