@star-insure/sdk 3.2.6 → 3.2.8

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
@@ -2284,7 +2284,9 @@ function SearchBar(_ref) {
2284
2284
  var search = _ref.search,
2285
2285
  active = _ref.active,
2286
2286
  onActive = _ref.onActive,
2287
- placeholder = _ref.placeholder;
2287
+ placeholder = _ref.placeholder,
2288
+ _ref$focusSearchShort = _ref.focusSearchShortcut,
2289
+ focusSearchShortcut = _ref$focusSearchShort === void 0 ? false : _ref$focusSearchShort;
2288
2290
 
2289
2291
  var _React$useState = React__default.useState(''),
2290
2292
  query = _React$useState[0],
@@ -2309,7 +2311,7 @@ function SearchBar(_ref) {
2309
2311
  }
2310
2312
 
2311
2313
  var listener = function listener(e) {
2312
- if (e.key === '/') {
2314
+ if (focusSearchShortcut && e.key === '/') {
2313
2315
  e.preventDefault();
2314
2316
  onActive(true);
2315
2317
  }
@@ -2323,7 +2325,7 @@ function SearchBar(_ref) {
2323
2325
  return function () {
2324
2326
  window.removeEventListener('keydown', listener);
2325
2327
  };
2326
- }, []);
2328
+ }, [focusSearchShortcut]);
2327
2329
  /**
2328
2330
  * Minimise the search bar on click outside if there's no search query
2329
2331
  */
@@ -2785,7 +2787,8 @@ function FilterItem(_ref) {
2785
2787
  }, "Clear"), React__default.createElement(Button, {
2786
2788
  type: "submit",
2787
2789
  status: "primary",
2788
- className: "!min-w-[0px] flex-grow !px-2 text-sm !transition-none"
2790
+ className: "!min-w-[0px] flex-grow !px-2 text-sm !transition-none",
2791
+ small: true
2789
2792
  }, "Apply"))));
2790
2793
  }
2791
2794
 
@@ -2801,7 +2804,9 @@ function PageHeader(_ref) {
2801
2804
  _ref$actions = _ref.actions,
2802
2805
  actions = _ref$actions === void 0 ? [] : _ref$actions,
2803
2806
  _ref$filterOptions = _ref.filterOptions,
2804
- filterOptions = _ref$filterOptions === void 0 ? [] : _ref$filterOptions;
2807
+ filterOptions = _ref$filterOptions === void 0 ? [] : _ref$filterOptions,
2808
+ _ref$focusSearchShort = _ref.focusSearchShortcut,
2809
+ focusSearchShortcut = _ref$focusSearchShort === void 0 ? false : _ref$focusSearchShort;
2805
2810
 
2806
2811
  var _React$useState = React__default.useState(false),
2807
2812
  isSearchActive = _React$useState[0],
@@ -2946,7 +2951,8 @@ function PageHeader(_ref) {
2946
2951
  search: search,
2947
2952
  active: isSearchActive,
2948
2953
  onActive: setSearchActive,
2949
- placeholder: "Search " + title + "..."
2954
+ placeholder: "Search " + title + "...",
2955
+ focusSearchShortcut: focusSearchShortcut
2950
2956
  }), !isSearchActive && React__default.createElement("h1", {
2951
2957
  className: "text-base font-bold"
2952
2958
  }, title)), React__default.createElement("div", {