@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.
package/dist/sdk.esm.js CHANGED
@@ -2432,9 +2432,12 @@ function Action(_ref) {
2432
2432
 
2433
2433
  var listener = function listener(e) {
2434
2434
  // Check if Ctrl (Windows) or Cmd (Mac) key is pressed
2435
- var isCtrlOrCmdPressed = e.ctrlKey || e.metaKey;
2435
+ var isCtrlOrCmdPressed = e.ctrlKey || e.metaKey; // Check if the focus is on an input element or inside a form
2436
2436
 
2437
- if (e.key === shortcutKey && isCtrlOrCmdPressed) {
2437
+ var isInInput = e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement;
2438
+ var isInForm = e.target instanceof Element && e.target.closest('form');
2439
+
2440
+ if (isCtrlOrCmdPressed && !isInInput && !isInForm && e.key === shortcutKey) {
2438
2441
  e.preventDefault();
2439
2442
  runAction();
2440
2443
  }
@@ -2738,7 +2741,7 @@ function FilterItem(_ref) {
2738
2741
  className: "whitespace-nowrap"
2739
2742
  }, filter.label), React__default.createElement(HiChevronDown, null))
2740
2743
  }, React__default.createElement("form", {
2741
- 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'),
2744
+ 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'),
2742
2745
  onSubmit: handleApply
2743
2746
  }, React__default.createElement("div", {
2744
2747
  className: "flex flex-col items-start gap-1"
@@ -2754,7 +2757,7 @@ function FilterItem(_ref) {
2754
2757
  checked: selected.includes(option.value.toString()),
2755
2758
  onChange: handleInput
2756
2759
  }), React__default.createElement("label", {
2757
- className: "whitespace-nowrap",
2760
+ className: "leading-tight",
2758
2761
  htmlFor: option.label
2759
2762
  }, option.label));
2760
2763
  })), filter.type === 'greaterThan' && filter.options && React__default.createElement("label", {