@farmzone/fz-react-ui 1.1.4 → 1.1.5

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/index.d.cts CHANGED
@@ -966,6 +966,7 @@ type SelectableOption = {
966
966
  interface BaseOption<P> {
967
967
  label?: string;
968
968
  key: keyof P;
969
+ className?: string;
969
970
  }
970
971
  type InputOption<P> = BaseOption<P> & {
971
972
  type: "input";
package/dist/index.d.ts CHANGED
@@ -966,6 +966,7 @@ type SelectableOption = {
966
966
  interface BaseOption<P> {
967
967
  label?: string;
968
968
  key: keyof P;
969
+ className?: string;
969
970
  }
970
971
  type InputOption<P> = BaseOption<P> & {
971
972
  type: "input";
package/dist/index.js CHANGED
@@ -7890,7 +7890,8 @@ function PageFilter(props) {
7890
7890
  onKeyDown: (e) => {
7891
7891
  if (e.key === "Enter") handleSubmit();
7892
7892
  },
7893
- leftIcon: option.leftIcon !== false ? /* @__PURE__ */ jsx(Search, { size: 16 }) : void 0
7893
+ leftIcon: option.leftIcon !== false ? /* @__PURE__ */ jsx(Search, { size: 16 }) : void 0,
7894
+ className: option.className
7894
7895
  }
7895
7896
  ) }, String(optionKey));
7896
7897
  case "select":
@@ -7902,7 +7903,8 @@ function PageFilter(props) {
7902
7903
  options: option.options,
7903
7904
  placeholder: option.placeholder || "\uC120\uD0DD",
7904
7905
  canReset: option.canReset ?? true,
7905
- containerClassName: option.containerClassName ?? "w-30"
7906
+ containerClassName: option.containerClassName ?? "w-30",
7907
+ className: option.className
7906
7908
  }
7907
7909
  ) }, String(optionKey));
7908
7910
  case "radio":
@@ -7913,7 +7915,8 @@ function PageFilter(props) {
7913
7915
  value: currentValue,
7914
7916
  onChange: handleRadioChange(optionKey, option.autoSubmit),
7915
7917
  options: option.options,
7916
- direction: "horizontal"
7918
+ direction: "horizontal",
7919
+ containerClassName: option.className
7917
7920
  }
7918
7921
  ) }, String(optionKey));
7919
7922
  case "date":
@@ -7923,7 +7926,8 @@ function PageFilter(props) {
7923
7926
  value: currentValue,
7924
7927
  onChange: handleDateChange(optionKey),
7925
7928
  placeholder: option.placeholder,
7926
- onKeyDownEnter: handleSubmit
7929
+ onKeyDownEnter: handleSubmit,
7930
+ className: option.className
7927
7931
  }
7928
7932
  ) }, String(optionKey));
7929
7933
  case "date-range":
@@ -7933,7 +7937,8 @@ function PageFilter(props) {
7933
7937
  startValue: currentValue,
7934
7938
  endValue: String(values[option.endKey] ?? ""),
7935
7939
  onRangeChange: handleRangeChangeCurried(optionKey, option.endKey),
7936
- onKeyDownEnter: handleSubmit
7940
+ onKeyDownEnter: handleSubmit,
7941
+ className: option.className
7937
7942
  }
7938
7943
  ) }, String(optionKey));
7939
7944
  case "checkbox":
@@ -7944,7 +7949,8 @@ function PageFilter(props) {
7944
7949
  name: String(optionKey),
7945
7950
  value: currentValue,
7946
7951
  label: option.label,
7947
- onChange: handleCheckboxChange(optionKey, option.autoSubmit)
7952
+ onChange: handleCheckboxChange(optionKey, option.autoSubmit),
7953
+ className: option.className
7948
7954
  }
7949
7955
  ) }, String(optionKey));
7950
7956
  default: {