@farmzone/fz-react-ui 1.1.3 → 1.1.4
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.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7865,6 +7865,8 @@ function PageFilter(props) {
|
|
|
7865
7865
|
colGap = 0,
|
|
7866
7866
|
submitButtonText = "\uAC80\uC0C9",
|
|
7867
7867
|
resetButtonText = "\uCD08\uAE30\uD654",
|
|
7868
|
+
showSubmitButton = true,
|
|
7869
|
+
showResetButton = true,
|
|
7868
7870
|
values,
|
|
7869
7871
|
primaryColor
|
|
7870
7872
|
} = props;
|
|
@@ -7972,12 +7974,13 @@ function PageFilter(props) {
|
|
|
7972
7974
|
}
|
|
7973
7975
|
) }, String(optionKey));
|
|
7974
7976
|
case "checkbox":
|
|
7975
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LabeledFilterOption, {
|
|
7977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LabeledFilterOption, { gap: rowGap2, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7976
7978
|
Checkbox,
|
|
7977
7979
|
{
|
|
7978
7980
|
checked: currentValue === "true",
|
|
7979
7981
|
name: String(optionKey),
|
|
7980
7982
|
value: currentValue,
|
|
7983
|
+
label: option.label,
|
|
7981
7984
|
onChange: handleCheckboxChange(optionKey, option.autoSubmit)
|
|
7982
7985
|
}
|
|
7983
7986
|
) }, String(optionKey));
|
|
@@ -7996,9 +7999,9 @@ function PageFilter(props) {
|
|
|
7996
7999
|
const isLastRow = rows.length - 1 === ix;
|
|
7997
8000
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row min-h-11", children: [
|
|
7998
8001
|
row.options.map((option, index) => renderFilterOption(option, rowGap, index)),
|
|
7999
|
-
isLastRow && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-2 flex flex-row items-center gap-2", children: [
|
|
8000
|
-
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "search", onClick: handleSubmit, children: submitButtonText }),
|
|
8001
|
-
onReset && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "reset", onClick: handleReset, children: resetButtonText })
|
|
8002
|
+
isLastRow && (showSubmitButton || showResetButton && onReset) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-2 flex flex-row items-center gap-2", children: [
|
|
8003
|
+
showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "search", onClick: handleSubmit, children: submitButtonText }),
|
|
8004
|
+
onReset && showResetButton && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "reset", onClick: handleReset, children: resetButtonText })
|
|
8002
8005
|
] })
|
|
8003
8006
|
] }, row.options.map((opt) => String(opt.key)).join("_"));
|
|
8004
8007
|
}) })
|