@star-insure/sdk 4.3.0 → 4.3.1

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.
@@ -2622,7 +2622,7 @@ function Dropdown(_ref) {
2622
2622
  }
2623
2623
 
2624
2624
  function FilterItem(_ref) {
2625
- var _filter$options, _filter$options2, _filter$options3, _selected$, _selected$2;
2625
+ var _filter$options, _filter$options2, _filter$options3, _selected$, _selected$2, _selected$3;
2626
2626
 
2627
2627
  var filter = _ref.filter;
2628
2628
 
@@ -2760,6 +2760,16 @@ function FilterItem(_ref) {
2760
2760
  }
2761
2761
  }
2762
2762
 
2763
+ function handleText(e) {
2764
+ var value = e.currentTarget.value;
2765
+
2766
+ if (value) {
2767
+ setSelected([value]);
2768
+ } else {
2769
+ setSelected([]);
2770
+ }
2771
+ }
2772
+
2763
2773
  function handleApply(e) {
2764
2774
  e.preventDefault();
2765
2775
  var search = new URLSearchParams(window.location.search); // Reset the page in the query
@@ -2932,6 +2942,15 @@ function FilterItem(_ref) {
2932
2942
  })
2933
2943
  });
2934
2944
  }
2945
+ })), filter.type === 'text' && React__default.createElement("div", {
2946
+ className: 'w-full'
2947
+ }, React__default.createElement("input", {
2948
+ type: "text",
2949
+ name: filter.name,
2950
+ placeholder: filter.label,
2951
+ value: (_selected$3 = selected[0]) != null ? _selected$3 : '',
2952
+ onChange: handleText,
2953
+ className: "!p-2 text-sm w-full"
2935
2954
  }))), React__default.createElement("div", {
2936
2955
  className: "bg-gray-100 border-t border-gray-200 flex items-center gap-2 p-4 bottom-0 sticky"
2937
2956
  }, React__default.createElement(Button, {