@cutting/react-hook-form-components 0.13.0 → 0.14.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.
Files changed (2) hide show
  1. package/dist/esm/src.js.map +1 -1
  2. package/package.json +12 -12
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../node_modules/.pnpm/@cutting+devtools@file+packages+devtools_@types+node@25.6.0_babel-plugin-macros@3.1.0_e_fc6ae76b17b82bcef3c3b54116013f83/node_modules/@cutting/devtools/react-shim.js", "../../src/components/ContactButtons/index.tsx", "../../src/components/Call/CallPopupButton.tsx", "../../src/components/ContactForm/ContactForm.tsx", "../../src/constants.ts", "../../src/components/FormComponents/FormComponents.tsx", "../../src/components/ContactForm/ContactForm.css.ts", "../../src/components/ContactForm/FormContext.tsx", "../../src/components/Modal/Modal.tsx", "../../src/components/Modal/Modal.css.ts", "../../src/components/ContactButtons/ContactButtons.css.ts"],
3
+ "sources": ["../../../devtools/react-shim.js", "../../src/components/ContactButtons/index.tsx", "../../src/components/Call/CallPopupButton.tsx", "../../src/components/ContactForm/ContactForm.tsx", "../../src/constants.ts", "../../src/components/FormComponents/FormComponents.tsx", "../../src/components/ContactForm/ContactForm.css.ts", "../../src/components/ContactForm/FormContext.tsx", "../../src/components/Modal/Modal.tsx", "../../src/components/Modal/Modal.css.ts", "../../src/components/ContactButtons/ContactButtons.css.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { ButtonStyle } from '@cutting/component-library';\nimport { Box, Button, Text } from '@cutting/component-library';\nimport { useCallback, useState } from 'react';\n\nimport { CallPopupButton } from '../Call/CallPopupButton';\nimport type { CallType } from '../Call/types';\nimport { ContactForm } from '../ContactForm/ContactForm';\nimport { Modal } from '../Modal/Modal';\nimport * as styles from './ContactButtons.css';\n\ntype ContactButtonsProps = {\n callType: CallType;\n rootElementId?: string;\n buttonStyle?: ButtonStyle;\n justify?: 'flexStart' | 'center' | 'flexEnd';\n};\n\nexport function ContactButtons({\n callType,\n rootElementId = 'portal',\n justify = 'flexStart',\n buttonStyle = 'warning',\n}: ContactButtonsProps): JSX.Element {\n const [openModal, setOpenModal] = useState<string | undefined>();\n\n const close = useCallback(() => setOpenModal(undefined), []);\n\n return (\n <Box justifyContent={justify} width=\"full\" display=\"flex\" className={styles.callButton}>\n <CallPopupButton callType={callType} rootElementId={rootElementId} />\n <Button buttonStyle={buttonStyle} onClick={() => setOpenModal('default')}>\n CONTACT BY EMAIL\n </Button>\n <Modal isOpen={openModal === 'default'} onClose={close}>\n <Box>\n <Box display=\"flex\" justifyContent=\"center\" width=\"full\">\n <Text size=\"large\" tone=\"info\">\n CONTACT FORM\n </Text>\n </Box>\n <Box\n className={styles.modal}\n width=\"full\"\n display=\"flex\"\n justifyContent=\"center\"\n alignItems=\"center\"\n flexDirection=\"column\"\n >\n <Box className={styles.content}>\n <ContactForm />\n </Box>\n </Box>\n </Box>\n </Modal>\n </Box>\n );\n}\n", "import { Button } from '@cutting/component-library';\nimport type { ReactNode } from 'react';\nimport { useState } from 'react';\nimport { PopupModal } from 'react-calendly';\n\nimport type { CallProps } from './types';\n\nexport const CallPopupButton = ({\n callType,\n children = 'BOOK A FREE CALL',\n rootElementId = 'portal',\n}: CallProps & { children?: ReactNode }): JSX.Element => {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <PopupModal\n url={`https://calendly.com/dagda1/${callType}`}\n open={open}\n onModalClose={() => setOpen(false)}\n rootElement={(typeof window !== 'undefined' ? document.getElementById(rootElementId) : null) as HTMLElement}\n pageSettings={{\n backgroundColor: 'ffffff',\n hideEventTypeDetails: false,\n hideGdprBanner: false,\n hideLandingPageDetails: true,\n primaryColor: '00a2ff',\n textColor: '4d5055',\n }}\n />\n\n <Button buttonStyle=\"primary\" onClick={() => setOpen(true)}>\n {children}\n </Button>\n </>\n );\n};\n", "import { assert } from '@cutting/assert';\nimport type { ButtonStyle } from '@cutting/component-library';\nimport { Box, Button } from '@cutting/component-library';\nimport { useRef } from 'react';\nimport type { SubmitHandler } from 'react-hook-form';\nimport { useForm } from 'react-hook-form';\n\nimport { CRM } from '../../constants';\nimport { Input, TextArea } from '../FormComponents/FormComponents';\nimport * as styles from './ContactForm.css';\nimport { useFormContext } from './FormContext';\n\ninterface FormValues {\n email: string;\n message: string;\n buttonStyle?: ButtonStyle;\n}\n\nexport function ContactForm({ buttonStyle = 'primary' }: Pick<FormValues, 'buttonStyle'>): JSX.Element {\n const formContext = useFormContext();\n\n const { returnUrl } = formContext;\n const form = useRef<HTMLFormElement>(null);\n const botChecker = useRef<HTMLInputElement>(null);\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<FormValues>({ reValidateMode: 'onBlur' });\n\n const onSubmit: SubmitHandler<FormValues> = (data, event) => {\n assert(!!form?.current, `no active form in submitHandler`);\n assert(!!botChecker.current, `no botChecker`);\n assert(botChecker.current.value === '', `intruderbot alert!!!!`);\n\n const formData = new FormData(event?.target);\n\n fetch(CRM, {\n method: 'POST',\n body: formData,\n headers: {\n Accept: 'application/json',\n },\n })\n .then(() => {\n assert(!!returnUrl, `no returnUrl`);\n\n location.href = returnUrl;\n })\n .catch((error) => {\n console.error(error);\n });\n\n // form.current.action = CRM;\n // form.current.submit();\n };\n\n return (\n <Box width=\"full\" className={styles.container}>\n <form onSubmit={handleSubmit(onSubmit)} method=\"POST\" ref={form} noValidate>\n <fieldset>\n <Input\n maxLength={250}\n name=\"email\"\n rules={{\n required: 'Email is required',\n minLength: { value: 3, message: 'Must have at least 3 characters' },\n maxLength: { value: 250, message: 'maxiumum 250 characters' },\n }}\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n control={control as any}\n label=\"What's your email\"\n required\n errors={errors}\n />\n\n <TextArea\n name=\"message\"\n rules={{\n required: 'Description is required',\n minLength: { value: 3, message: 'Must have at least 3 characters' },\n maxLength: { value: 250, message: 'maxiumum 250 characters' },\n }}\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n control={control as any}\n label=\"How can we help you\"\n rows={3}\n required\n errors={errors}\n />\n <div className={styles.buttonContainer}>\n <Button type=\"submit\" buttonStyle={buttonStyle}>\n Send\n </Button>\n </div>\n </fieldset>\n <input ref={botChecker} type=\"hidden\" name=\"zc_gad\" id=\"zc_gad\" value=\"\"></input>\n </form>\n </Box>\n );\n}\n", "export const CRM = 'https://formspree.io/f/xgegdbnw';\n", "import type { ComponentProps, FormElementFromComponent } from '@cutting/component-library';\nimport { FormInput, FormTextArea } from '@cutting/component-library';\nimport { forwardRef, type FunctionComponent, type ReactNode } from 'react';\nimport type { ControllerProps, FieldErrors } from 'react-hook-form';\nimport { Controller } from 'react-hook-form';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type FormProps<C extends FunctionComponent<any>> = ComponentProps<C> & {\n className?: string;\n errors: FieldErrors;\n} & Omit<ControllerProps, 'render' | 'control'> &\n Required<Pick<ControllerProps, 'control'>>;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function createFormComponent<C extends FunctionComponent<any>>(\n Component: C,\n): ({ ref, ...props }: FormProps<typeof Component>) => JSX.Element {\n const F = forwardRef<\n FormElementFromComponent<typeof Component>,\n FormProps<typeof Component> & Omit<ControllerProps, 'render'>\n >(({ name, rules, control, errors, ...props }, ref) => {\n const error = errors[name];\n\n return (\n <Controller\n name={name}\n rules={rules}\n control={control}\n render={({ field }) => (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n <Component {...(props as any)} {...field} invalid={!!error} errorMessage={error?.message} ref={ref} />\n )}\n />\n );\n });\n\n F.displayName = 'FormComponent';\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return F;\n}\n\n// TODO: remove annotations. Currently weird type error\n// The inferred type of 'Input' cannot be named without a reference to '@cutting/component-library/node_modules/@types/react'.\n// This is likely not portable. A type annotation is necessary.\nexport const Input: (props: FormProps<typeof FormInput>) => ReactNode = createFormComponent(FormInput);\nexport const TextArea: (props: FormProps<typeof FormTextArea>) => ReactNode = createFormComponent(FormTextArea);\n", "import 'src/components/ContactForm/ContactForm.css.ts.vanilla.css?source=Ll8xaTljZDMxIHsKICB0ZXh0LWFsaWduOiBsZWZ0Owp9Ci5fMWk5Y2QzMSBidXR0b24gewogIHdpZHRoOiAxMDAlOwp9Ci5fMWk5Y2QzMiB7CiAgZGlzcGxheTogbm9uZTsKfQpAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA3NDBweCkgewogIC5fMWk5Y2QzMSB7CiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgfQogIC5fMWk5Y2QzMSBidXR0b24gewogICAgd2lkdGg6IGF1dG87CiAgfQp9';\nexport var buttonContainer = '_1i9cd31';\nexport var container = '_1i9cd30';\nexport var hidden = '_1i9cd32';", "import { assert } from '@cutting/assert';\nimport type { ReactNode } from 'react';\nimport { createContext, useContext, useMemo } from 'react';\n\nexport interface ContactFormContext {\n returnUrl?: string;\n}\n\nexport const FormContext = createContext<ContactFormContext | undefined>(undefined);\n\nexport function FormContextProvider({ children, ...props }: ContactFormContext & { children: ReactNode }): JSX.Element {\n const value = useMemo(\n () => ({\n ...props,\n }),\n [props],\n );\n\n return <FormContext.Provider value={value}>{children}</FormContext.Provider>;\n}\n\nexport function useFormContext(): ContactFormContext {\n const context = useContext(FormContext);\n\n assert(!!context, 'useFormContext must be within FormContextProvider');\n\n return context;\n}\n", "import { Box, Button } from '@cutting/component-library';\nimport type { MouseEvent } from 'react';\n\nimport * as styles from './Modal.css';\n\ninterface ModalProps {\n isOpen: boolean;\n onClose: () => void;\n children: React.ReactNode;\n}\n\nexport function Modal({ isOpen, onClose, children }: ModalProps): JSX.Element | null {\n if (!isOpen) {\n return null;\n }\n\n const stopPropagation = (e: MouseEvent) => e.stopPropagation();\n\n return (\n <Box onClick={onClose} className={styles.container} position=\"absolute\" zIndex=\"modal\">\n <Box onClick={stopPropagation} className={styles.body} data-testid=\"modal\">\n <Box display=\"flex\" justifyContent=\"flexEnd\">\n <Button type=\"button\" onClick={onClose} className={styles.closeButton}>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M18 6L6 18\" stroke=\"#ffffff\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <path d=\"M6 6L18 18\" stroke=\"#ffffff\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </Button>\n </Box>\n {children}\n </Box>\n </Box>\n );\n}\n", "import 'src/components/Modal/Modal.css.ts.vanilla.css?source=LnlvcXA2YzAgewogIGJhY2tncm91bmQ6IHJnYmEoMTcsIDI0LCAzOSwgMC41KTsKICBkaXNwbGF5OiBmbGV4OwogIG92ZXJmbG93LXk6IGF1dG87CiAgb3ZlcmZsb3cteDogaGlkZGVuOwogIGp1c3RpZnktY29udGVudDogY2VudGVyOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgaGVpZ2h0OiAxMDAlOwogIHBvc2l0aW9uOiBmaXhlZDsKICB0b3A6IDA7CiAgbGVmdDogMDsKICByaWdodDogMDsKICBib3R0b206IDA7CiAgei1pbmRleDogMzAwOwp9Ci55b3FwNmMxIHsKICBiYWNrZ3JvdW5kOiB2YXIoLS1fMWNud2p6dDExKTsKICBib3gtc2hhZG93OiByZ2JhKDAsIDAsIDAsIDApIDBweCAwcHggMHB4IDBweCwgcmdiYSgwLCAwLCAwLCAwKSAwcHggMHB4IDBweCAwcHgsIHJnYmEoMCwgMCwgMCwgMC4xKSAwcHggMXB4IDNweCAwcHgsIHJnYmEoMCwgMCwgMCwgMC4xKSAwcHggMXB4IDJweCAtMXB4OwogIGJvcmRlci1yYWRpdXM6IHZhcigtLV8xY253anp0NCk7CiAgei1pbmRleDogMzM7CiAgd2lkdGg6IDk1JTsKICBoZWlnaHQ6IGF1dG87CiAgcGFkZGluZzogMXJlbTsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLnlvcXA2YzIgewogIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50OwogIGJvcmRlcjogbm9uZTsKfQoueW9xcDZjMyB7CiAgbWFyZ2luLXRvcDogdmFyKC0tXzFjbndqenQxZCk7Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1pbi13aWR0aDogNzQwcHgpIHsKICAueW9xcDZjMSB7CiAgICB3aWR0aDogNzUlOwogIH0KfQpAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA5OTJweCkgewogIC55b3FwNmMxIHsKICAgIHdpZHRoOiA2MCU7CiAgfQp9CkBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDE1NTBweCkgewogIC55b3FwNmMxIHsKICAgIHdpZHRoOiA1MCU7CiAgfQp9CkBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDE5MDBweCkgewogIC55b3FwNmMxIHsKICAgIHdpZHRoOiA1MCU7CiAgfQp9';\nexport var body = 'yoqp6c1';\nexport var button = 'yoqp6c3';\nexport var closeButton = 'yoqp6c2';\nexport var container = 'yoqp6c0';", "import 'src/components/ContactButtons/ContactButtons.css.ts.vanilla.css?source=LnE4eW5jbDAgYnV0dG9uIHsKICB3aWR0aDogYXV0bzsKfQoucTh5bmNsMCBidXR0b246Zmlyc3QtY2hpbGQgewogIG1hcmdpbi1yaWdodDogdmFyKC0tXzFjbndqenQxZCk7Cn0KLnE4eW5jbDEgewogIHdpZHRoOiAxMDAlOwp9Ci5xOHluY2wyIHsKICB6LWluZGV4OiAzMTA7Cn0KLnE4eW5jbDIgZmllbGRzZXQgewogIGJvcmRlcjogbm9uZTsKfQoucTh5bmNsMyB7CiAgY3Vyc29yOiBwb2ludGVyOwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBkaXNwbGF5OiBibG9jazsKICBwYWRkaW5nOiAycHggNXB4OwogIGxpbmUtaGVpZ2h0OiAyMHB4OwogIHJpZ2h0OiAxMHB4OwogIHRvcDogLTEwcHg7CiAgYm9yZGVyLXJhZGl1czogMThweDsKfQoucTh5bmNsNCB7CiAgd2lkdGg6IDEwMCU7CiAgcGFkZGluZzogMTBweCA1cHg7CiAgbWFyZ2luOiB2YXIoLS1fMWNud2p6dDFkKTsKfQpoLWZ1bGwgewogIGhlaWdodDogMTAwJTsKfQp3LWZ1bGwgewogIHdpZHRoOiAxMDAlOwp9CnJlbGF0aXZlIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLmJnLXdoaXRlIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgbWF4LWhlaWdodDogOTB2aDsKfQouYm9yZGVyLWIgewogIHBhZGRpbmc6IDEuMjVyZW07CiAgZGlzcGxheTogZmxleDsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7Cn0';\nexport var callButton = 'q8yncl0';\nexport var close = 'q8yncl3';\nexport var content = 'q8yncl4';\nexport var modal = 'q8yncl2';\nexport var popup = 'q8yncl1';"],
5
5
  "mappings": "AAAA,UAAYA,MAAW,QCCvB,OAAS,OAAAC,EAAK,UAAAC,GAAQ,QAAAC,OAAY,6BAClC,OAAS,eAAAC,GAAa,YAAAC,OAAgB,QCFtC,OAAS,UAAAC,MAAc,6BAEvB,OAAS,YAAAC,MAAgB,QACzB,OAAS,cAAAC,MAAkB,iBAYvB,mBAAAC,EACE,OAAAC,EADF,QAAAC,MAAA,oBARG,IAAMC,EAAkB,CAAC,CAC9B,SAAAC,EACA,SAAAC,EAAW,mBACX,cAAAC,EAAgB,QAClB,IAAyD,CACvD,GAAM,CAACC,EAAMC,CAAO,EAAIV,EAAS,EAAK,EAEtC,OACEI,EAAAF,EAAA,CACE,UAAAC,EAACF,EAAA,CACC,IAAK,+BAA+BK,CAAQ,GAC5C,KAAMG,EACN,aAAc,IAAMC,EAAQ,EAAK,EACjC,Y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,cAAc,QAAQ,eAAe,QAAQ,EACnGA,EAAC,QAAK,EAAE,aAAa,OAAO,UAAU,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,GACrG,EACF,EACF,EACCK,GACH,EACF,EAlBO,IAoBX,CEhCO,IAAIO,EAAa,UAEjB,IAAIC,EAAU,UACVC,EAAQ,UTyBb,cAAAC,EAKE,QAAAC,MALF,oBAZC,SAASC,GAAe,CAC7B,SAAAC,EACA,cAAAC,EAAgB,SAChB,QAAAC,EAAU,YACV,YAAAC,EAAc,SAChB,EAAqC,CACnC,GAAM,CAACC,EAAWC,CAAY,EAAIC,GAA6B,EAEzDC,EAAQC,GAAY,IAAMH,EAAa,MAAS,EAAG,CAAC,CAAC,EAE3D,OACEP,EAACW,EAAA,CAAI,eAAgBP,EAAS,MAAM,OAAO,QAAQ,OAAO,UAAkBQ,EAC1E,UAAAb,EAACc,EAAA,CAAgB,SAAUX,EAAU,cAAeC,EAAe,EACnEJ,EAACe,GAAA,CAAO,YAAaT,EAAa,QAAS,IAAME,EAAa,SAAS,EAAG,4BAE1E,EACAR,EAACgB,EAAA,CAAM,OAAQT,IAAc,UAAW,QAASG,EAC/C,SAAAT,EAACW,EAAA,CACC,UAAAZ,EAACY,EAAA,CAAI,QAAQ,OAAO,eAAe,SAAS,MAAM,OAChD,SAAAZ,EAACiB,GAAA,CAAK,KAAK,QAAQ,KAAK,OAAO,wBAE/B,EACF,EACAjB,EAACY,EAAA,CACC,UAAkBM,EAClB,MAAM,OACN,QAAQ,OACR,eAAe,SACf,WAAW,SACX,cAAc,SAEd,SAAAlB,EAACY,EAAA,CAAI,UAAkBO,EACrB,SAAAnB,EAACoB,EAAA,EAAY,EACf,EACF,GACF,EACF,GACF,CAEJ",
