Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
{"version":3,"file":"KeycloakTextArea-b4f2aa51.js","sources":["../../src/components/keycloak-text-area/KeycloakTextArea.tsx"],"sourcesContent":["import { TextArea, TextAreaProps } from \"@patternfly/react-core\";\nimport { ComponentProps, forwardRef, HTMLProps } from \"react\";\n\n// PatternFly changes the signature of the 'onChange' handler for textarea elements.\n// This causes issues with React Hook Form as it expects the default signature for a textarea element.\n// So we have to create this wrapper component that takes care of converting these signatures for us.\n\nexport type KeycloakTextAreaProps = Omit<\n ComponentProps,\n \"onChange\"\n> &\n Pick, \"onChange\">;\n\nexport const KeycloakTextArea = forwardRef<\n HTMLTextAreaElement,\n KeycloakTextAreaProps\n>(({ onChange, ...props }, ref) => {\n const onChangeForward: TextAreaProps[\"onChange\"] = (_, event) =>\n onChange?.(event);\n\n return ;\n});\n\n// We need to fake the displayName to match what PatternFly expects.\n// This is because PatternFly uses it to filter children in certain aspects.\n// This is a stupid approach, but it's not like we can change that.\nKeycloakTextArea.displayName = \"TextArea\";\n"],"names":["KeycloakTextArea","forwardRef","onChange","props","ref","onChangeForward","_","event","TextArea"],"mappings":"uDAaa,MAAAA,EAAmBC,aAG9B,CAAC,CAAE,SAAAC,EAAU,GAAGC,GAASC,IAAQ,CACjC,MAAMC,EAA6C,CAACC,EAAGC,IACrDL,IAAWK,CAAK,EAElB,aAAQC,EAAU,CAAA,GAAGL,EAAO,IAAAC,EAAU,SAAUC,CAAiB,CAAA,CACnE,CAAC,EAKDL,EAAiB,YAAc"}