@solace-health/ui 0.10.691 → 0.10.693
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/Animate/style.cjs +2 -2
- package/dist/Animate/style.js +1 -1
- package/dist/Avatar/index.cjs +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/style.cjs +1 -1
- package/dist/Avatar/style.js +1 -1
- package/dist/BackLink/BackLink.cjs +1 -1
- package/dist/BackLink/BackLink.js +1 -1
- package/dist/Card/index.cjs +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.cjs +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/style.cjs +1 -1
- package/dist/Checkbox/style.js +1 -1
- package/dist/DateDropdown/index.cjs +1 -1
- package/dist/DateDropdown/index.js +1 -1
- package/dist/DateSelectCalendar/DateSelectCalendar.cjs +1 -1
- package/dist/DateSelectCalendar/DateSelectCalendar.js +1 -1
- package/dist/Error/index.cjs +1 -1
- package/dist/Error/index.js +1 -1
- package/dist/ExpandableDrawer/index.cjs +1 -1
- package/dist/ExpandableDrawer/index.js +1 -1
- package/dist/File/index.cjs +1 -1
- package/dist/File/index.js +1 -1
- package/dist/Form/AddressSelect/index.cjs +1 -1
- package/dist/Form/AddressSelect/index.js +1 -1
- package/dist/Form/Checkbox/index.cjs +1 -1
- package/dist/Form/Checkbox/index.js +1 -1
- package/dist/Form/Checkbox/styles.cjs +1 -1
- package/dist/Form/Checkbox/styles.js +1 -1
- package/dist/Form/DateDropdown/index.cjs +1 -1
- package/dist/Form/DateDropdown/index.js +1 -1
- package/dist/Form/DateDropdown/styles.cjs +1 -1
- package/dist/Form/DateDropdown/styles.js +1 -1
- package/dist/Form/DateSelect/index.cjs +1 -1
- package/dist/Form/DateSelect/index.js +1 -1
- package/dist/Form/DateTextMaskInput/index.cjs +1 -1
- package/dist/Form/DateTextMaskInput/index.js +1 -1
- package/dist/Form/FileUpload/index.cjs +1 -1
- package/dist/Form/FileUpload/index.js +1 -1
- package/dist/Form/FileUpload/styles.cjs +1 -1
- package/dist/Form/FileUpload/styles.js +1 -1
- package/dist/Form/Keyword/index.cjs +1 -1
- package/dist/Form/Keyword/index.js +1 -1
- package/dist/Form/LocationSelect/index.cjs +1 -1
- package/dist/Form/LocationSelect/index.js +1 -1
- package/dist/Form/LocationSelect/style.cjs +1 -1
- package/dist/Form/LocationSelect/style.js +1 -1
- package/dist/Form/Number/index.cjs +1 -1
- package/dist/Form/Number/index.js +1 -1
- package/dist/Form/OTP/index.cjs +1 -1
- package/dist/Form/OTP/index.js +1 -1
- package/dist/Form/Radio/index.cjs +1 -1
- package/dist/Form/Radio/index.js +1 -1
- package/dist/Form/Radio/styles.cjs +1 -1
- package/dist/Form/Radio/styles.js +1 -1
- package/dist/Form/Select/index.cjs +1 -1
- package/dist/Form/Select/index.js +1 -1
- package/dist/Form/Select/styles.cjs +1 -1
- package/dist/Form/Select/styles.js +1 -1
- package/dist/Form/SelectMenu/index.cjs +1 -1
- package/dist/Form/SelectMenu/index.js +1 -1
- package/dist/Form/SentimentSelector/index.cjs +1 -1
- package/dist/Form/SentimentSelector/index.js +1 -1
- package/dist/Form/Signature/index.cjs +1 -1
- package/dist/Form/Signature/index.js +1 -1
- package/dist/Form/Signature/styles.cjs +1 -1
- package/dist/Form/Signature/styles.js +1 -1
- package/dist/Form/Text/index.cjs +1 -1
- package/dist/Form/Text/index.js +1 -1
- package/dist/Form/TextInput/index.cjs +1 -1
- package/dist/Form/TextInput/index.js +1 -1
- package/dist/Form/TextInput/styles.cjs +1 -1
- package/dist/Form/TextInput/styles.js +1 -1
- package/dist/Form/TimePicker/index.cjs +1 -1
- package/dist/Form/TimePicker/index.js +1 -1
- package/dist/Form/TimeSelect/index.cjs +1 -1
- package/dist/Form/TimeSelect/index.js +1 -1
- package/dist/Form/Tree/index.cjs +1 -1
- package/dist/Form/Tree/index.js +1 -1
- package/dist/Form/index.cjs +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/shared/FormInputLabel.cjs +1 -1
- package/dist/Form/shared/FormInputLabel.d.ts +2 -1
- package/dist/Form/shared/FormInputLabel.js +1 -1
- package/dist/Form/shared/HelpModal.cjs +1 -1
- package/dist/Form/shared/HelpModal.js +1 -1
- package/dist/Form/shared/styles.cjs +1 -1
- package/dist/Form/shared/styles.js +1 -1
- package/dist/IconSelector/IconSelector.cjs +1 -1
- package/dist/IconSelector/IconSelector.js +1 -1
- package/dist/Icons/index.cjs +1 -1
- package/dist/Icons/index.js +1 -1
- package/dist/InfoContainer/index.cjs +1 -1
- package/dist/InfoContainer/index.js +1 -1
- package/dist/InfoContainer/style.cjs +1 -1
- package/dist/InfoContainer/style.js +1 -1
- package/dist/Menu/ExpandIcon.cjs +1 -1
- package/dist/Menu/ExpandIcon.js +1 -1
- package/dist/Menu/index.cjs +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Molecules/ButtonWithIcon/index.cjs +1 -1
- package/dist/Molecules/ButtonWithIcon/index.js +1 -1
- package/dist/Molecules/ButtonWithIcon/style.cjs +1 -1
- package/dist/Molecules/ButtonWithIcon/style.js +1 -1
- package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.cjs +1 -1
- package/dist/Molecules/FilterPopover/FiltersMenu/FiltersMenu.js +1 -1
- package/dist/Molecules/FilterPopover/index.cjs +1 -1
- package/dist/Molecules/FilterPopover/index.js +1 -1
- package/dist/NavigationMenu/ExpandIcon.cjs +1 -1
- package/dist/NavigationMenu/ExpandIcon.js +1 -1
- package/dist/NavigationMenu/index.cjs +1 -1
- package/dist/NavigationMenu/index.js +1 -1
- package/dist/Overlay/OverlayTitle.cjs +1 -1
- package/dist/Overlay/OverlayTitle.js +1 -1
- package/dist/PreviewDrawer/PreviewDrawer.cjs +1 -1
- package/dist/PreviewDrawer/PreviewDrawer.js +1 -1
- package/dist/Radio/index.cjs +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/Radio/style.cjs +1 -1
- package/dist/Radio/style.js +1 -1
- package/dist/Search/index.cjs +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/SelectClient/index.cjs +2 -2
- package/dist/SelectClient/index.js +1 -1
- package/dist/SentimentSelector/index.cjs +1 -1
- package/dist/SentimentSelector/index.js +1 -1
- package/dist/Table/index.cjs +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/TimeSelect/styles.cjs +4 -4
- package/dist/TimeSelect/styles.js +1 -1
- package/dist/Tree/index.cjs +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Typography/Body/index.stories.cjs +1 -1
- package/dist/Typography/Body/index.stories.js +1 -1
- package/dist/Typography/Display/index.stories.cjs +1 -1
- package/dist/Typography/Display/index.stories.js +1 -1
- package/dist/Typography/Header/index.stories.cjs +1 -1
- package/dist/Typography/Header/index.stories.js +1 -1
- package/dist/Typography/Truncated/index.stories.cjs +1 -1
- package/dist/Typography/Truncated/index.stories.js +1 -1
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.js +1 -1
- package/dist/VantaLogo/index.cjs +1 -1
- package/dist/VantaLogo/index.js +1 -1
- package/dist/assets/styles/tailwindTheme.css +37 -49
- package/dist/{chunk-GKNMP3SV.js → chunk-2VKIHA5N.js} +3 -3
- package/dist/{chunk-GKNMP3SV.js.map → chunk-2VKIHA5N.js.map} +1 -1
- package/dist/{chunk-VEWNFQHY.cjs → chunk-37OXIT4U.cjs} +2 -2
- package/dist/{chunk-VEWNFQHY.cjs.map → chunk-37OXIT4U.cjs.map} +1 -1
- package/dist/{chunk-J2LGWFLN.cjs → chunk-3FEVS6IP.cjs} +2 -2
- package/dist/{chunk-J2LGWFLN.cjs.map → chunk-3FEVS6IP.cjs.map} +1 -1
- package/dist/{chunk-QKH3FV44.js → chunk-3FW4ID3V.js} +2 -2
- package/dist/{chunk-QKH3FV44.js.map → chunk-3FW4ID3V.js.map} +1 -1
- package/dist/{chunk-JLFIUQFG.js → chunk-4ZIAJQ5V.js} +2 -2
- package/dist/{chunk-JLFIUQFG.js.map → chunk-4ZIAJQ5V.js.map} +1 -1
- package/dist/chunk-57JIECVV.js +2 -0
- package/dist/{chunk-DMPPXMMA.js.map → chunk-57JIECVV.js.map} +1 -1
- package/dist/{chunk-BINN2QL2.cjs → chunk-5LQRIU43.cjs} +5 -5
- package/dist/{chunk-BINN2QL2.cjs.map → chunk-5LQRIU43.cjs.map} +1 -1
- package/dist/{chunk-SF235PBP.js → chunk-6F5BJV54.js} +3 -3
- package/dist/{chunk-SF235PBP.js.map → chunk-6F5BJV54.js.map} +1 -1
- package/dist/{chunk-O43APBND.js → chunk-7PNVNGQT.js} +2 -2
- package/dist/{chunk-O43APBND.js.map → chunk-7PNVNGQT.js.map} +1 -1
- package/dist/{chunk-26AWTUM2.js → chunk-AJWHFQ6C.js} +3 -3
- package/dist/{chunk-26AWTUM2.js.map → chunk-AJWHFQ6C.js.map} +1 -1
- package/dist/chunk-APGJICXY.cjs +2 -0
- package/dist/{chunk-RHSEUQ24.cjs.map → chunk-APGJICXY.cjs.map} +1 -1
- package/dist/{chunk-HEL72LHE.cjs → chunk-ATYCJSCX.cjs} +5 -5
- package/dist/{chunk-HEL72LHE.cjs.map → chunk-ATYCJSCX.cjs.map} +1 -1
- package/dist/chunk-BDFUOPI3.cjs +2 -0
- package/dist/{chunk-GA6MRNGB.cjs.map → chunk-BDFUOPI3.cjs.map} +1 -1
- package/dist/{chunk-IHOXNPOV.js → chunk-CTZQCOSQ.js} +2 -2
- package/dist/{chunk-IHOXNPOV.js.map → chunk-CTZQCOSQ.js.map} +1 -1
- package/dist/{chunk-LT74ZCYF.js → chunk-DQAJRKC3.js} +3 -3
- package/dist/{chunk-LT74ZCYF.js.map → chunk-DQAJRKC3.js.map} +1 -1
- package/dist/chunk-DUJRADSY.cjs +2 -0
- package/dist/chunk-DUJRADSY.cjs.map +1 -0
- package/dist/{chunk-XRFMBGKD.cjs → chunk-ENE4SZJI.cjs} +4 -4
- package/dist/{chunk-XRFMBGKD.cjs.map → chunk-ENE4SZJI.cjs.map} +1 -1
- package/dist/{chunk-FHYXLHT2.js → chunk-FXO7QP37.js} +2 -2
- package/dist/{chunk-FHYXLHT2.js.map → chunk-FXO7QP37.js.map} +1 -1
- package/dist/chunk-FYRGBLYV.cjs +2 -0
- package/dist/{chunk-VGISWMU7.cjs.map → chunk-FYRGBLYV.cjs.map} +1 -1
- package/dist/{chunk-QAODRAVT.cjs → chunk-G4AZUWCB.cjs} +3 -3
- package/dist/{chunk-QAODRAVT.cjs.map → chunk-G4AZUWCB.cjs.map} +1 -1
- package/dist/{chunk-637KMRX5.cjs → chunk-GQXQCCBW.cjs} +3 -3
- package/dist/{chunk-637KMRX5.cjs.map → chunk-GQXQCCBW.cjs.map} +1 -1
- package/dist/{chunk-QTVAPJXT.js → chunk-HFG5HSK5.js} +3 -3
- package/dist/{chunk-QTVAPJXT.js.map → chunk-HFG5HSK5.js.map} +1 -1
- package/dist/{chunk-WWVOH3Z2.js → chunk-IDX5I3O6.js} +3 -3
- package/dist/{chunk-WWVOH3Z2.js.map → chunk-IDX5I3O6.js.map} +1 -1
- package/dist/{chunk-7IHTM5PN.js → chunk-IQG56RBV.js} +2 -2
- package/dist/{chunk-7IHTM5PN.js.map → chunk-IQG56RBV.js.map} +1 -1
- package/dist/chunk-JDZBE767.cjs +2 -0
- package/dist/{chunk-BJ75ZI5R.cjs.map → chunk-JDZBE767.cjs.map} +1 -1
- package/dist/chunk-KCFFTRUO.cjs +2 -0
- package/dist/chunk-KCFFTRUO.cjs.map +1 -0
- package/dist/{chunk-AEW7XUUN.cjs → chunk-KGWK5KUV.cjs} +2 -2
- package/dist/{chunk-AEW7XUUN.cjs.map → chunk-KGWK5KUV.cjs.map} +1 -1
- package/dist/{chunk-4LUT5BLZ.js → chunk-KKZMU4ZV.js} +3 -3
- package/dist/{chunk-4LUT5BLZ.js.map → chunk-KKZMU4ZV.js.map} +1 -1
- package/dist/{chunk-PRQHLEQJ.js → chunk-L6YTU45G.js} +2 -2
- package/dist/{chunk-PRQHLEQJ.js.map → chunk-L6YTU45G.js.map} +1 -1
- package/dist/{chunk-MC35MNVI.js → chunk-LFKBSGZR.js} +3 -3
- package/dist/{chunk-MC35MNVI.js.map → chunk-LFKBSGZR.js.map} +1 -1
- package/dist/chunk-N53WJOKF.js +2 -0
- package/dist/{chunk-IN7MQOHF.js.map → chunk-N53WJOKF.js.map} +1 -1
- package/dist/{chunk-NQNIXM6Z.cjs → chunk-N7VC2Y6D.cjs} +2 -2
- package/dist/{chunk-NQNIXM6Z.cjs.map → chunk-N7VC2Y6D.cjs.map} +1 -1
- package/dist/{chunk-6RALAWQM.js → chunk-NPJQON2S.js} +3 -3
- package/dist/{chunk-6RALAWQM.js.map → chunk-NPJQON2S.js.map} +1 -1
- package/dist/{chunk-QZUVN273.js → chunk-OHVLZEET.js} +3 -3
- package/dist/{chunk-QZUVN273.js.map → chunk-OHVLZEET.js.map} +1 -1
- package/dist/{chunk-C33TQBWM.cjs → chunk-PAF6DGKU.cjs} +3 -3
- package/dist/{chunk-C33TQBWM.cjs.map → chunk-PAF6DGKU.cjs.map} +1 -1
- package/dist/{chunk-ITSXBXNL.cjs → chunk-PVUXGOAM.cjs} +5 -5
- package/dist/{chunk-ITSXBXNL.cjs.map → chunk-PVUXGOAM.cjs.map} +1 -1
- package/dist/{chunk-NYTBUWDI.cjs → chunk-QAZ3AVOX.cjs} +2 -2
- package/dist/{chunk-NYTBUWDI.cjs.map → chunk-QAZ3AVOX.cjs.map} +1 -1
- package/dist/{chunk-MFPBIU7U.cjs → chunk-QNRAGVW4.cjs} +2 -2
- package/dist/{chunk-MFPBIU7U.cjs.map → chunk-QNRAGVW4.cjs.map} +1 -1
- package/dist/{chunk-TN52VRCL.js → chunk-QTDVX3OI.js} +3 -3
- package/dist/{chunk-TN52VRCL.js.map → chunk-QTDVX3OI.js.map} +1 -1
- package/dist/{chunk-57TQHFOX.js → chunk-RDH67QG4.js} +3 -3
- package/dist/{chunk-57TQHFOX.js.map → chunk-RDH67QG4.js.map} +1 -1
- package/dist/{chunk-KMSGL5NL.cjs → chunk-RX5FLE4X.cjs} +4 -4
- package/dist/{chunk-KMSGL5NL.cjs.map → chunk-RX5FLE4X.cjs.map} +1 -1
- package/dist/{chunk-335TK4HI.js → chunk-S2SJ775W.js} +3 -3
- package/dist/{chunk-335TK4HI.js.map → chunk-S2SJ775W.js.map} +1 -1
- package/dist/{chunk-OLSQSENG.cjs → chunk-SW64GGSG.cjs} +4 -4
- package/dist/{chunk-OLSQSENG.cjs.map → chunk-SW64GGSG.cjs.map} +1 -1
- package/dist/{chunk-3KO6CKKG.cjs → chunk-SYVKXPFB.cjs} +4 -4
- package/dist/{chunk-3KO6CKKG.cjs.map → chunk-SYVKXPFB.cjs.map} +1 -1
- package/dist/{chunk-BACT2F73.cjs → chunk-T5DH262F.cjs} +4 -4
- package/dist/{chunk-BACT2F73.cjs.map → chunk-T5DH262F.cjs.map} +1 -1
- package/dist/{chunk-SWPS26TU.cjs → chunk-TM67JXRP.cjs} +5 -5
- package/dist/{chunk-SWPS26TU.cjs.map → chunk-TM67JXRP.cjs.map} +1 -1
- package/dist/chunk-UWVF3HNT.cjs +212 -0
- package/dist/chunk-UWVF3HNT.cjs.map +1 -0
- package/dist/{chunk-ZF7TZTE3.js → chunk-UZGCNEY6.js} +2 -2
- package/dist/{chunk-ZF7TZTE3.js.map → chunk-UZGCNEY6.js.map} +1 -1
- package/dist/chunk-V47NI2SQ.js +2 -0
- package/dist/chunk-V47NI2SQ.js.map +1 -0
- package/dist/{chunk-7L2VHVRC.cjs → chunk-V6LLSXVL.cjs} +2 -2
- package/dist/{chunk-7L2VHVRC.cjs.map → chunk-V6LLSXVL.cjs.map} +1 -1
- package/dist/{chunk-ATVHJXYR.cjs → chunk-VE32EY4A.cjs} +4 -4
- package/dist/{chunk-ATVHJXYR.cjs.map → chunk-VE32EY4A.cjs.map} +1 -1
- package/dist/{chunk-MCZJEAEQ.js → chunk-VOB3JCXV.js} +2 -2
- package/dist/{chunk-MCZJEAEQ.js.map → chunk-VOB3JCXV.js.map} +1 -1
- package/dist/{chunk-CAHCYVFJ.cjs → chunk-W3H3PNQF.cjs} +4 -4
- package/dist/{chunk-CAHCYVFJ.cjs.map → chunk-W3H3PNQF.cjs.map} +1 -1
- package/dist/{chunk-BMYWJ2AF.js → chunk-WGOGKT3O.js} +2 -2
- package/dist/{chunk-BMYWJ2AF.js.map → chunk-WGOGKT3O.js.map} +1 -1
- package/dist/{chunk-KSV4G4PR.cjs → chunk-WTMLOVWP.cjs} +4 -4
- package/dist/{chunk-KSV4G4PR.cjs.map → chunk-WTMLOVWP.cjs.map} +1 -1
- package/dist/{chunk-KEYF7NZY.js → chunk-Y3V7KEMV.js} +3 -3
- package/dist/{chunk-KEYF7NZY.js.map → chunk-Y3V7KEMV.js.map} +1 -1
- package/dist/chunk-YDBPSVMW.js +212 -0
- package/dist/chunk-YDBPSVMW.js.map +1 -0
- package/dist/{chunk-KB6OHHOK.cjs → chunk-YM3NQKVL.cjs} +2 -2
- package/dist/{chunk-KB6OHHOK.cjs.map → chunk-YM3NQKVL.cjs.map} +1 -1
- package/dist/{chunk-6BQ6VWX4.js → chunk-YNMPPS4U.js} +2 -2
- package/dist/{chunk-6BQ6VWX4.js.map → chunk-YNMPPS4U.js.map} +1 -1
- package/dist/chunk-YPFJCFIY.cjs +2 -0
- package/dist/{chunk-RNEJ3X5S.cjs.map → chunk-YPFJCFIY.cjs.map} +1 -1
- package/dist/{chunk-J3MQKZ4I.js → chunk-YQBQNCNM.js} +3 -3
- package/dist/{chunk-J3MQKZ4I.js.map → chunk-YQBQNCNM.js.map} +1 -1
- package/dist/{chunk-YWSN55IS.cjs → chunk-YXYWNIFR.cjs} +5 -5
- package/dist/{chunk-YWSN55IS.cjs.map → chunk-YXYWNIFR.cjs.map} +1 -1
- package/dist/chunk-Z2I32SQI.js +2 -0
- package/dist/chunk-Z2I32SQI.js.map +1 -0
- package/dist/{chunk-3RP3DX6B.js → chunk-ZI3LFSI3.js} +3 -3
- package/dist/{chunk-3RP3DX6B.js.map → chunk-ZI3LFSI3.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/v2/button/button.cjs +1 -1
- package/dist/v2/button/button.js +1 -1
- package/dist/v2/calendar/calendar.cjs +1 -1
- package/dist/v2/calendar/calendar.js +1 -1
- package/dist/v2/carousel/carousel.cjs +1 -1
- package/dist/v2/carousel/carousel.js +1 -1
- package/dist/v2/checkbox/button-checkbox.cjs +1 -1
- package/dist/v2/checkbox/button-checkbox.js +1 -1
- package/dist/v2/checkbox-group/checkbox-group.cjs +1 -1
- package/dist/v2/checkbox-group/checkbox-group.js +1 -1
- package/dist/v2/combobox/combobox.cjs +1 -1
- package/dist/v2/combobox/combobox.d.ts +2 -1
- package/dist/v2/combobox/combobox.js +1 -1
- package/dist/v2/combobox/combobox.stories.d.ts +1 -0
- package/dist/v2/command/command.cjs +1 -1
- package/dist/v2/command/command.js +1 -1
- package/dist/v2/date-picker/date-picker-input.cjs +1 -1
- package/dist/v2/date-picker/date-picker-input.js +1 -1
- package/dist/v2/date-picker/date-picker.cjs +1 -1
- package/dist/v2/date-picker/date-picker.js +1 -1
- package/dist/v2/dialog/dialog.cjs +1 -1
- package/dist/v2/dialog/dialog.js +1 -1
- package/dist/v2/drawer/drawer.cjs +1 -1
- package/dist/v2/drawer/drawer.js +1 -1
- package/dist/v2/expandable-text/expandable-text.cjs +1 -1
- package/dist/v2/expandable-text/expandable-text.js +1 -1
- package/dist/v2/flex-drawer/flex-drawer.cjs +1 -1
- package/dist/v2/flex-drawer/flex-drawer.js +1 -1
- package/dist/v2/image-preview/image-preview.cjs +1 -1
- package/dist/v2/image-preview/image-preview.js +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/multiselect/components/MultiSelectCommandGroup.cjs +1 -1
- package/dist/v2/multiselect/components/MultiSelectCommandGroup.js +1 -1
- package/dist/v2/multiselect/components/MultiSelectDropdown.cjs +1 -1
- package/dist/v2/multiselect/components/MultiSelectDropdown.js +1 -1
- package/dist/v2/multiselect/components/MultiSelectInput.cjs +1 -1
- package/dist/v2/multiselect/components/MultiSelectInput.js +1 -1
- package/dist/v2/multiselect/multiselect.cjs +1 -1
- package/dist/v2/multiselect/multiselect.js +1 -1
- package/dist/v2/time-select/time-select.cjs +1 -1
- package/dist/v2/time-select/time-select.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ACNWH5TI.cjs +0 -2
- package/dist/chunk-ACNWH5TI.cjs.map +0 -1
- package/dist/chunk-BJ75ZI5R.cjs +0 -2
- package/dist/chunk-DMPPXMMA.js +0 -2
- package/dist/chunk-GA6MRNGB.cjs +0 -2
- package/dist/chunk-GXFQI54D.cjs +0 -2
- package/dist/chunk-GXFQI54D.cjs.map +0 -1
- package/dist/chunk-IN7MQOHF.js +0 -2
- package/dist/chunk-IPOD5S7I.js +0 -212
- package/dist/chunk-IPOD5S7I.js.map +0 -1
- package/dist/chunk-OM3Q2L5Q.js +0 -2
- package/dist/chunk-OM3Q2L5Q.js.map +0 -1
- package/dist/chunk-OVCUECCQ.js +0 -2
- package/dist/chunk-OVCUECCQ.js.map +0 -1
- package/dist/chunk-RHSEUQ24.cjs +0 -2
- package/dist/chunk-RNEJ3X5S.cjs +0 -2
- package/dist/chunk-UAVPAKRR.cjs +0 -212
- package/dist/chunk-UAVPAKRR.cjs.map +0 -1
- package/dist/chunk-VGISWMU7.cjs +0 -2
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import {a as a$B,b as b$e,c as c$9}from'./chunk-UNNV366C.js';import {a as a$D}from'./chunk-EVPDARFL.js';import {a as a$3}from'./chunk-7PNVNGQT.js';import {d,e,a as a$8,b,c}from'./chunk-QTDVX3OI.js';import {a as a$9}from'./chunk-BQ2LVGXV.js';import {b as b$1}from'./chunk-QLWE6EIV.js';import {a as a$I}from'./chunk-DTSPE3KO.js';import {d as d$2,a as a$c,e as e$5,c as c$b,b as b$g}from'./chunk-OHVLZEET.js';import {a as a$f,c as c$3,g as g$2,d as d$5,e as e$1,f as f$2}from'./chunk-IDX5I3O6.js';import {c as c$4,a as a$g,b as b$5}from'./chunk-LTWGGNMG.js';import {a as a$5}from'./chunk-5WBSKSGR.js';import {a as a$d,b as b$f,h,c as c$a,d as d$8,e as e$4,i as i$1,g as g$3,f as f$3,k as k$1}from'./chunk-HFG5HSK5.js';import {a as a$l,b as b$6}from'./chunk-DQAJRKC3.js';import {a as a$K,g as g$4,b as b$h,f as f$5,c as c$c,d as d$9,e as e$6}from'./chunk-Y3V7KEMV.js';import {c as c$2,d as d$3,b as b$4,f as f$1,g as g$1,l,u,i as i$2,j,m,k as k$2,n,r,o,p,s,t,q}from'./chunk-2VKIHA5N.js';import {c as c$1,d as d$1,b as b$2,i,g,f as f$4}from'./chunk-AJWHFQ6C.js';import {a as a$m}from'./chunk-RDH67QG4.js';import {a as a$6}from'./chunk-EDLF2PU7.js';import {a as a$E}from'./chunk-UOJ2V7M2.js';import {b as b$3}from'./chunk-6MYNQMQU.js';import {a as a$h}from'./chunk-3OO5E3ZN.js';import {a as a$i}from'./chunk-ZRCAEEVD.js';import {a as a$4}from'./chunk-W4ZQEZRM.js';import {a as a$H}from'./chunk-SMQ74B53.js';import {a as a$p}from'./chunk-GXOY5PYI.js';import {a as a$e}from'./chunk-Z2I32SQI.js';import {a as a$C}from'./chunk-JAEPS33P.js';import {b as b$8,a as a$w}from'./chunk-VZ6WX7SF.js';import {a as a$u}from'./chunk-NL66A3DQ.js';import'./chunk-HK2PZQ6B.js';import {a as a$7}from'./chunk-GI6J7FDP.js';import {a as a$A,b as b$c,c as c$8}from'./chunk-4VBD2DLV.js';import {a as a$a}from'./chunk-EANBBNS3.js';import {a as a$q}from'./chunk-KJ7WKKNI.js';import {a as a$L}from'./chunk-KU6ZVQZS.js';import {c as c$7,a as a$z,b as b$b}from'./chunk-LJVORPSS.js';import {b as b$a,c as c$6,d as d$7,a as a$y}from'./chunk-HFAAF3KC.js';import {a as a$n}from'./chunk-QRIPM25G.js';import {a as a$2}from'./chunk-N53WJOKF.js';import {a as a$j}from'./chunk-IIGZTG34.js';import {a as a$o}from'./chunk-CXJ3PF2U.js';import {a as a$G}from'./chunk-UUVX2UR3.js';import {a as a$k}from'./chunk-MKK6PHM2.js';import {a as a$s,b as b$7,c as c$5,d as d$6,e as e$2}from'./chunk-A23VMSH6.js';import {a as a$r}from'./chunk-AHBRS7P5.js';import {b as b$d,a as a$M}from'./chunk-UWVJ4UBA.js';import {a as a$v}from'./chunk-FCBKZAPC.js';import {a as a$F}from'./chunk-PV2EFEFY.js';import {a as a$b}from'./chunk-IQG56RBV.js';import {a as a$x,b as b$9}from'./chunk-YTYBBHCS.js';import {f}from'./chunk-S2IU53RU.js';import {a as a$t}from'./chunk-JRU2SV4H.js';import {a as a$1}from'./chunk-57JIECVV.js';import {a}from'./chunk-7QZQXRMR.js';import {d as d$4,e as e$3}from'./chunk-SLCTEGVG.js';import {a as a$J}from'./chunk-EXJ23J6S.js';import Ln from'@emotion/styled';import {Input,DatePicker,Upload,Card,Flex,Menu,AutoComplete,Badge}from'antd';export{ConfigProvider as ga}from'antd';import {useFormContext,useController,get,Controller,useForm}from'react-hook-form';export{useForm as L,useFormContext as M,useFormState as N,useWatch as O,useFieldArray as P,FormProvider as Q,Controller as R,useController as S}from'react-hook-form';import {createPortal}from'react-dom';import {useState,useId,useMemo,useCallback,useRef,useEffect,createElement,cloneElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {animated,useSpring,config}from'@react-spring/web';import Ua,{getGeocode}from'use-places-autocomplete';import {useLoadScript}from'@react-google-maps/api';import it from'dayjs';import {Global,css}from'@emotion/react';import {IMask}from'react-imask';import {useMenuState,useClick,ControlledMenu,MenuButton,MenuItem,FocusableItem,MenuHeader,MenuDivider}from'@szhsin/react-menu';var Gn=Ln.span`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
margin-top: 6px;
|
|
6
|
+
margin-bottom: ${({marginBottom:e})=>e}px;
|
|
7
|
+
`,Hn=({children:e=null,text:t="This field is required",includeIcon:r=true,marginBottom:o=0})=>jsxs(Gn,{marginBottom:o,children:[r&&jsx(a$2.ErrorExclamation,{}),jsx(a$1.Body,{size:"xs",color:"#DA4D54",children:e||t})]}),v=Hn;var Kn=({modalContent:e$1,modalLabel:t=void 0,modalButtonText:r="Go Back"})=>{let[o,n]=useState(false);return jsxs(Fragment,{children:[jsx(d,{onClick:()=>n(true),children:t?jsx(e,{children:`(${t})`}):jsx(a$2.CircleExclamation,{})}),jsx(a$7,{isOpen:o,onClose:()=>n(false),footer:jsx(f.Secondary,{onClick:()=>n(false),children:r}),children:jsx("div",{style:{marginTop:"2rem"},children:e$1})})]})},yo=Kn;var jn=({id:e,label:t=null,isLabelBold:r=false,required:o=false,details:n=null,helpContent:a=void 0,helpLabel:s=void 0,labelSize:l="lg"})=>{if(!t)return null;let i=typeof n=="string"?jsx(a$8,{children:n}):n;return jsxs(b,{children:[jsxs(a$1.Body,{id:e,className:"input-label",bold:r,size:l,children:[t,o&&jsx(c,{}),a&&jsx(yo,{modalContent:a,modalLabel:s})]}),i]})},k=jn;var na=({name:e,label:t=null,details:r=null,formOptions:o={},pattern:n=void 0,format:a=void 0,textArea:s=false,password:l=false,isLabelBold:i=true,helpContent:d=void 0,helpLabel:u=void 0,errorMessage:p="This field is required",disableErrorState:c=false,showErrorMessage:m=true,wrapperStyle:y={},contentStyle:h={},...S})=>{let{control:C}=useFormContext(),x=n?{pattern:a$9(n)}:{},{field:b,fieldState:w}=useController({name:e,control:C,rules:{...x,...o}}),I=c?false:w.error,P=w.error?.message?.toString()||p,f=useId(),E=useMemo(()=>s?jsx(a$a.Area,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):a?jsx(a$a.Mask,{"aria-labelledby":f,name:b.name,onBlur:b.onBlur,format:a,onAccept:B=>b.onChange(B),value:b.value,status:I?"error":"",suffix:I?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...S}):l?jsx(a$a.Password,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}):jsx(a$a.Text,{"aria-labelledby":f,status:I?"error":"",suffix:I?jsx(a$2.ErrorExclamation,{}):jsx("span",{}),...b,...S}),[b,S,s,a,l]);return jsxs("div",{style:{width:"100%",...y},children:[jsx(k,{id:f,label:t,isLabelBold:i,required:!!o.required,details:r,helpLabel:u,helpContent:d}),jsx(b$1,{style:h,children:E}),m&&I&&jsx(v,{text:P,includeIcon:false})]})},ae=na;var ve=({option:e,name:t,formOptions:r={},previewOnly:o=false,errorMessage:n=void 0,inGroup:a=false,onChange:s=()=>null,...l})=>{let{control:i}=useFormContext(),{field:d,fieldState:u}=useController({control:i,name:t,rules:r}),p=!!u.error,c=u.error?.message?.toString()||n,m=useCallback(y=>{let{target:h}=y;if(a){let S=d.value||[];h?.checked?d.onChange([...S,e.value]):d.onChange(S.filter(C=>C!==e.value));}else {let S=h?.checked?e.value:"";d.onChange(S),s(S);}},[d.onChange,d.value,a,e.value]);return jsxs(c$1,{children:[jsxs(Flex,{gap:".5rem",children:[jsx(d$1,{type:"checkbox",checked:a?d.value?.includes(e.value):d.value===e.value,value:e.value,hasError:p,previewOnly:o,disabled:!!l?.disabled||o,onChange:m,...l}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]}),p&&!a&&jsx(v,{text:c,includeIcon:false})]})},da=({name:e,formOptions:t={},previewOnly:r=false,...o})=>{let{control:n}=useFormContext(),{field:{name:a,...s}}=useController({control:n,name:`${e}_other`,rules:t});return jsx(ae,{name:a,placeholder:"Other",previewOnly:r,showErrorMessage:false,...o,...s})},ua=({name:e,option:t=void 0,formOptions:r={},previewOnly:o=false,inputProps:n={}})=>{let{control:a}=useFormContext(),{field:{name:s},fieldState:l}=useController({control:a,name:e,rules:r}),i=!!l.error,d=t?.label||"Other",u=t?.value||"other";return jsxs(f$4,{children:[jsx(ve,{name:s,option:{label:d,value:u},inGroup:true,hasError:i,formOptions:r,previewOnly:o,...n},`${s}-other`),jsx(da,{name:s,previewOnly:o,...n})]})},So=({name:e,label:t=void 0,details:r="",options:o=[],inline:n=false,previewOnly:a=false,other:s={},errorMessage:l=void 0,formOptions:i={},...d})=>{let{control:u}=useFormContext(),{field:p,fieldState:c}=useController({control:u,name:e,rules:i}),m=!!c.error;return jsxs(Fragment,{children:[jsx(k,{label:t,isLabelBold:true,required:!!i.required,details:r}),jsxs(b$2,{inline:n,isColumns:o.length>5,children:[o.map(y=>jsx(ve,{name:p.name,inGroup:true,option:y,hasError:m,formOptions:i,previewOnly:a,...d},`${p.name}-${y.value}`)),s.label&&jsx(ua,{name:p.name,option:s,formOptions:i,previewOnly:a,...d})]}),m&&jsx(v,{text:l,includeIcon:false})]})},ca=({option:e,name:t,previewOnly:r=false,errorMessage:o=void 0,inGroup:n=false,checked:a,field:s,hasError:l=false,...i$1})=>{let{isMobile:d}=b$3(),[u,p]=useState(false);return jsxs(at.Illustration,{selected:a,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),active:a||u&&!d,illustration:e.illustration,children:[jsx(i,{type:"checkbox",value:e.value,disabled:!!i$1?.disabled||r,onChange:c=>{if(!a){s.onChange([...s.value,c.target.value]);return}s.onChange((s.value??[]).filter(m=>m!==c.target.value));},...i$1}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e.label})}),l&&!n&&jsx(v,{text:o,includeIcon:false})]})},Co=({name:e,label:t=void 0,details:r="",options:o=[],previewOnly:n=false,errorMessage:a=void 0,formOptions:s={},...l})=>{let{control:i,formState:{errors:d}}=useFormContext(),u=!!get(d,e);return jsxs(Fragment,{children:[jsx(k,{label:t,isLabelBold:true,required:!!s.required,details:r}),jsx(g,{itemNumber:o.length,children:jsx(Controller,{name:e,control:i,rules:{...s},defaultValue:[],render:({field:p})=>jsx(Fragment,{children:o.map(c=>jsx(ca,{name:e,inGroup:true,field:p,option:c,checked:(p.value??[]).some(m=>m===c.value),hasError:u,previewOnly:n,...l},`${e}-${c.value}`))})})}),u&&jsx(v,{text:a,includeIcon:false})]})},xo=({options:e,name:t,formOptions:r=void 0,disabled:o=false,errorMessage:n=void 0,onChange:a=()=>null})=>{let{control:s,formState:l}=useFormContext(),i=!!l.errors[t];return jsxs(Fragment,{children:[jsx(Controller,{rules:r,control:s,name:t,render:({field:d})=>jsx(a$b,{options:e,disabled:o,...d,onChange:u=>{d.onChange(u),a(u);}})}),i&&jsx(v,{text:n,includeIcon:false})]})};var ya=({name:e,label:t=null,details:r=null,type:o="text",formOptions:n={},previewOnly:a=false,textArea:s=false,marginBottom:l=void 0,isLabelBold:i=true,helpContent:d=void 0,helpLabel:u=void 0,format:p="",errorMessage:c="This field is required",...m})=>{let{control:y,formState:{errors:h}}=useFormContext(),S=!!get(h,e),C=h?.[e]?.message?.toString()||c,x=({field:b})=>s?jsx(e$5,{...b,marginBottom:l,error:S,disabled:a,...m}):p?jsx(c$b,{...b,mask:a$I(p),guide:false,disabled:a,type:o,error:S,...m}):jsx(b$g,{...b,disabled:a,type:o,error:S,...m});return jsxs("div",{style:{width:"100%"},children:[jsx(k,{label:t,isLabelBold:i,required:!!n.required,details:r,helpLabel:u,helpContent:d}),jsxs(d$2,{marginBottom:l,children:[jsx(Controller,{render:x,name:e,rules:n,control:y}),jsx(a$c,{children:S&&jsx(a$2.ErrorExclamation,{})})]}),S&&jsx(v,{text:C,includeIcon:false})]})},Pe=ya;var Sa=({label:e=null,isLabelBold:t=true,name:r,disabled:o=false,defaultValue:n=void 0,formOptions:a={},errorMessage:s="This field is required.",options:l={},style:i={},...d})=>{let{control:u,formState:{errors:p}}=useFormContext(),c=!!get(p,r),m=get(p,r)?.message?.toString()||s;return jsxs("div",{style:i,children:[jsx(k,{label:e,isLabelBold:t,required:!!a.required}),jsx(Controller,{render:({field:y})=>jsx(a$a.Number,{disabled:o,status:c?"error":"",suffix:c?jsx(a$2.ErrorExclamation,{}):null,...d,...y}),name:r,defaultValue:n,rules:a,control:u,...l}),c&&jsx(v,{text:m,includeIcon:false})]})},wo=Sa;var Pa=(r=>(r.MINIMAL="MINIMAL",r.WITH_DATE="WITH_DATE",r))(Pa||{}),wa=({label:e="",name:t,formOptions:r={},description:o="",previewOnly:n=false,errorMessage:a=void 0,signatureType:s=void 0,date:l=void 0,isAdvocate:i=false,showIcon:d=true,formStyle:u="MINIMAL",...p})=>{let{control:c,formState:{errors:m}}=useFormContext(),y=s==="advocate"?"Advocate":"Client",h$1=i&&s==="advocate"||!i&&s==="client",S=({field:b})=>jsxs(Fragment,{children:[jsxs(b$f,{previewOnly:n,children:[d&&jsx(a$G,{}),jsx(h,{...b,...p})]}),jsx("label",{htmlFor:t,children:jsx(a$1.Body,{children:e})})]}),C=l?new Date(l).toLocaleDateString():"",x=({field:b})=>jsx(c$a,{children:jsxs(d$8,{children:[jsxs(e$4,{children:[jsx(i$1,{...b,...p,placeholder:`${y} Signature`,disabled:n||!h$1,hasError:!!m[t]}),jsx(g$3,{children:`${y}`}),m[t]&&jsx(v,{text:a,includeIcon:false})]}),jsxs(f$3,{children:[jsx(k$1,{children:C}),jsx(g$3,{children:"Date"})]})]})});return jsxs(a$d,{previewOnly:n,children:[(e||s)&&jsx(k,{label:jsxs(Fragment,{children:[s&&`${y} `,e]}),required:true,isLabelBold:true}),o,jsx(Controller,{render:u==="MINIMAL"?S:x,name:t,rules:r,control:c})]})},ko=wa;var we=({option:e,name:t,inline:r,previewOnly:o=false,hasError:n=false,formOptions:a={},...s})=>{let{register:l}=useFormContext(),i=useId();return jsxs(c$2,{inline:r,children:[jsx(d$3,{"aria-labelledby":i,type:"radio",...l(t,a),value:e.value,previewOnly:o,disabled:o,hasError:n,...s}),jsx("label",{id:i,htmlFor:t,children:jsx(a$1.Body,{children:e.label})})]})},Ro=({name:e,label:t,details:r="",options:o=[],inline:n=false,allowOther:a=false,previewOnly:s=false,formOptions:l={},errorMessage:i=void 0,showErrorMessage:d=true,...u})=>{let{formState:{errors:p}}=useFormContext(),c=!!get(p,e);return jsxs("div",{children:[jsx(k,{label:t,required:!!l.required,isLabelBold:true,details:r}),jsxs(b$4,{inline:n,isColumns:o.length>5,children:[o.map(m=>jsx(we,{option:m,name:e,inline:n,previewOnly:s,formOptions:l,...u,hasError:c},`${e}-${m.value}`)),a&&jsxs(f$1,{children:[jsx(we,{option:{label:"Other",value:"other"},name:e,inline:n,...u},e),jsx(Pe,{name:`${e}_other`,...u})]})]}),d&&c&&jsx(v,{text:i,includeIcon:false})]})},Ma=({option:e,name:t,formOptions:r})=>{let{register:o,watch:n$1,formState:a}=useFormContext(),s=n$1(t)===e.value;return jsxs(i$2,{selected:s,hasError:!!a.errors[t],disabled:e.disabled||false,children:[jsxs(j,{children:[jsxs(m,{selected:s,children:[e.icon||null,e.label]}),jsx(k$2,{type:"radio",value:e.value,...o(t,r)})]}),e.description&&jsx(n,{selected:s,children:e.description})]})},Eo=({name:e,label:t=null,className:r="",options:o,formOptions:n={},id:a=""})=>jsxs(g$1,{className:r,id:a,children:[t&&jsx(l,{size:"lg",children:t}),jsx("div",{children:o.map(s=>jsx(Ma,{option:s,name:e,formOptions:n},`${s.label}-${s.value}`))})]}),Ta=({option:e,name:t$1,formOptions:r$1,showCaret:o$1=false,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s$1=()=>null})=>{let{register:l,watch:i}=useFormContext(),d=i(t$1)===e.value,[u,p$1]=useState(false),c=a$J[e.icon],m=useSpring(u?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),y=()=>{p$1(true),a(e.value);},h=()=>{p$1(false),s$1(e.value);};return jsxs("div",{style:{position:"relative"},children:[jsx(r,{type:"radio",onClick:S=>n?n(S.currentTarget.value):null,value:e.value,...l(t$1,r$1),onMouseEnter:y,onMouseLeave:h}),jsxs(o,{selected:d,children:[jsxs(Flex,{align:"center",gap:16,children:[jsx(p,{children:jsx(c,{active:d||u})}),jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsx(s,{children:e.label}),e?.description&&jsx(t,{children:e.description})]})]}),o$1&&jsx(q,{style:m,children:jsx(a$2.Caret,{direction:"right",color:d||u?"#285E50":"#7F7F7F"})})]})]})},Oo=({name:e,label:t=null,className:r="",options:o,onClick:n=void 0,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,showCaret:l$1=false,formOptions:i={}})=>jsxs(g$1,{className:r,children:[t&&jsx(l,{size:"lg",children:t}),jsx(u,{children:o.map(d=>jsx(Ta,{option:d,name:e,onClick:n,onMouseEnter:a,onMouseLeave:s,formOptions:i,showCaret:l$1},`${d.label}-${d.value}`))})]}),Do=({options:e,defaultValue:t=void 0,name:r,formOptions:o=void 0,disabled:n=false,errorMessage:a=void 0,showErrorMessage:s=true,onChange:l=()=>null})=>{let{control:i}=useFormContext(),{field:d,fieldState:u}=useController({name:r,control:i,rules:o}),p=!!u.error;return jsxs(Fragment,{children:[jsx(a$e,{options:e,defaultValue:t,disabled:n,onBlur:d.onBlur,name:r,onChange:c=>{d.onChange(c),l(c.target.value);}}),s&&p&&jsx(v,{text:a,includeIcon:false})]})};var Va=({label:e="",name:t,details:r="",placeholder:o="",options:n=[],allowInput:a=false,previewOnly:s=false,isLabelBold:l=true,formOptions:i={},onChange:d=()=>null,containerStyle:u={}})=>{let p=useRef(),c=useFormContext(),{errors:m}=c.formState;c.register(t,i);let y=!!get(m,t),h=get(m,t)?.message?.toString(),[S,C]=useState(false),[x,b]=useState(""),[w,I]=useState(n),P=useSpring(S?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let O=L=>{S&&p.current&&!p.current.contains(L.target)&&C(false);};return document.addEventListener("mousedown",L=>O(L)),()=>{document.removeEventListener("mousedown",L=>O(L));}},[S]);let f=n.find(O=>O.value===c.getValues(t))?.label,E=O=>{b(""),c.setValue(t,O.value),c.trigger(t),d&&d(O),C(false);};useEffect(()=>{if(C(!!x),x){let O=n.filter(L=>String(L.value).toLowerCase().match(x.toLowerCase()));I(O),c.setValue(t,x);}else I(n);},[x,n.length]);let B=O=>{O.code==="Enter"&&O.preventDefault();};return jsxs(a$f,{style:u,children:[jsx(k,{label:e,isLabelBold:l,required:!!i.required,details:r}),jsx(c$3,{onClick:()=>C(!S),previewOnly:s,children:s?jsxs(Fragment,{children:[jsx("i",{style:{color:d$4.grey300},children:"--Select--"}),jsx(a$2.Caret,{direction:"down",color:d$4.grey300})]}):jsxs(Fragment,{children:[f||jsx("i",{children:o}),a&&jsx(g$2,{onKeyDown:B,value:x,onChange:O=>b(O.target.value),type:"text"}),jsx(a$2.Caret,{direction:S?"up":"down"}),jsx(d$5,{style:P,ref:p,children:w.map(O=>{let{label:L}=O,q=O.label===f;return jsxs(e$1,{onClick:()=>E(O),children:[jsx(a$1.Body,{size:"lg",children:L}),jsx(f$2,{isCurrent:q,children:jsx(a$2.Check,{color:"#fff"})})]},O.value)})})]})}),y&&jsx(v,{text:h,includeIcon:false})]})},Lo=Va;var Xa=({label:e="",name:t,details:r="",placeholder:o="",unit:n="",options:a=[],disabled:s=false,mode:l=void 0,previewOnly:i=false,isLabelBold:d=true,formOptions:u={},onChange:p=()=>null,showPreview:c=false,containerStyle:m={},style:y={},allowClear:h=true,loading:S=false,value:C=void 0,onlyUseValue:x=false,errorMessage:b="This field is required",defaultValue:w=void 0,showCaret:I=false,...P})=>{let f=useFormContext();f.register(t,u);let{control:E,formState:{errors:B},getValues:O}=useFormContext(),L=!!get(B,t),q=b||B?.[t]?.message?.toString(),Ae=O()[t],be=useId(),Ve=(H,oe)=>{f.setValue(t,H,{shouldDirty:true,shouldTouch:true}),f.trigger(t),p(H,oe);},[_e,Ne]=useState(false),F;_e?F=jsx(a$2.Caret,{direction:"up"}):F=jsx(a$2.Caret,{direction:"down"});let U=({field:H})=>jsx(a$H,{"aria-labelledby":be,allowClear:h,loading:S,mode:l,showSearch:true,onChange:Ve,placeholder:o,options:a,disabled:s||i,value:x?C:H.value??C,defaultValue:w,style:y,suffixIcon:I?F:void 0,onDropdownVisibleChange:oe=>Ne(oe),...P});return jsxs("div",{style:m,children:[jsx(k,{id:be,label:e,isLabelBold:d,required:!!u.required,details:r}),jsxs(c$4,{children:[jsx(Controller,{control:E,name:t,rules:u,render:U}),n&&jsx(a$1.Body,{size:"lg",children:n})]}),i&&c&&jsx(a$g,{children:a.map(H=>jsx(b$5,{selected:H.value===Ae,children:H.label}))}),L&&jsx(v,{text:q,includeIcon:false})]})},Vo=Xa;var zo={locality:1,administrative_area_level_3:2,sublocality:3,neighborhood:4},Ja=e=>{let t="",r="",o="",n="",a="",s="",l=(p,c)=>{(!t||zo[p]<zo[r])&&(t=c,r=p);};e.address_components.forEach(p=>{p.types.some(c=>{switch(c){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return l(c,p.short_name),true;case "administrative_area_level_1":return o=p.short_name,true;case "street_number":return n=p.short_name,true;case "route":return a=p.short_name,true;case "postal_code":return s=p.short_name,true;default:return false}});});let i=e.geometry.location.lat(),d=e.geometry.location.lng(),u=`${n} ${a}`;return {city:t,state:o,street:u,zip:s,lat:i,long:d}},Ya=({handleSelect:e,option:t,value:r})=>{let{description:o}=t,n=o===r,a=o.replace(", USA","");return jsx(e$6,{isCurrent:n,onClick:()=>e(a),children:jsx(a$1.Body,{size:"lg",children:a})})},Ka=["places"],Qa=({label:e="",details:t="",formOptions:r={},previewOnly:o=false,isLabelBold:n=true,locationType:a="city",streetFieldName:s="street",cityFieldName:l="city",stateFieldName:i="state",zipFieldName:d="zip",cityWithStateFieldName:u="city_with_state",placeholder:p="",containerStyle:c={},errorMessage:m="This field is required",hasError:y=false,style:h={},className:S=""})=>{let C=useRef(),[x,b]=useState(false),[w,I]=useState(false),P=useFormContext(),f;switch(a){case "city":f=l;break;case "full":f=s;break;case "city_with_state":f=u;break;default:return null}let E=useSpring(x?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});useEffect(()=>{let F=U=>{x&&C.current&&!C.current.contains(U.target)&&b(false);};return document.addEventListener("mousedown",U=>F(U)),()=>{document.removeEventListener("mousedown",U=>F(U));}},[x]);let B=P.getValues(f)?`${P.getValues(f)}, ${P.getValues(i)}`:"",{value:O,suggestions:{data:L,loading:q},setValue:Be,clearSuggestions:Ae}=Ua({requestOptions:{...["city","city_with_state"].includes(a)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});useEffect(()=>{if(q){I(q);return}setTimeout(()=>{I(q);},2e3);},[q]);let be=useSpring(w?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),Ve=F=>{Be(F.target.value),P.setValue(i,""),a==="full"&&(P.setValue(d,""),P.setValue(l,"")),P.trigger(f),F.target.value.length>=3&&b(true);},_e=F=>{Be(F,false),Ae(),!(F.length<=2)&&getGeocode({address:F}).then(U=>{let{city:H,state:oe,street:Vn,zip:_n,lat:Nn,long:Wn}=Ja(U[0]),Pt=[f,l,i];P.setValue(l,H),P.setValue(i,oe),a==="full"&&(P.setValue(s,Vn),P.setValue(d,_n),Pt.push(s,d)),a==="city_with_state"&&P.setValue(u,`${H}, ${oe}`),P.setValue("lat",Nn),P.setValue("long",Wn),P.trigger(Pt);}).catch(U=>console.error(`Google Maps API error: ${U}`));},Ne=F=>{F.code==="Enter"&&F.preventDefault();};return jsxs(a$K,{style:h,className:S,children:[jsx(k,{label:e,isLabelBold:n,required:!!r.required,details:t}),o?jsx(g$4,{size:"md",children:B||"N/A"}):jsxs(b$h,{style:c,children:[jsx(f$5,{onKeyDown:Ne,type:"text",placeholder:p,...P.register(f,{...r,onChange:Ve})}),L.length>0&&jsx(c$c,{style:E,ref:C,children:L.map(F=>jsx(Ya,{handleSelect:_e,option:F,value:O},F.description))}),jsx(d$9,{style:be,children:jsx(a$L,{size:"sm"})})]}),y&&jsx(v,{text:m,includeIcon:false})]})},$o=({api_key:e,...t})=>{let{isLoaded:r}=useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Ka});return r?jsx(Qa,{...t}):null};var ss=Ln(Input.Search)`
|
|
8
|
+
.ant-input,
|
|
9
|
+
.ant-input-search-button {
|
|
10
|
+
height: 48px;
|
|
11
|
+
border-top-left-radius: 8px;
|
|
12
|
+
border-bottom-left-radius: 8px;
|
|
13
|
+
border: 1px solid #000;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ant-input-search-button {
|
|
17
|
+
border-left: none;
|
|
18
|
+
}
|
|
19
|
+
`,qo={locality:1,administrative_area_level_3:2,sublocality:3,neighborhood:4},is=e=>{let t="",r="",o="",n="",a="",s="",l=(p,c)=>{(!t||qo[p]<qo[r])&&(t=c,r=p);};e.address_components.forEach(p=>{p.types.some(c=>{switch(c){case "locality":case "sublocality":case "neighborhood":case "administrative_area_level_3":return l(c,p.short_name),true;case "administrative_area_level_1":return o=p.short_name,true;case "street_number":return n=p.short_name,true;case "route":return a=p.short_name,true;case "postal_code":return s=p.short_name,true;default:return false}});});let i=e.geometry.location.lat(),d=e.geometry.location.lng(),u=`${n} ${a}`;return {city:t,state:o,street:u,zip:s,lat:i,long:d}},ls=["places"],ps=({label:e="",formOptions:t={},isLabelBold:r=true,addressType:o="city",streetFieldName:n="street",cityFieldName:a="city",stateFieldName:s="state",zipFieldName:l="zip",cityWithStateFieldName:i="city_with_state",latFieldName:d="lat",longFieldName:u="long",fullAddressFieldName:p="fullAddress",placeholder:c=""})=>{let m=useFormContext(),{suggestions:{data:y=[]},setValue:h,clearSuggestions:S}=Ua({requestOptions:{...["city","city_with_state"].includes(o)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}}),C;switch(o){case "city":C=a;break;case "full":C=p;break;case "city_with_state":C=i;break;default:return null}let x=w=>{h(w),!(w.length<=3)&&(m.setValue(s,""),o==="full"&&(m.setValue(l,""),m.setValue(a,"")),m.trigger(C));},b=w=>{typeof w=="string"&&(h(w,false),S(),!(w.length<=2)&&getGeocode({address:w}).then(I=>{let{city:P,state:f,street:E,zip:B,lat:O,long:L}=is(I[0]),q=[C,a,s];m.setValue(a,P),m.setValue(s,f),o==="full"&&(m.setValue(n,E),m.setValue(l,B),q.push(n,l)),o==="city_with_state"&&m.setValue(i,`${P}, ${f}`),m.setValue(d,O),m.setValue(u,L),m.setValue(p,w),m.trigger(q);}).catch(I=>console.error(`Google Maps API error: ${I}`)));};return jsxs(a$n,{vertical:true,style:{width:"100%"},children:[jsx(k,{label:e,isLabelBold:r,required:!!t.required}),jsx(Controller,{render:({field:w})=>{let{ref:I,...P}=w;return jsx(AutoComplete,{onSearch:x,options:y.map(f=>({label:f.description,value:f.description})),onSelect:b,...P,children:jsx(ss,{size:"large",placeholder:c})})},name:C,rules:{...t},control:m.control}),m.formState.errors[C]&&jsx(v,{text:m.formState.errors[C]?.message,includeIcon:false})]})},ds=({api_key:e,...t})=>{let{isLoaded:r}=useLoadScript({googleMapsApiKey:e||process.env.GOOGLE_MAPS_API_KEY||"",libraries:ls});return r?jsx(ps,{...t}):null},Uo=ds;var ys=a.div`
|
|
20
|
+
position: relative;
|
|
21
|
+
margin-bottom: 24px;
|
|
22
|
+
`,bs=({label:e="",formOptions:t={},defaultValue:r=null,name:o,...n})=>{let{control:a,formState:{errors:s}}=useFormContext(),l=get(s,o),i=l?l.message?.toString():"This field is required";return jsxs(ys,{children:[jsx(k,{isLabelBold:true,label:e,required:!!t.required}),jsx(Controller,{render:({field:d})=>jsx(a$h,{...n,...d,status:l?"error":""}),name:o,defaultValue:r?it(r):null,rules:t,control:a,...t}),l&&jsx(v,{includeIcon:false,children:i})]})},Go=bs;var Cs=({label:e="",name:t,options:r=void 0,...o})=>{let{setValue:n,watch:a$1}=useFormContext(),s=a$1(t),l=a.div`
|
|
23
|
+
position: relative;
|
|
24
|
+
margin-bottom: 24px;
|
|
25
|
+
`,i=d=>{n(t,d);};return jsxs(l,{children:[jsx(k,{label:e,required:!!r?.required}),jsx(a$i,{name:t,...o,onChange:i,value:s})]})},Jo=Cs;var Is=a.div`
|
|
26
|
+
position: relative;
|
|
27
|
+
margin-bottom: 24px;
|
|
28
|
+
z-index: 20;
|
|
29
|
+
`,ks=a(a$1.Body)`
|
|
30
|
+
margin-bottom: 5px;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
`,Rs=a(a$1.Body)`
|
|
33
|
+
margin-bottom: 12px;
|
|
34
|
+
`,Es=a.div`
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: 15px 23px;
|
|
37
|
+
margin-top: 8px;
|
|
38
|
+
margin-bottom: 8px;
|
|
39
|
+
border: 1px solid #5a5a5a;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
min-height: 50px;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
background: #fff;
|
|
45
|
+
|
|
46
|
+
> svg {
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: 25px;
|
|
49
|
+
top: 17px;
|
|
50
|
+
}
|
|
51
|
+
`,Os=a(animated.div)`
|
|
52
|
+
position: absolute;
|
|
53
|
+
background: #fff;
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
border: 1px solid #5a5a5a;
|
|
56
|
+
top: 60px;
|
|
57
|
+
left: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
max-height: 180px;
|
|
60
|
+
overflow: scroll;
|
|
61
|
+
`,Ko=a.div`
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
padding: 13px 24px;
|
|
64
|
+
position: relative;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
div {
|
|
68
|
+
background: var(--green-600, #3f937c);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`,Ds=a.input`
|
|
72
|
+
outline: none;
|
|
73
|
+
border: none;
|
|
74
|
+
background: none;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
padding-left: 10px;
|
|
83
|
+
`,Ms=a.div`
|
|
84
|
+
height: 32px;
|
|
85
|
+
border-radius: 32px;
|
|
86
|
+
margin-right: 10px;
|
|
87
|
+
color: white;
|
|
88
|
+
background: var(--green-900);
|
|
89
|
+
padding: 2px 12px;
|
|
90
|
+
line-height: 16px;
|
|
91
|
+
align-items: center;
|
|
92
|
+
display: flex;
|
|
93
|
+
margin-top: 8px;
|
|
94
|
+
`,Ts=a.div`
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
width: 24px;
|
|
99
|
+
height: 24px;
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 12px;
|
|
102
|
+
right: 17px;
|
|
103
|
+
transition: background 0.25s;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
border: 0.766898px solid;
|
|
106
|
+
border-color: ${e=>e.isCurrent?"#285E50 !important":"var(--green-600, #3f937c)"};
|
|
107
|
+
background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
|
|
108
|
+
`,Fs=({label:e="",name:t,details:r="",options:o=[],previewOnly:n=false})=>{let a=useRef(),s=useFormContext(),[l,i]=useState(false),[d,u]=useState(""),[p,c]=useState(s.getValues(t)||[]),m=useRef({search:d,keywords:p});useEffect(()=>{m.current={search:d,keywords:p};},[d,p]);let[y,h]=useState(o),S=useSpring(l?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),C=o.find(f=>f===s.getValues(t)),x=f=>{let E=[...m.current.keywords,f];u(""),c(E),s.setValue(t,E),i(false);},b=f=>f?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():"",w=()=>{if(!m.current.search)return;let f=b(m.current.search);x(f);};useEffect(()=>{let f=E=>{l&&a.current&&!a.current.contains(E.target)&&(w(),i(false));};return document.addEventListener("mousedown",E=>f(E)),()=>{document.removeEventListener("mousedown",E=>f(E));}},[l]);let I=f=>{f.code==="Enter"&&(w(),f.preventDefault());},P=f=>{let E=p.filter(B=>B!==f);c(E),u(""),s.setValue(t,E);};return useEffect(()=>{if(i(!!d),d){let f=o.filter(E=>E.toLowerCase().match(d.toLowerCase()));h(f);}else h(o);},[d]),useEffect(()=>{let f=o.filter(E=>!p.includes(E));h(f);},[p]),jsxs(Is,{children:[jsx(ks,{size:"lg",children:e}),r&&jsx(Rs,{children:r}),!n&&jsxs(Es,{onClick:()=>i(!l),children:[jsx(a$j,{}),C,jsx(Ds,{onKeyDown:I,value:d,onChange:f=>u(f.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxs(Os,{style:S,ref:a,children:[y.map(f=>{let E=f===C;return jsxs(Ko,{onClick:()=>x(f),children:[jsx(a$1.Body,{size:"lg",children:f}),jsx(Ts,{isCurrent:E,children:jsx(a$2.Check,{color:"#fff"})})]},f)}),!y.length&&jsx(Ko,{onClick:()=>w(),children:jsx(a$1.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[n&&p.length===0&&"N/A",p.map(f=>jsxs(Ms,{onClick:()=>P(f),children:[f,!n&&jsx(a$k,{})]},f))]})]})},Qo=Fs;var zs=Ln(DatePicker)`
|
|
109
|
+
padding: 12px 24px;
|
|
110
|
+
width: 100%;
|
|
111
|
+
max-width: 25rem;
|
|
112
|
+
`,Xs=({label:e=null,isLabelBold:t=true,name:r,details:o=void 0,disabled:n=false,defaultValue:a=void 0,startRange:s=void 0,endRange:l=void 0,formOptions:i={},errorMessage:d="This field is required.",style:u={},format:p="MM/DD/YYYY",...c})=>{let{control:m,formState:{errors:y}}=useFormContext(),h=!!get(y,r),S=y?.[r]?.message?.toString()||d,C=b=>b?!!(s&&b.isBefore(it(s).endOf("day"))||l&&b.isAfter(it(l).endOf("day"))):false,{field:x}=useController({name:r,control:m,defaultValue:a,rules:i});return jsxs("div",{style:u,children:[jsx(k,{label:e,details:o,isLabelBold:t,required:!!i.required}),jsx(zs,{format:p,disabled:n,disabledDate:C,status:h?"error":"",...c,onChange:(b,w)=>{x.onChange(w);},value:x.value?it(x.value):null,popupClassName:"date-select-pop-up-container"}),jsx(Global,{styles:css`
|
|
113
|
+
.date-select-pop-up-container {
|
|
114
|
+
z-index: var(--z-tooltip);
|
|
115
|
+
&&&&& .ant-picker-cell-selected .ant-picker-cell-inner {
|
|
116
|
+
background: #285e50;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
color: #fff;
|
|
119
|
+
|
|
120
|
+
::before {
|
|
121
|
+
border-color: transparent;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&&&&& .ant-picker-cell-today .ant-picker-cell-inner {
|
|
126
|
+
background: white;
|
|
127
|
+
color: #000;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
border: 1px solid #285e50;
|
|
130
|
+
|
|
131
|
+
::before {
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
border: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&&&&& .ant-picker-cell-disabled {
|
|
138
|
+
.ant-picker-cell-inner {
|
|
139
|
+
color: #d9d9d9;
|
|
140
|
+
}
|
|
141
|
+
::before {
|
|
142
|
+
background: transparent;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&&&&& .ant-picker-cell-hover:hover .ant-picker-cell-inner {
|
|
147
|
+
background: #e4f2ed;
|
|
148
|
+
color: #000;
|
|
149
|
+
border-radius: 50%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ant-picker-body {
|
|
153
|
+
th {
|
|
154
|
+
font-size: 0.75rem;
|
|
155
|
+
text-transform: uppercase;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ant-picker-cell {
|
|
160
|
+
color: white;
|
|
161
|
+
font-size: 0.75rem;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ant-picker-cell:not(.ant-picker-cell-in-view) {
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ant-picker-cell-in-view {
|
|
171
|
+
color: black;
|
|
172
|
+
pointer-events: auto;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`}),h&&jsx(v,{text:S,includeIcon:false})]})},Zo=Xs;var {Dragger:Gs}=Upload,Hs=({label:e="",name:t,disabled:r=false,description:o="",isLabelBold:n=true,formOptions:a={},onChange:s,onRemove:l,onDownload:i,onDrop:d,defaultValue:u=void 0,containerStyle:p={},errorMessage:c=void 0,action:m="",headers:y={},uploadData:h={},defaultFileList:S=[],...C})=>{useFormContext().register(t,a);let{getFieldState:b,formState:{errors:w}}=useFormContext(),I=!!get(w,t);return jsxs("div",{style:p,children:[jsx(k,{label:e,isLabelBold:n,required:!!a.required,details:o}),jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsx(ae,{formOptions:{required:b(t).invalid},name:`${t}_validation`,type:"text"})}),jsxs(Gs,{name:"file",multiple:true,onChange:s,onDrop:d,onRemove:l,onDownload:i,action:m,disabled:r,headers:y,defaultFileList:S,showUploadList:{showDownloadIcon:true},data:h,...C,capture:void 0,children:[jsx(a$2.Attachment,{}),jsxs(a$l,{children:[jsx(b$6,{children:jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsx(b$6,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),u?jsxs(Fragment,{children:["Current Value: ",u]}):null,I&&jsx(v,{text:c,includeIcon:false})]})},en=Hs;var Ks=({label:e="",details:t=void 0,isLabelBold:r=true,name:o,formOptions:n={},containerStyle:a=void 0})=>{let{formState:{errors:s,defaultValues:l},register:i,setValue:d}=useFormContext();i(o,n);let u=!!get(s,o),p=get(s,o)?.message?.toString();return jsxs(a$m,{style:a,children:[jsx(lt,{label:e,isLabelBold:r,details:t,required:!!n.required,onChange:c=>d(o,c),hasError:u,defaultValue:l?.[o]}),u&&jsx(v,{text:p})]})},on=Ks;var ei={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function Me({iconProps:e={},containerStyles:t={},value:r=void 0,onChange:o=void 0}){let[n,a]=useState(r),s=i=>a(i),l=i=>n===i;return useEffect(()=>{o&&o(n);},[n]),jsx(a$n,{gap:".5rem",style:{...t},children:Object.values(a$o).map(i=>{let{iconFill:d,background:u}=ei[i],p=l(i);return jsx(a$p,{backgroundColor:n?u:"#ffffff",onClick:()=>s(i),isActive:p,children:jsx(a$2.Sentiment,{...e,variant:i,color:p?d:"#7F7F7F"})})})})}function dt({name:e,...t}){let{control:r}=useFormContext();return jsx(Controller,{control:r,name:e,render:({field:{value:o,onChange:n}})=>jsx(Me,{...t,onChange:n,value:o})})}var an=e=>{let t=e.split("/"),r=+t[0],o=+t[1],n=+t[2];return new Date(n,r-1,o)},sn=e=>{if(!e)return "";let t=e.getDate(),r=e.getMonth()+1,o=e.getFullYear(),n=t<10?`0${t}`:t.toString();return [r<10?`0${r}`:r.toString(),n,o].join("/")},ii=({label:e=void 0,isLabelBold:t=true,name:r,details:o=void 0,formOptions:n={},style:a={},errorMessage:s="This field is required.",minDate:l=new Date(1915,0,1),maxDate:i=new Date,showErrorMessage:d=true,...u})=>{let{formState:{errors:p},setValue:c,register:m,watch:y}=useFormContext();m(r,n);let h=y(r),[S,C]=useState("");useEffect(()=>{if(!h)return;let I=typeof h=="string"?new Date(h):h,P=sn(I);C(P);},[h]);let x=(I,P)=>{C(I),P.unmaskedValue.length!==8&&c(r,"");},b=!!get(p,r),w=p?.[r]?.message?.toString()||s;return jsxs("div",{style:a,children:[jsx(k,{label:e,details:o,isLabelBold:t,required:!!n.required}),jsx(a$q,{value:S,mask:Date,blocks:{d:{mask:IMask.MaskedRange,from:1,to:31,autofix:"pad"},m:{mask:IMask.MaskedRange,from:1,to:12,autofix:"pad"},Y:{mask:IMask.MaskedRange,from:1915,to:i.getFullYear(),autofix:false}},placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:sn,parse:an,onAccept:x,onComplete:I=>c(r,an(I)),min:l,max:i,lazy:true,overwrite:false,...u}),d&&b&&jsx(v,{text:w,includeIcon:false})]})},ln=ii;var ui=({name:e,label:t=void 0,details:r=void 0,isLabelBold:o=false,formOptions:n={},defaultValue:a="",wrapperStyle:s={},className:l=void 0,onChange:i=void 0,showErrorMessage:d=true,...u})=>{let{control:p}=useFormContext(),{field:c,fieldState:m}=useController({name:e,control:p,rules:n,defaultValue:a}),y=x=>{c.onChange(x),i&&i(x);},h=d?!!m.error:false,S=m.error?.message?.toString(),C=h?"error":"";return jsxs("div",{style:{width:"100%",...s},className:l,children:[t&&jsx(k,{label:t,isLabelBold:o,required:!!n.required,details:r}),jsx(a$a.OTP,{...c,...u,onChange:y,status:C}),d&&h&&jsx(v,{text:S,includeIcon:false})]})},pn=ui;var te={AddressSelect:Uo,ButtonRadioGroup:Oo,Container:a$6,Checkbox:ve,CheckboxGroup:So,CheckboxCardGroup:Co,InputLabel:k,DateSelect:Zo,DateTextMaskInput:ln,TextInput:Pe,Text:ae,TimePicker:Go,TimeSelect:Jo,Radio:we,RadioGroup:Ro,CheckMarkRadio:Do,WelcomeCheckbox:xo,CardRadioGroup:Eo,Number:wo,Select:Lo,SelectMenu:Vo,SentimentSelector:dt,Signature:ko,Submit:a$5,LocationSelect:$o,Keyword:Qo,Toggle:a$4,FileUpload:en,Tree:a$3,DateDropdown:on,OTP:pn};var Ii=()=>Array.from({length:12},(t,r)=>({label:new Date(r,r).toLocaleString("en-US",{month:"long"}),value:r+1})),ki=(e,t)=>{let r=e||1,o=t||2024,n=new Date(o,r,0).getDate();return Array.from({length:n},(s,l)=>({label:l+1,value:l+1}))},Ri=()=>Array.from({length:110},(t,r)=>{let o=new Date().getFullYear()-r;return {label:o,value:o}}),Ei=({label:e="",details:t=void 0,isLabelBold:r=false,required:o=false,onChange:n=()=>null,defaultValue:a=null,hasError:s=false})=>{let l=useRef(null),[i,d]=useState(false),u=useForm({defaultValues:{month:null,day:null,year:null}}),{reset:p}=u;useEffect(()=>{if(!a)return;let y=new Date(a);p({month:y.getMonth()+1,day:y.getDate(),year:y.getFullYear()});},[a]);let c=u.watch(),m=ki(c?.month,c?.year);return useEffect(()=>{let y=m.find(h=>h.value===c.day);if(c.month&&c.day&&c.year&&y){let h=new Date(c.year,c.month-1,c.day);n(h);}else n(null);},[c.month,c.day,c.year]),useEffect(()=>{l.current&&d(true);},[l,i]),jsxs(Fragment,{children:[jsx("div",{ref:l}),i&&createPortal(jsxs(te.Container,{formMethods:u,onSubmit:()=>null,children:[jsx(te.InputLabel,{label:e,isLabelBold:r,required:!!o,details:t}),jsxs(a$r,{gap:8,hasError:s,children:[jsx(te.SelectMenu,{name:"month",options:Ii(),placeholder:"Month",containerStyle:{width:"100%"},sort:false}),jsx(te.SelectMenu,{name:"day",options:m,placeholder:"Day",containerStyle:{width:"100%"},sort:false}),jsx(te.SelectMenu,{name:"year",options:Ri(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),l.current||document.body)]})},lt=Ei;var Ti=({width:e=25,style:t={},drawerStyle:r={},hidden:o=false,position:n="right",arrowPosition:a="top",variant:s="default",children:l,drawerContent:i,drawerButton:d=void 0,defaultOpen:u=false,config:p="gentle",drawerOpen:c=void 0,setDrawerOpen:m=void 0,buttonStyle:y={},drawerContentStyle:h={}})=>{let[S,C]=useState(u),{isMobile:x}=b$3(),b=n==="left",w=s==="minimal",I=w||x||o?"0rem":"3rem",P=x||o?"0rem":`${e}rem`,f=c!==void 0?c:S,E=B=>{m?m(B):C(B);};return useEffect(()=>{u&&E(true);},[u]),jsxs(a$s,{trigger:f,from:b?{paddingLeft:I}:{paddingRight:I},to:b?{paddingLeft:P}:{paddingRight:P},config:p,style:t,animationProps:{reset:o},children:[l,jsxs(b$7,{width:e,trigger:f,bottomArrow:a==="bottom",from:b?{transform:x||w?"translateX(-100%)":`translateX(${3-e}rem)`}:{transform:w||x?"translateX(100%)":`translateX(${e-3}rem)`},to:{transform:w||x?"translateX(0%)":"translateX(0rem)"},config:p,hidden:o,animationProps:{reset:o},isLeft:b,style:r,className:"drawer-content-container",children:[d||jsx(a$t,{from:{transform:w||x?`translateX(${b?"3rem":"-3rem"})`:"translateX(0rem)"},to:{transform:"translateX(0rem)"},trigger:f,style:y,children:jsx(c$5,{onClick:()=>E(!f),children:jsx(d$6,{isLeft:b,trigger:f,from:{transform:`rotate(${b?"180deg":"0deg"})`},to:{transform:`rotate(${b?"0deg":"180deg"})`},children:jsx(a$2.Caret,{})})})}),jsx(e$2,{style:h,trigger:f,from:{opacity:0},to:{opacity:1},children:i})]})]})},Fi=Ti;var Li=({children:e,desktopNavHeight:t=3.75,drawerWidth:r=30,hideDrawerToggle:o=false,isOpen:n,peekWidth:a=2,setIsOpen:s,smoothContentTransitionOnOpen:l=true,styles:i={content:{},wrapper:{},body:{},mask:{},header:{},footer:{}},wrapperMarginTop:d=2.5,...u})=>{let{isDrawerOpen:p,toggleDrawer:c}=a$u({isOpen:n,setIsOpen:s}),m=u.placement||"right",y=m==="left",h=y?"0rem var(--border-radius-xl, 1.5rem) var(--border-radius-xl, 1.5rem) 0rem":"var(--border-radius-xl, 1.5rem) 0rem 0rem var(--border-radius-xl, 1.5rem)",C=`.125rem solid ${p?d$4.white:d$4.green500}`,x={borderTop:C,[y?"borderRight":"borderLeft"]:C},b=p===y?"left":"right";return jsxs(a$v,{open:true,closable:false,destroyOnClose:false,mask:false,width:p?`${r}rem`:`${a}rem`,placement:m,styles:{content:{background:"transparent",...i.content},wrapper:{height:"50rem",marginTop:`${t+d}rem`,padding:p?"var(--spacing-xxl, 2rem)":0,borderRadius:h,...x,background:"rgba(255, 255, 255, 0.30)",boxShadow:`0px -2px 10px 0px ${d$4.green300}`,backdropFilter:"blur(20px)",...i.wrapper},body:{...i.body},mask:{...i.mask},header:{...i.header},footer:{...i.footer}},...u,children:[!o&&jsx(b$8,{isOpen:p,onClick:c,isLeftPlacement:y,children:jsx(a$2.Caret,{direction:b,color:d$4.green700})}),jsx(a$w,{isLeftPlacement:y,isOpen:p,smoothContentTransitionOnOpen:l,children:e})]})};var bt=({name:e,size:t=22,color:r="green800"})=>{let o=a$2[e];return jsx(o,{size:t,width:t,height:t,color:d$4[r]})};var Vi=({icon:e=void 0,color:t="green800",text:r,onClick:o})=>jsx(a$x,{color:d$4[t],iconPosition:"end",onClick:o,children:jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[jsx(b$9,{children:jsx(a$2.Caret,{color:d$4[t],direction:"left",size:12})}),jsxs(a$n,{align:"center",gap:`${e$3.xs.rem}rem`,children:[e&&jsx(bt,{name:e,color:t}),r]})]})});var cn=({file:e,display:t="card",handleDownload:r=()=>null,className:o=""})=>{let n=()=>{r(e);};return t==="list"?null:jsxs(b$a,{className:o,children:[jsxs(c$6,{children:[jsx(a$2.Image,{}),jsx(a$1.Header,{children:e.name})]}),jsxs(d$7,{onClick:n,children:[jsx(a$2.DownloadArrow,{}),"Download"]})]})},_i=({files:e,handleDownload:t,className:r=""})=>jsx(a$y,{className:r,children:e.map(o=>jsx(cn,{file:o,handleDownload:t}))}),Ni={Group:_i,Display:cn};function St({className:e="",isActive:t=false,color:r="#000"}){let o=useSpring(t?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{className:e,style:{...o,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:r})})}var Cn={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:true,transitionTimeout:50},Hi=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",expandIconClassName:a="",menuProps:s={menuButton:void 0},caretColor:l="#000",borderColor:i=d$4.grey400})=>{let d=useRef(null),[u,p]=useMenuState({transition:true}),c=useClick(u.state,p),m=u.state==="open"||u.state==="opening";return useEffect(()=>{o(u.state);},[u.state]),jsx(Fragment,{children:jsxs(c$7,{className:`${n} ${m?"menu-open":"menu-closed"}`,ref:d,borderColor:i,...c,children:[jsx(a$z,{children:t}),jsx(St,{className:a,isActive:m,color:l}),jsx(ControlledMenu,{...u,anchorRef:d,onClose:()=>p(false),onItemClick:r,onMenuChange:o,...Cn,...s,children:e})]})})},Ji=({children:e,cta:t,onItemClick:r=()=>null,onMenuChange:o=()=>null,className:n="",menuProps:a={menuButton:void 0}})=>{let s=useRef(null),[l,i]=useMenuState({transition:true}),d=useClick(l.state,i),u=l.state==="open"||l.state==="opening";return useEffect(()=>{o(l.state);},[l.state]),jsx(Fragment,{children:jsxs(b$b,{className:`${n} ${u?"menu-open":"menu-closed"}`,ref:s,...d,children:[t,jsx(ControlledMenu,{...l,anchorRef:s,onClose:()=>i(false),onItemClick:r,onMenuChange:o,...Cn,...a,children:e})]})})},Yi=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),Ki=({label:e,value:t,selected:r=false,onClick:o=()=>null,disabled:n=false,linkTo:a="",className:s=""})=>jsx(MenuItem,{className:`${s} ${r?"active":"inactive"}`,value:t,onClick:o,href:a,disabled:n,children:e}),Qi=({value:e,onChange:t=()=>null,className:r=""})=>jsx(FocusableItem,{children:({ref:o})=>jsx("input",{className:r,ref:o,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Zi=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),ji=({className:e=""})=>jsx(MenuDivider,{className:e}),el={Button:Yi,Container:Hi,Wrapper:Ji,Search:Qi,Divider:ji,Header:Zi,Item:Ki};var ol=Ln.div`
|
|
176
|
+
${({displaySmall:e,searchValue:t})=>e&&t===""&&`
|
|
177
|
+
:has(input:not(input:focus)) {
|
|
178
|
+
height: 50px;
|
|
179
|
+
width: 48px;
|
|
180
|
+
|
|
181
|
+
.ant-input-suffix {
|
|
182
|
+
background-color: #fff;
|
|
183
|
+
z-index: 10;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ant-input-clear-icon {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
`}
|
|
191
|
+
width: 290px;
|
|
192
|
+
transition: width 1s;
|
|
193
|
+
|
|
194
|
+
:hover {
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
}
|
|
197
|
+
`,nl=({searchValue:e="",displaySmall:t=false,iconPosition:r="suffix",iconColor:o="#101010",containerStyle:n={},...a})=>jsx(ol,{displaySmall:t,searchValue:e,style:n,children:jsx(Input,{placeholder:"Search",allowClear:true,suffix:r==="suffix"?jsx(a$2.Search,{color:o}):void 0,prefix:r==="prefix"?jsx(a$2.Search,{color:o}):void 0,style:{maxWidth:"290px",padding:"12px"},...a})});function Ct({isActive:e,color:t="#000"}){let r=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...r,display:"flex",alignItems:"center"},children:jsx(a$2.Caret,{direction:"up",color:t})})}var ul=e=>window.location.pathname===e,Rn=({icon:e,active:t,useDot:r,ribbonText:o,notificationCount:n,iconSize:a})=>{let s=e&&cloneElement(e,{active:t,size:a??32,color:t?d$4.black:d$4.grey400});return jsx(Badge,{count:n||o,offset:o?[5,0]:[-30,2],color:d$4.green600,dot:r,size:o?"small":"default",children:s})},cl=({isOpen:e=false,hideExpandIcon:t=false})=>!t&&jsx(Ct,{isActive:e,color:d$4.grey400}),En=({items:e,mode:t,...r})=>jsx(a$A,{...r,mode:t,expandIcon:t==="inline"?cl:null,items:e}),xt=({icon:e=void 0,label:t,key:r="",active:o=false,...n})=>{let[a,s]=useState(false),l=ul(String(r))||a||o;return jsx(b$c,{title:t,...n,active:o,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:jsxs(Flex,{gap:"0.5rem",align:"center",children:[jsx(Rn,{icon:e,active:l,...n}),jsx("span",{children:t})]})})},On=e=>jsx(Menu.Divider,{...e}),Dn=({icon:e,active:t=false,children:r,...o})=>{let[n,a]=useState(false);return jsx("div",{onMouseEnter:()=>a(true),onMouseLeave:()=>a(false),children:jsx(c$8,{icon:jsx(Rn,{icon:e,active:n||t,...o,iconSize:32}),...o,children:r})})},ml=({items:e,...t})=>jsx(En,{...t,children:e.map(r=>r?r.type==="divider"?jsx(On,{},r.key):r.items?createElement(Dn,{...r,key:r.key,title:r.label},r.items?.map(o=>jsx(xt,{...o,iconSize:25}))):createElement(xt,{...r,key:r.key}):null)}),fl={Container:En,MenuDivider:On,MenuItem:xt,SubMenuContainer:Dn,NavigationMenuMain:ml};var yl=({value:e,onChange:t})=>{let r=o=>{t(o==="next"?e.add(1,"month"):e.subtract(1,"month"));};return jsxs(a$n,{justify:"space-between",align:"center",style:{marginBottom:".5rem"},children:[jsx(a$M,{onClick:()=>r("prev"),children:jsx(a$2.Caret,{direction:"left",color:"#285E50"})}),jsxs(a$1.Header,{color:"var(--green-900, #1D4339)",children:[e.toDate().toLocaleString("en",{month:"long"})," ",e.year()]}),jsx(a$M,{onClick:()=>r("next"),children:jsx(a$2.Caret,{direction:"right",color:"#285E50"})})]})};function Tn(e){return jsx(b$d,{fullscreen:false,...e,headerRender:yl})}var Fn=({handleClose:e,reset:t,submit:r,submitDisabled:o,header:n=void 0,children:a})=>jsxs(a$B,{vertical:true,gap:"var(--spacing-lg, 1rem)",children:[jsxs(a$n,{justify:n?"space-between":"flex-end",children:[n&&jsx(a$1.Body,{bold:true,size:"lg",children:n}),jsx(a$n,{children:jsx(f.Unstyled,{onClick:e,children:jsx(a$2.Close,{isThin:true,color:"#000000",size:24})})})]}),a,jsx(a$n,{justify:"flex-end",children:jsxs(a$n,{align:"center",gap:"var(--spacing-md, 0.75rem)",children:[jsx(b$e,{onClick:t,children:"Reset Filters"}),jsx(c$9,{disabled:o,onClick:()=>{r(),e();},children:"See Results"})]})})]});var Sl=({filtersApplied:e,onSubmit:t,onReset:r,submitDisabled:o=false,header:n=void 0,...a})=>{let{children:s,placement:l,trigger:i="click"}=a,[d,u]=useState(false);return jsx(a$C,{trigger:i,placement:l,open:d,onOpenChange:p=>u(p),overlayInnerStyle:{padding:"var(--spacing-xl, 1.5rem)"},content:jsx(Fn,{submit:t,submitDisabled:o,handleClose:()=>u(false),reset:r,header:n,children:s}),...a,children:jsx(a$D,{isFilterApplied:e,children:jsx(a$2.Filter,{})})})};var Bn=Ln(Card)`
|
|
198
|
+
margin: 0;
|
|
199
|
+
width: 100%;
|
|
200
|
+
border: none;
|
|
201
|
+
font-size: 18px;
|
|
202
|
+
font-family: ${e=>e.theme.typography.family.body};
|
|
203
|
+
color: var(--green-900, #1d4339);
|
|
204
|
+
background: var(--opal-greens-lily-white, #e9f0ee);
|
|
205
|
+
border-radius: var(--borders-border-3, 10px);
|
|
206
|
+
padding: 10px;
|
|
207
|
+
`,vl=({children:e,...t})=>jsx(Bn,{...t,children:e}),Pl=({illustration:e,children:t,active:r=false,selected:o=false,onClick:n=()=>null,onMouseEnter:a=()=>null,onMouseLeave:s=()=>null,backgroundColor:l=null})=>{let i=a$E[e];return jsxs(a$F,{selected:o,onClick:n,onMouseEnter:a,onMouseLeave:s,backgroundColor:l,children:[jsx(i,{active:r}),t]})},wl=Ln(e=>jsx(Bn,{...e,style:{padding:0},children:jsxs(Flex,{align:"center",gap:".6rem",children:[jsx("div",{style:{minWidth:"3rem"},children:jsx(a$2.LightBulb,{})}),jsx(a$1.Body,{children:e.children})]})}))`
|
|
208
|
+
.ant-card-body {
|
|
209
|
+
padding: 1rem;
|
|
210
|
+
}
|
|
211
|
+
`,at={Primary:vl,Illustration:Pl,SolaceTip:wl};export{el as $,Go as A,Jo as B,Qo as C,Zo as D,en as E,on as F,Me as G,dt as H,ln as I,ui as J,pn as K,te as T,lt as U,Fi as V,Li as W,bt as X,Vi as Y,Ni as Z,St as _,vl as a,nl as aa,Pl as b,Ct as ba,wl as c,fl as ca,at as d,Tn as da,v as e,Fn as ea,yo as f,Sl as fa,k as g,ae as h,ve as i,So as j,ca as k,Co as l,xo as m,Pe as n,wo as o,Pa as p,ko as q,we as r,Ro as s,Eo as t,Oo as u,Do as v,Lo as w,Vo as x,$o as y,Uo as z};//# sourceMappingURL=chunk-YDBPSVMW.js.map
|
|
212
|
+
//# sourceMappingURL=chunk-YDBPSVMW.js.map
|