6
6
  "names": ["React", "Box", "Button", "Text", "useCallback", "useState", "Button", "useState", "PopupModal", "Fragment", "jsx", "jsxs", "CallPopupButton", "callType", "children", "rootElementId", "open", "setOpen", "assert", "Box", "Button", "useRef", "useForm", "CRM", "FormInput", "FormTextArea", "forwardRef", "Controller", "jsx", "createFormComponent", "Component", "F", "name", "rules", "control", "errors", "props", "ref", "error", "field", "Input", "TextArea", "buttonContainer", "container", "assert", "createContext", "useContext", "useMemo", "jsx", "FormContext", "FormContextProvider", "children", "props", "value", "useFormContext", "context", "jsx", "jsxs", "ContactForm", "buttonStyle", "formContext", "useFormContext", "returnUrl", "form", "useRef", "botChecker", "handleSubmit", "errors", "control", "useForm", "Box", "container", "data", "event", "assert", "formData", "CRM", "error", "Input", "TextArea", "buttonContainer", "Button", "Box", "Button", "body", "closeButton", "container", "jsx", "jsxs", "Modal", "isOpen", "onClose", "children", "Box", "container", "e", "body", "Button", "closeButton", "callButton", "content", "modal", "jsx", "jsxs", "ContactButtons", "callType", "rootElementId", "justify", "buttonStyle", "openModal", "setOpenModal", "useState", "close", "useCallback", "Box", "callButton", "CallPopupButton", "Button", "Modal", "Text", "modal", "content", "ContactForm"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cutting/react-hook-form-components",
3
3
  "description": "components for react-hook-form.",
4
- "version": "0.13.0",
4
+ "version": "0.14.0",
5
5
  "type": "module",
6
6
  "module": "dist/esm/src.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -17,24 +17,24 @@
17
17
  ],
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@cutting/assert": "0.6.0",
21
- "@cutting/component-library": "5.50.0",
22
- "@cutting/util": "4.65.0"
20
+ "@cutting/assert": "0.6.1",
21
+ "@cutting/component-library": "5.51.0",
22
+ "@cutting/util": "4.65.1"
23
23
  },
24
24
  "devDependencies": {
25
- "react": "19.2.5",
26
- "react-dom": "19.2.5",
25
+ "react": "19.2.7",
26
+ "react-dom": "19.2.7",
27
27
  "react-syntax-highlighter": "16.1.1",
28
28
  "@testing-library/react": "16.3.2",
29
- "react-hook-form": "7.72.1",
30
- "react-is": "19.2.5",
29
+ "react-hook-form": "7.79.0",
30
+ "react-is": "19.2.7",
31
31
  "react-calendly": "4.4.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "react": "19.2.5",
35
- "react-dom": "19.2.5",
36
- "react-hook-form": "7.72.1",
37
- "react-is": "19.2.5",
34
+ "react": "19.2.7",
35
+ "react-dom": "19.2.7",
36
+ "react-hook-form": "7.79.0",
37
+ "react-is": "19.2.7",
38
38
  "react-calendly": "4.4.0"
39
39
  },
40
40
  "keywords": [