shadcn-zod-formkit 3.10.1 → 3.10.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.
package/dist/index.cjs
CHANGED
|
@@ -13005,7 +13005,7 @@ var KeyboardQwerty = ({ onKeyPress, onEnter, keyFontSize = "text-2xl", onDelete,
|
|
|
13005
13005
|
const [shiftMode, setShiftMode] = React3.useState("off");
|
|
13006
13006
|
const [mode, setMode] = React3.useState("letters");
|
|
13007
13007
|
const lastShiftPress = React3.useRef(0);
|
|
13008
|
-
const { currentInputField, write, setIsOpen, backspace, isInputRequired, value } = useKeyboardStore();
|
|
13008
|
+
const { currentInputField, write, setIsOpen, setIsOpenDynamic, backspace, isInputRequired, value } = useKeyboardStore();
|
|
13009
13009
|
const storeOnEnter = useKeyboardStore((state) => state.onEnter);
|
|
13010
13010
|
const isUpper = shiftMode !== "off";
|
|
13011
13011
|
React3.useEffect(() => {
|
|
@@ -13107,8 +13107,12 @@ var KeyboardQwerty = ({ onKeyPress, onEnter, keyFontSize = "text-2xl", onDelete,
|
|
|
13107
13107
|
}, className: "bg-red-200 text-xs", style: { backgroundColor: "#faba005e" } };
|
|
13108
13108
|
const btnEsc = { label: "esc", onClick: () => {
|
|
13109
13109
|
setIsOpen(false);
|
|
13110
|
+
setIsOpenDynamic(false);
|
|
13110
13111
|
}, className: "", style: { backgroundColor: "#ffc0c05e" } };
|
|
13111
|
-
const btnEnter = { label: "Enter", onClick:
|
|
13112
|
+
const btnEnter = { label: "Enter", onClick: () => {
|
|
13113
|
+
onEnter?.() ?? storeOnEnter?.();
|
|
13114
|
+
console.log("btnEnter");
|
|
13115
|
+
}, className: "flex-[2] bg-green-200", style: { backgroundColor: "#008f003d" } };
|
|
13112
13116
|
if (mode === "symbols") {
|
|
13113
13117
|
const keys = [
|
|
13114
13118
|
["esc", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"],
|