@star-insure/sdk 4.1.1 → 4.1.2

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.
@@ -2833,10 +2833,10 @@ function FilterItem(_ref) {
2833
2833
  className: "whitespace-nowrap"
2834
2834
  }, filter.label), React__default.createElement(hi2.HiChevronDown, null))
2835
2835
  }, React__default.createElement("form", {
2836
- className: "mt-2 flex max-h-[350px] min-w-[200px] max-w-[260px] flex-col gap-2 rounded-md border border-gray-300 bg-white p-4 shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2836
+ className: "mt-2 flex max-h-[350px] min-w-[200px] max-w-[260px] flex-col gap-2 rounded-md border border-gray-300 bg-white shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2837
2837
  onSubmit: handleApply
2838
2838
  }, React__default.createElement("div", {
2839
- className: "flex flex-col items-start gap-1"
2839
+ className: "flex flex-col items-start gap-1 p-4"
2840
2840
  }, (!filter.type || filter.type === 'options') && ((_filter$options = filter.options) == null ? void 0 : _filter$options.map(function (option, i) {
2841
2841
  return React__default.createElement("div", {
2842
2842
  className: "checkbox text-sm ",
@@ -2861,7 +2861,7 @@ function FilterItem(_ref) {
2861
2861
  id: filter.label,
2862
2862
  value: selected[0],
2863
2863
  onChange: handleSelect,
2864
- className: "w-full"
2864
+ className: "!p-2 text-sm w-full"
2865
2865
  }, React__default.createElement("option", {
2866
2866
  value: ""
2867
2867
  }, "Select option"), (_filter$options2 = filter.options) == null ? void 0 : _filter$options2.map(function (option) {
@@ -2876,7 +2876,7 @@ function FilterItem(_ref) {
2876
2876
  id: filter.label,
2877
2877
  value: selected[0],
2878
2878
  onChange: handleSelect,
2879
- className: "w-full"
2879
+ className: "!p-2 text-sm w-full"
2880
2880
  }, React__default.createElement("option", {
2881
2881
  value: ""
2882
2882
  }, "Select option"), (_filter$options3 = filter.options) == null ? void 0 : _filter$options3.map(function (option) {
@@ -2885,23 +2885,25 @@ function FilterItem(_ref) {
2885
2885
  value: option.value
2886
2886
  }, option.label);
2887
2887
  }))), filter.type === 'date' && React__default.createElement("div", {
2888
- className: "mb-2 flex flex-col gap-4"
2888
+ className: "mb-2 flex flex-col gap-4 w-full"
2889
2889
  }, React__default.createElement("label", {
2890
- className: "text-xs"
2890
+ className: "text-xs w-full"
2891
2891
  }, "From", React__default.createElement("input", {
2892
2892
  type: "date",
2893
2893
  name: filter.name + "[from]",
2894
2894
  id: filter.name + "[from]",
2895
2895
  onChange: handleDateSelect,
2896
- value: (_selected$ = selected[0]) != null ? _selected$ : ''
2896
+ value: (_selected$ = selected[0]) != null ? _selected$ : '',
2897
+ className: "!p-2 text-sm w-full"
2897
2898
  })), React__default.createElement("label", {
2898
- className: "text-xs"
2899
+ className: "text-xs w-full"
2899
2900
  }, "To", React__default.createElement("input", {
2900
2901
  type: "date",
2901
2902
  name: filter.name + "[to]",
2902
2903
  id: filter.name + "[to]",
2903
2904
  onChange: handleDateSelect,
2904
- value: (_selected$2 = selected[1]) != null ? _selected$2 : ''
2905
+ value: (_selected$2 = selected[1]) != null ? _selected$2 : '',
2906
+ className: "!p-2 text-sm w-full"
2905
2907
  }))), filter.type === 'select' && filter.options && React__default.createElement("div", {
2906
2908
  className: "w-full"
2907
2909
  }, React__default.createElement(Select, {
@@ -2923,7 +2925,7 @@ function FilterItem(_ref) {
2923
2925
  });
2924
2926
  }
2925
2927
  }))), React__default.createElement("div", {
2926
- className: "flex items-center gap-2 py-4 mt-4 -bottom-4 sticky bg-white"
2928
+ className: "bg-gray-100 border-t border-gray-200 flex items-center gap-2 p-4 bottom-0 sticky"
2927
2929
  }, React__default.createElement(Button, {
2928
2930
  type: "button",
2929
2931
  className: "!min-w-[0px] flex-grow !px-2 text-sm !transition-none",