shadcn-zod-formkit 3.9.5 → 3.10.0
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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/shadcn-zod-formkit-3.10.0.tgz +0 -0
- package/package.json +1 -1
- package/dist/shadcn-zod-formkit-3.9.5.tgz +0 -0
package/dist/index.cjs
CHANGED
|
@@ -13871,7 +13871,7 @@ var FieldTimeInput = ({ form, input, isSubmitting }) => {
|
|
|
13871
13871
|
}
|
|
13872
13872
|
)
|
|
13873
13873
|
] }) }) }),
|
|
13874
|
-
/* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13874
|
+
/* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: !input.disableCalendarPop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13875
13875
|
Calendar,
|
|
13876
13876
|
{
|
|
13877
13877
|
mode: "single",
|
|
@@ -14269,6 +14269,7 @@ var CustomInputGroup = ({
|
|
|
14269
14269
|
autoCapitalize = "none"
|
|
14270
14270
|
}) => {
|
|
14271
14271
|
const withKeyboard = input.withKeyboard;
|
|
14272
|
+
const withKeyboardFocus = input.withKeyboardFocus;
|
|
14272
14273
|
const groupConfig = input.inputGroupConfig;
|
|
14273
14274
|
const infoTooltip = input?.infoTooltip;
|
|
14274
14275
|
const autoValidate = groupConfig?.autoValidIcons ?? input.zodType ? true : false;
|
|
@@ -14329,7 +14330,7 @@ var CustomInputGroup = ({
|
|
|
14329
14330
|
isValidField(input, form);
|
|
14330
14331
|
handleOnChage(field?.value, input, field);
|
|
14331
14332
|
}, [field?.value]);
|
|
14332
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14333
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14333
14334
|
input.isFakeInput && /* @__PURE__ */ jsxRuntime.jsx(FakeInput, { input, field, form, setShowPassword, isPasswordField, showPassword }),
|
|
14334
14335
|
/* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn(input.classNameGroupInput ?? "h-10", inputGroupClass), children: [
|
|
14335
14336
|
(iconsLeft.length > 0 || textLeft) && /* @__PURE__ */ jsxRuntime.jsxs(InputGroupAddon, { children: [
|
|
@@ -14344,7 +14345,7 @@ var CustomInputGroup = ({
|
|
|
14344
14345
|
disabled: input.disabled || isSubmitting,
|
|
14345
14346
|
onBlur: field?.onBlur,
|
|
14346
14347
|
onFocus: () => {
|
|
14347
|
-
if (withKeyboard) setCurrentInputField({ input, field });
|
|
14348
|
+
if (withKeyboard || withKeyboardFocus) setCurrentInputField({ input, field });
|
|
14348
14349
|
},
|
|
14349
14350
|
name: field?.name,
|
|
14350
14351
|
ref: field?.ref,
|