@utilitywarehouse/hearth-react 0.34.4 → 0.34.5
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/SKILL.md +7 -5
- package/dist/{chunk-AOWHE3JS.cjs → chunk-2DOX5QRE.cjs} +2 -2
- package/dist/{chunk-AOWHE3JS.cjs.map → chunk-2DOX5QRE.cjs.map} +1 -1
- package/dist/{chunk-2MQ6FGCP.js → chunk-2T6JOGY4.js} +2 -2
- package/dist/{chunk-SWIT4LGB.cjs → chunk-2UQFNTOW.cjs} +2 -2
- package/dist/{chunk-SWIT4LGB.cjs.map → chunk-2UQFNTOW.cjs.map} +1 -1
- package/dist/{chunk-OOUAAVCO.cjs → chunk-2YOFE27F.cjs} +2 -2
- package/dist/{chunk-OOUAAVCO.cjs.map → chunk-2YOFE27F.cjs.map} +1 -1
- package/dist/chunk-3KHNXMYU.js +4 -0
- package/dist/chunk-3KHNXMYU.js.map +1 -0
- package/dist/chunk-53VJM6HN.js +4 -0
- package/dist/chunk-53VJM6HN.js.map +1 -0
- package/dist/{chunk-75OLYAFB.cjs → chunk-6BVOGEQF.cjs} +2 -2
- package/dist/{chunk-75OLYAFB.cjs.map → chunk-6BVOGEQF.cjs.map} +1 -1
- package/dist/{chunk-X2QPGOUI.cjs → chunk-6GC2HQ72.cjs} +2 -2
- package/dist/{chunk-X2QPGOUI.cjs.map → chunk-6GC2HQ72.cjs.map} +1 -1
- package/dist/chunk-6TVIKYYN.js +4 -0
- package/dist/chunk-6TVIKYYN.js.map +1 -0
- package/dist/{chunk-GAFUPNEN.js → chunk-7BU5PUFF.js} +2 -2
- package/dist/chunk-7BU5PUFF.js.map +1 -0
- package/dist/{chunk-UNIBG2C6.js → chunk-7VHYXPJC.js} +2 -2
- package/dist/chunk-AEY4Y3ZM.cjs +4 -0
- package/dist/{chunk-YEZ6N62U.cjs.map → chunk-AEY4Y3ZM.cjs.map} +1 -1
- package/dist/chunk-AJDKAYX2.js +4 -0
- package/dist/{chunk-FSOQCT7B.js.map → chunk-AJDKAYX2.js.map} +1 -1
- package/dist/{chunk-I4T6DB7C.js → chunk-ALOYQFUV.js} +2 -2
- package/dist/chunk-ALOYQFUV.js.map +1 -0
- package/dist/chunk-ASLPRJKG.cjs +4 -0
- package/dist/chunk-ASLPRJKG.cjs.map +1 -0
- package/dist/{chunk-F7A4D3PD.cjs → chunk-BCWX6IU3.cjs} +2 -2
- package/dist/chunk-BCWX6IU3.cjs.map +1 -0
- package/dist/{chunk-RF5NDA46.cjs → chunk-C7UHLFA4.cjs} +2 -2
- package/dist/chunk-C7UHLFA4.cjs.map +1 -0
- package/dist/{chunk-WYLVXCEC.js → chunk-DDEAM7YH.js} +2 -2
- package/dist/chunk-DDEAM7YH.js.map +1 -0
- package/dist/{chunk-BB2SOLJS.cjs → chunk-DFHWFPXL.cjs} +2 -2
- package/dist/{chunk-BB2SOLJS.cjs.map → chunk-DFHWFPXL.cjs.map} +1 -1
- package/dist/{chunk-OQ7TRS57.js → chunk-DYMXUQM4.js} +2 -2
- package/dist/{chunk-VVBUEPWH.js → chunk-EERWIJJE.js} +2 -2
- package/dist/chunk-EEUINYIO.js +4 -0
- package/dist/{chunk-ICJHFSP5.js.map → chunk-EEUINYIO.js.map} +1 -1
- package/dist/chunk-ESNSLBNQ.js +4 -0
- package/dist/{chunk-BXDF7Z4R.js.map → chunk-ESNSLBNQ.js.map} +1 -1
- package/dist/{chunk-Y2YBHHIX.js → chunk-EWEFZ6ZZ.js} +2 -2
- package/dist/{chunk-IEKB4IRY.js → chunk-F4VHCEOC.js} +2 -2
- package/dist/{chunk-UNDW2NW7.cjs → chunk-FODRPEXV.cjs} +2 -2
- package/dist/chunk-FODRPEXV.cjs.map +1 -0
- package/dist/chunk-FOTB6NKY.cjs +4 -0
- package/dist/chunk-FOTB6NKY.cjs.map +1 -0
- package/dist/chunk-GI6ISM62.js +4 -0
- package/dist/chunk-GI6ISM62.js.map +1 -0
- package/dist/{chunk-7ILZKQOQ.js → chunk-HH27I2KI.js} +2 -2
- package/dist/chunk-HKZR7WEU.js +4 -0
- package/dist/chunk-HKZR7WEU.js.map +1 -0
- package/dist/chunk-HMJ7G2EA.cjs +4 -0
- package/dist/chunk-HMJ7G2EA.cjs.map +1 -0
- package/dist/{chunk-LUPMXBAE.cjs → chunk-HWN35OXS.cjs} +2 -2
- package/dist/{chunk-LUPMXBAE.cjs.map → chunk-HWN35OXS.cjs.map} +1 -1
- package/dist/chunk-I34GF57U.cjs +4 -0
- package/dist/{chunk-WMOTZLQC.cjs.map → chunk-I34GF57U.cjs.map} +1 -1
- package/dist/chunk-IV4TGFTS.cjs +4 -0
- package/dist/chunk-IV4TGFTS.cjs.map +1 -0
- package/dist/chunk-IWL2NRQW.js +4 -0
- package/dist/chunk-IWL2NRQW.js.map +1 -0
- package/dist/chunk-J4MYTSQR.js +4 -0
- package/dist/chunk-J4MYTSQR.js.map +1 -0
- package/dist/chunk-J6RR5ZAC.js +4 -0
- package/dist/chunk-J6RR5ZAC.js.map +1 -0
- package/dist/chunk-KLWPH3KA.js +4 -0
- package/dist/{chunk-XBK44AAM.js.map → chunk-KLWPH3KA.js.map} +1 -1
- package/dist/{chunk-XAJGQUSC.js → chunk-KNPNKYUS.js} +2 -2
- package/dist/chunk-LWJNN4FX.cjs +4 -0
- package/dist/chunk-LWJNN4FX.cjs.map +1 -0
- package/dist/{chunk-A5H4YOM6.cjs → chunk-LY2R2ZLM.cjs} +2 -2
- package/dist/{chunk-A5H4YOM6.cjs.map → chunk-LY2R2ZLM.cjs.map} +1 -1
- package/dist/{chunk-GLKPD2GP.cjs → chunk-MIQ4OWR2.cjs} +2 -2
- package/dist/{chunk-GLKPD2GP.cjs.map → chunk-MIQ4OWR2.cjs.map} +1 -1
- package/dist/chunk-MLPWLB6K.js +4 -0
- package/dist/chunk-MLPWLB6K.js.map +1 -0
- package/dist/chunk-MQPXIAIR.js +4 -0
- package/dist/chunk-MQPXIAIR.js.map +1 -0
- package/dist/{chunk-HE73I4VO.cjs → chunk-MT7HVLG6.cjs} +2 -2
- package/dist/{chunk-HE73I4VO.cjs.map → chunk-MT7HVLG6.cjs.map} +1 -1
- package/dist/{chunk-EC7L4PCG.cjs → chunk-NADTSPIX.cjs} +2 -2
- package/dist/{chunk-EC7L4PCG.cjs.map → chunk-NADTSPIX.cjs.map} +1 -1
- package/dist/chunk-NP362J2E.cjs +4 -0
- package/dist/chunk-NP362J2E.cjs.map +1 -0
- package/dist/chunk-OO46QHIG.js +4 -0
- package/dist/chunk-OO46QHIG.js.map +1 -0
- package/dist/{chunk-RVXQZ4CI.cjs → chunk-OP6OD46L.cjs} +2 -2
- package/dist/{chunk-RVXQZ4CI.cjs.map → chunk-OP6OD46L.cjs.map} +1 -1
- package/dist/{chunk-L3VPQN5T.js → chunk-OTXFBNCU.js} +2 -2
- package/dist/{chunk-XMFWH5SU.js → chunk-OUXB7ICZ.js} +2 -2
- package/dist/chunk-OUXB7ICZ.js.map +1 -0
- package/dist/chunk-P7QOD4IU.cjs +4 -0
- package/dist/chunk-P7QOD4IU.cjs.map +1 -0
- package/dist/chunk-PFUJ3AOW.cjs +4 -0
- package/dist/chunk-PFUJ3AOW.cjs.map +1 -0
- package/dist/{chunk-KKHWPT5B.js → chunk-PGDFEVA5.js} +2 -2
- package/dist/{chunk-N2PQS6HG.js → chunk-PJCXETFD.js} +2 -2
- package/dist/chunk-PUDGKBPK.cjs +4 -0
- package/dist/chunk-PUDGKBPK.cjs.map +1 -0
- package/dist/chunk-Q3DKQMOH.cjs +4 -0
- package/dist/chunk-Q3DKQMOH.cjs.map +1 -0
- package/dist/chunk-Q6ZC2EJ2.js +4 -0
- package/dist/chunk-Q6ZC2EJ2.js.map +1 -0
- package/dist/{chunk-OLBF7CZD.cjs → chunk-QE5G52MR.cjs} +2 -2
- package/dist/{chunk-OLBF7CZD.cjs.map → chunk-QE5G52MR.cjs.map} +1 -1
- package/dist/chunk-QLMLIOWZ.cjs +4 -0
- package/dist/chunk-QLMLIOWZ.cjs.map +1 -0
- package/dist/chunk-QNITBIE4.js +4 -0
- package/dist/chunk-QNITBIE4.js.map +1 -0
- package/dist/chunk-RLXZVTER.js +4 -0
- package/dist/chunk-RLXZVTER.js.map +1 -0
- package/dist/chunk-RNP3S7YU.js +4 -0
- package/dist/chunk-RNP3S7YU.js.map +1 -0
- package/dist/{chunk-3OBTLZHR.js → chunk-RQVUMCZA.js} +2 -2
- package/dist/chunk-RQXSWZUH.cjs +4 -0
- package/dist/chunk-RQXSWZUH.cjs.map +1 -0
- package/dist/chunk-RS5YT3MK.cjs +4 -0
- package/dist/chunk-RS5YT3MK.cjs.map +1 -0
- package/dist/chunk-RV2FEKIE.cjs +4 -0
- package/dist/chunk-RV2FEKIE.cjs.map +1 -0
- package/dist/{chunk-XCT44JDG.js → chunk-S4U7KSTZ.js} +2 -2
- package/dist/chunk-SIUB7RNN.js +4 -0
- package/dist/chunk-SIUB7RNN.js.map +1 -0
- package/dist/chunk-SSI6IYHS.cjs +4 -0
- package/dist/chunk-SSI6IYHS.cjs.map +1 -0
- package/dist/chunk-TEIATTNR.js +4 -0
- package/dist/chunk-TEIATTNR.js.map +1 -0
- package/dist/chunk-U7CFC6Z2.cjs +4 -0
- package/dist/chunk-U7CFC6Z2.cjs.map +1 -0
- package/dist/{chunk-JCNQCBO7.cjs → chunk-UG5NCEQH.cjs} +2 -2
- package/dist/{chunk-JCNQCBO7.cjs.map → chunk-UG5NCEQH.cjs.map} +1 -1
- package/dist/chunk-UPYADVVW.js +4 -0
- package/dist/chunk-UPYADVVW.js.map +1 -0
- package/dist/{chunk-U44ALMBI.js → chunk-UYQNCEW5.js} +2 -2
- package/dist/{chunk-HNPNWQMD.js → chunk-V4BZIPQB.js} +2 -2
- package/dist/{chunk-R6KCU4S7.cjs → chunk-V5F33HLX.cjs} +2 -2
- package/dist/{chunk-R6KCU4S7.cjs.map → chunk-V5F33HLX.cjs.map} +1 -1
- package/dist/chunk-VEOECLHI.cjs +4 -0
- package/dist/chunk-VEOECLHI.cjs.map +1 -0
- package/dist/chunk-VSV7P6QO.cjs +4 -0
- package/dist/{chunk-WB4GZ3CX.cjs.map → chunk-VSV7P6QO.cjs.map} +1 -1
- package/dist/{chunk-3SXNUUIV.cjs → chunk-VZ37XNSE.cjs} +2 -2
- package/dist/{chunk-3SXNUUIV.cjs.map → chunk-VZ37XNSE.cjs.map} +1 -1
- package/dist/chunk-WCHIJDDF.cjs +4 -0
- package/dist/chunk-WCHIJDDF.cjs.map +1 -0
- package/dist/{chunk-WAS47BSQ.js → chunk-X6FC4KSH.js} +2 -2
- package/dist/{chunk-NEUOBQLL.cjs → chunk-XKBBOWVM.cjs} +2 -2
- package/dist/{chunk-NEUOBQLL.cjs.map → chunk-XKBBOWVM.cjs.map} +1 -1
- package/dist/{chunk-L7I7AUWH.cjs → chunk-XL66CZU5.cjs} +2 -2
- package/dist/{chunk-L7I7AUWH.cjs.map → chunk-XL66CZU5.cjs.map} +1 -1
- package/dist/{chunk-UQEUXEEG.js → chunk-XNL45RW3.js} +2 -2
- package/dist/{chunk-4VS7B2ZG.cjs → chunk-XPN7BKU2.cjs} +2 -2
- package/dist/{chunk-4VS7B2ZG.cjs.map → chunk-XPN7BKU2.cjs.map} +1 -1
- package/dist/{chunk-TGMNEOLU.cjs → chunk-XYL3ZE55.cjs} +2 -2
- package/dist/chunk-XYL3ZE55.cjs.map +1 -0
- package/dist/{chunk-QVE4N4F2.js → chunk-YEUIB4QY.js} +2 -2
- package/dist/chunk-YOSI2OCC.js +4 -0
- package/dist/{chunk-F6H2C3OA.js.map → chunk-YOSI2OCC.js.map} +1 -1
- package/dist/{chunk-XZBPR3WG.cjs → chunk-ZKHAEQHH.cjs} +2 -2
- package/dist/{chunk-XZBPR3WG.cjs.map → chunk-ZKHAEQHH.cjs.map} +1 -1
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Alert/Alert.cjs +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/AlertIconButton.cjs +1 -1
- package/dist/components/Alert/AlertIconButton.js +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.js +1 -1
- package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordion.js +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.cjs +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.d.ts.map +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.js +1 -1
- package/dist/components/Combobox/Combobox.cjs +1 -1
- package/dist/components/Combobox/Combobox.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
- package/dist/components/DateInput/DateInput.cjs +1 -1
- package/dist/components/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerHeader.cjs +1 -1
- package/dist/components/DatePicker/DatePickerHeader.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerHeader.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
- package/dist/components/FormGroupBase/FormGroupBase.cjs +1 -1
- package/dist/components/FormGroupBase/FormGroupBase.d.ts.map +1 -1
- package/dist/components/FormGroupBase/FormGroupBase.js +1 -1
- package/dist/components/IconButton/IconButton.cjs +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/List/List.cjs +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListActionButton.cjs +1 -1
- package/dist/components/List/ListActionButton.d.ts.map +1 -1
- package/dist/components/List/ListActionButton.js +1 -1
- package/dist/components/List/ListItemButton.cjs +1 -1
- package/dist/components/List/ListItemButton.d.ts.map +1 -1
- package/dist/components/List/ListItemButton.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/ProgressStepper/ProgressStepButton.cjs +1 -1
- package/dist/components/ProgressStepper/ProgressStepButton.js +1 -1
- package/dist/components/Radio/Radio.cjs +1 -1
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.cjs +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioTile/RadioTile.cjs +1 -1
- package/dist/components/RadioTile/RadioTile.cjs.map +1 -1
- package/dist/components/RadioTile/RadioTile.d.ts.map +1 -1
- package/dist/components/RadioTile/RadioTile.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
- package/dist/components/SectionHeader/SectionHeader.js +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.cjs +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TablePagination.cjs +1 -1
- package/dist/components/Table/TablePagination.js +1 -1
- package/dist/components/Tabs/TabsList.cjs +1 -1
- package/dist/components/Tabs/TabsList.d.ts.map +1 -1
- package/dist/components/Tabs/TabsList.js +1 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextInput/TextInput.cjs +1 -1
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/ToastProvider.cjs +1 -1
- package/dist/components/Toast/ToastProvider.cjs.map +1 -1
- package/dist/components/Toast/ToastProvider.d.ts +1 -1
- package/dist/components/Toast/ToastProvider.d.ts.map +1 -1
- package/dist/components/Toast/ToastProvider.js +1 -1
- package/dist/components/UnstyledIconButton/UnstyledIconButton.cjs +1 -1
- package/dist/components/UnstyledIconButton/UnstyledIconButton.d.ts.map +1 -1
- package/dist/components/UnstyledIconButton/UnstyledIconButton.js +1 -1
- package/dist/components/VerificationInput/VerificationInput.cjs +1 -1
- package/dist/components/VerificationInput/VerificationInput.d.ts.map +1 -1
- package/dist/components/VerificationInput/VerificationInput.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/public/llms/components/button.md +5 -3
- package/public/llms/components/icon-button.md +5 -3
- package/public/llms/components/search-input.md +4 -3
- package/public/llms/components/switch.md +2 -3
- package/public/llms/components/unstyled-icon-button.md +5 -3
- package/public/llms/docs/getting-started.md +1 -1
- package/dist/chunk-2MIDU3YN.cjs +0 -4
- package/dist/chunk-2MIDU3YN.cjs.map +0 -1
- package/dist/chunk-55RXL2DV.js +0 -4
- package/dist/chunk-55RXL2DV.js.map +0 -1
- package/dist/chunk-6WCPGWVO.cjs +0 -4
- package/dist/chunk-6WCPGWVO.cjs.map +0 -1
- package/dist/chunk-B2HYTGSB.js +0 -4
- package/dist/chunk-B2HYTGSB.js.map +0 -1
- package/dist/chunk-BDJRXINR.js +0 -4
- package/dist/chunk-BDJRXINR.js.map +0 -1
- package/dist/chunk-BVXR3BGZ.cjs +0 -4
- package/dist/chunk-BVXR3BGZ.cjs.map +0 -1
- package/dist/chunk-BXDF7Z4R.js +0 -4
- package/dist/chunk-C3INLFOU.cjs +0 -4
- package/dist/chunk-C3INLFOU.cjs.map +0 -1
- package/dist/chunk-CAZQKOY3.cjs +0 -4
- package/dist/chunk-CAZQKOY3.cjs.map +0 -1
- package/dist/chunk-CQ2YNOHB.js +0 -4
- package/dist/chunk-CQ2YNOHB.js.map +0 -1
- package/dist/chunk-CVKTRCKW.js +0 -4
- package/dist/chunk-CVKTRCKW.js.map +0 -1
- package/dist/chunk-CW6UT3QU.js +0 -4
- package/dist/chunk-CW6UT3QU.js.map +0 -1
- package/dist/chunk-EFQSAW3M.js +0 -4
- package/dist/chunk-EFQSAW3M.js.map +0 -1
- package/dist/chunk-F6H2C3OA.js +0 -4
- package/dist/chunk-F7A4D3PD.cjs.map +0 -1
- package/dist/chunk-FSOQCT7B.js +0 -4
- package/dist/chunk-GAFUPNEN.js.map +0 -1
- package/dist/chunk-HMT3R4UW.cjs +0 -4
- package/dist/chunk-HMT3R4UW.cjs.map +0 -1
- package/dist/chunk-I4T6DB7C.js.map +0 -1
- package/dist/chunk-ICJHFSP5.js +0 -4
- package/dist/chunk-IXUXDCQL.cjs +0 -4
- package/dist/chunk-IXUXDCQL.cjs.map +0 -1
- package/dist/chunk-J55UWDJJ.js +0 -4
- package/dist/chunk-J55UWDJJ.js.map +0 -1
- package/dist/chunk-JEJLX5DM.js +0 -4
- package/dist/chunk-JEJLX5DM.js.map +0 -1
- package/dist/chunk-KZRXT3QQ.cjs +0 -4
- package/dist/chunk-KZRXT3QQ.cjs.map +0 -1
- package/dist/chunk-LBC2WFPQ.js +0 -4
- package/dist/chunk-LBC2WFPQ.js.map +0 -1
- package/dist/chunk-LRFEHB5Y.js +0 -4
- package/dist/chunk-LRFEHB5Y.js.map +0 -1
- package/dist/chunk-MD3VAECH.js +0 -4
- package/dist/chunk-MD3VAECH.js.map +0 -1
- package/dist/chunk-O7X6QXBO.js +0 -4
- package/dist/chunk-O7X6QXBO.js.map +0 -1
- package/dist/chunk-P4FX42C6.cjs +0 -4
- package/dist/chunk-P4FX42C6.cjs.map +0 -1
- package/dist/chunk-PEG7JY2N.js +0 -4
- package/dist/chunk-PEG7JY2N.js.map +0 -1
- package/dist/chunk-QLKWVS6B.js +0 -4
- package/dist/chunk-QLKWVS6B.js.map +0 -1
- package/dist/chunk-QWB4MMLE.js +0 -4
- package/dist/chunk-QWB4MMLE.js.map +0 -1
- package/dist/chunk-RF5NDA46.cjs.map +0 -1
- package/dist/chunk-S7R53S6F.js +0 -4
- package/dist/chunk-S7R53S6F.js.map +0 -1
- package/dist/chunk-TGMNEOLU.cjs.map +0 -1
- package/dist/chunk-TTW4NON4.cjs +0 -4
- package/dist/chunk-TTW4NON4.cjs.map +0 -1
- package/dist/chunk-UFHEYLW3.cjs +0 -4
- package/dist/chunk-UFHEYLW3.cjs.map +0 -1
- package/dist/chunk-UNDW2NW7.cjs.map +0 -1
- package/dist/chunk-UVHPJNXC.cjs +0 -4
- package/dist/chunk-UVHPJNXC.cjs.map +0 -1
- package/dist/chunk-VME2FDDL.cjs +0 -4
- package/dist/chunk-VME2FDDL.cjs.map +0 -1
- package/dist/chunk-WB4GZ3CX.cjs +0 -4
- package/dist/chunk-WFVKT4MG.cjs +0 -4
- package/dist/chunk-WFVKT4MG.cjs.map +0 -1
- package/dist/chunk-WMOTZLQC.cjs +0 -4
- package/dist/chunk-WW43YAWT.cjs +0 -4
- package/dist/chunk-WW43YAWT.cjs.map +0 -1
- package/dist/chunk-WYLVXCEC.js.map +0 -1
- package/dist/chunk-XBK44AAM.js +0 -4
- package/dist/chunk-XMFWH5SU.js.map +0 -1
- package/dist/chunk-YAI34QHN.cjs +0 -4
- package/dist/chunk-YAI34QHN.cjs.map +0 -1
- package/dist/chunk-YEZ6N62U.cjs +0 -4
- package/dist/chunk-YMTA7AWP.cjs +0 -4
- package/dist/chunk-YMTA7AWP.cjs.map +0 -1
- package/dist/chunk-Z6QLCWLT.js +0 -4
- package/dist/chunk-Z6QLCWLT.js.map +0 -1
- package/dist/chunk-ZMDXNCUJ.cjs +0 -4
- package/dist/chunk-ZMDXNCUJ.cjs.map +0 -1
- /package/dist/{chunk-2MQ6FGCP.js.map → chunk-2T6JOGY4.js.map} +0 -0
- /package/dist/{chunk-UNIBG2C6.js.map → chunk-7VHYXPJC.js.map} +0 -0
- /package/dist/{chunk-OQ7TRS57.js.map → chunk-DYMXUQM4.js.map} +0 -0
- /package/dist/{chunk-VVBUEPWH.js.map → chunk-EERWIJJE.js.map} +0 -0
- /package/dist/{chunk-Y2YBHHIX.js.map → chunk-EWEFZ6ZZ.js.map} +0 -0
- /package/dist/{chunk-IEKB4IRY.js.map → chunk-F4VHCEOC.js.map} +0 -0
- /package/dist/{chunk-7ILZKQOQ.js.map → chunk-HH27I2KI.js.map} +0 -0
- /package/dist/{chunk-XAJGQUSC.js.map → chunk-KNPNKYUS.js.map} +0 -0
- /package/dist/{chunk-L3VPQN5T.js.map → chunk-OTXFBNCU.js.map} +0 -0
- /package/dist/{chunk-KKHWPT5B.js.map → chunk-PGDFEVA5.js.map} +0 -0
- /package/dist/{chunk-N2PQS6HG.js.map → chunk-PJCXETFD.js.map} +0 -0
- /package/dist/{chunk-3OBTLZHR.js.map → chunk-RQVUMCZA.js.map} +0 -0
- /package/dist/{chunk-XCT44JDG.js.map → chunk-S4U7KSTZ.js.map} +0 -0
- /package/dist/{chunk-U44ALMBI.js.map → chunk-UYQNCEW5.js.map} +0 -0
- /package/dist/{chunk-HNPNWQMD.js.map → chunk-V4BZIPQB.js.map} +0 -0
- /package/dist/{chunk-WAS47BSQ.js.map → chunk-X6FC4KSH.js.map} +0 -0
- /package/dist/{chunk-UQEUXEEG.js.map → chunk-XNL45RW3.js.map} +0 -0
- /package/dist/{chunk-QVE4N4F2.js.map → chunk-YEUIB4QY.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilitywarehouse/hearth-react",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.5",
|
|
4
4
|
"description": "React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
"tsx": "^4.19.3",
|
|
99
99
|
"vite": "^7.1.3",
|
|
100
100
|
"vitest": "^4.1.7",
|
|
101
|
-
"@utilitywarehouse/hearth-fonts": "0.1.1",
|
|
102
101
|
"@utilitywarehouse/hearth-react-icons": "0.9.4",
|
|
103
102
|
"@utilitywarehouse/hearth-storybook-utils": "0.0.0",
|
|
104
103
|
"@utilitywarehouse/hearth-svg-assets": "0.6.6",
|
|
105
|
-
"@utilitywarehouse/hearth-tokens": "0.4.7"
|
|
104
|
+
"@utilitywarehouse/hearth-tokens": "0.4.7",
|
|
105
|
+
"@utilitywarehouse/hearth-fonts": "0.1.1"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"clean": "rm -rf .turbo node_modules dist *.css storybook-static",
|
|
@@ -150,9 +150,11 @@ Disabled buttons use `aria-disabled`, rather than `disabled`, so that they are
|
|
|
150
150
|
still focusable when using the keyboard. This means that screen readers are
|
|
151
151
|
still able to find the button, with the insight that it is disabled and that
|
|
152
152
|
there is perhaps an action which needs to be taken, rather than not knowing
|
|
153
|
-
there is a button there at all.
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
there is a button there at all. While disabled or `loading`, the button's
|
|
154
|
+
`onClick` handler isn't called and its default action is cancelled, so a
|
|
155
|
+
`type="submit"` button won't submit its form and an `asChild` link won't
|
|
156
|
+
navigate on click or middle-click. A link can still be opened from the browser's
|
|
157
|
+
context menu, so remove its `href` while disabled if that matters.
|
|
156
158
|
|
|
157
159
|
## Variants
|
|
158
160
|
|
|
@@ -196,9 +196,11 @@ Disabled buttons use `aria-disabled`, rather than `disabled`, so that they are
|
|
|
196
196
|
still focusable when using the keyboard. This means that screen readers are
|
|
197
197
|
still able to find the button, with the insight that it is disabled and that
|
|
198
198
|
there is perhaps an action which needs to be taken, rather than not knowing
|
|
199
|
-
there is a button there at all.
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
there is a button there at all. While disabled or `loading`, the button's
|
|
200
|
+
`onClick` handler isn't called and its default action is cancelled, so a
|
|
201
|
+
`type="submit"` button won't submit its form and an `asChild` link won't
|
|
202
|
+
navigate on click or middle-click. A link can still be opened from the browser's
|
|
203
|
+
context menu, so remove its `href` while disabled if that matters.
|
|
202
204
|
|
|
203
205
|
## Variants
|
|
204
206
|
|
|
@@ -48,9 +48,10 @@ to screen readers. You can change this by setting `hideLabel` to `false`.
|
|
|
48
48
|
|
|
49
49
|
## Clear
|
|
50
50
|
|
|
51
|
-
You can pass a function to the `onClear` prop to clear the input. When
|
|
52
|
-
a value the `clear` button will be present,
|
|
53
|
-
`onClear` function.
|
|
51
|
+
You can pass a function to the `onClear` prop to clear the input. When
|
|
52
|
+
`onClear` is provided and there is a value, the `clear` button will be present,
|
|
53
|
+
and clicking it will call the `onClear` function. Without `onClear`, no clear
|
|
54
|
+
button is shown. This should be used only to clear the value of the input.
|
|
54
55
|
|
|
55
56
|
## Loading
|
|
56
57
|
|
|
@@ -49,9 +49,8 @@ The disabled `Switch` uses `aria-disabled`, rather than the `disabled`
|
|
|
49
49
|
attribute, so that they are still focusable when using the keyboard. This means
|
|
50
50
|
that screen readers are still able to find the button, with the insight that it
|
|
51
51
|
is disabled and that there is perhaps an action which needs to be taken, rather
|
|
52
|
-
than not knowing there is a button there at all.
|
|
53
|
-
|
|
54
|
-
actions.
|
|
52
|
+
than not knowing there is a button there at all. While disabled, the `Switch`
|
|
53
|
+
won't toggle and its `onClick` and `onCheckedChange` handlers aren't called.
|
|
55
54
|
|
|
56
55
|
## Responsive Sizes
|
|
57
56
|
|
|
@@ -57,9 +57,11 @@ Disabled buttons use `aria-disabled`, rather than `disabled`, so that they are
|
|
|
57
57
|
still focusable when using the keyboard. This means that screen readers are
|
|
58
58
|
still able to find the button, with the insight that it is disabled and that
|
|
59
59
|
there is perhaps an action which needs to be taken, rather than not knowing
|
|
60
|
-
there is a button there at all.
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
there is a button there at all. While disabled or `loading`, the button's
|
|
61
|
+
`onClick` handler isn't called and its default action is cancelled, so a
|
|
62
|
+
`type="submit"` button won't submit its form and an `asChild` link won't
|
|
63
|
+
navigate on click or middle-click. A link can still be opened from the browser's
|
|
64
|
+
context menu, so remove its `href` while disabled if that matters.
|
|
63
65
|
|
|
64
66
|
## Size
|
|
65
67
|
|
package/dist/chunk-2MIDU3YN.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkZ6OA4XPPcjs = require('./chunk-Z6OA4XPP.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var A="TextArea",v=_chunk4Q432K4Wcjs.b.call(void 0, A),M= exports.a =_react.forwardRef.call(void 0, (P,g)=>{let{className:N,validationStatus:e,validationText:d,label:I,labelVariant:w,helperText:o,id:C,disabled:a,readOnly:n,required:l,placeholder:F,"aria-describedby":E,resize:H,rows:O=3,minHeight:B,maxHeight:D,...R}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),{id:s,labelId:m,helperTextId:p,validationTextId:r}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:C,prefix:"textarea"}),i=!n&&!a,V={id:s,labelId:m,helperTextId:p,validationTextId:r,label:I,labelVariant:w,helperText:o,validationText:i?d:void 0,validationStatus:i?e:void 0,required:l},q=_chunkHIF6HKZ3cjs.a.call(void 0, E,o?p:void 0,i&&d!==void 0?r:void 0);return _jsxruntime.jsx.call(void 0, _chunkZ6OA4XPPcjs.a,{"data-validation-status":e||void 0,"data-disabled":a?"":void 0,className:_chunkONNSZMWFcjs.a.call(void 0, v,N),"data-testid":v,...V,children:_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,minHeight:B,maxHeight:D,children:_jsxruntime.jsx.call(void 0, "textarea",{ref:g,id:s,rows:O,required:l,disabled:a,readOnly:n,placeholder:a?void 0:F,"aria-labelledby":m,"aria-describedby":q,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?r:void 0,"data-resize":H,...R})})})});M.displayName=A;exports.a = M;
|
|
4
|
-
//# sourceMappingURL=chunk-2MIDU3YN.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-2MIDU3YN.cjs","../src/components/TextArea/TextArea.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TextArea","forwardRef","props","ref","className","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","readOnly","required","placeholder","ariaDescribedby","resize","rows","minHeight","maxHeight","textAreaProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","jsx","FormField","cn","Box"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA5S,+CAgFnB,IApEFA,CAAAA,CAAiB,UAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAWC,+BAAAA,CAA4CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACjF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,kBAAA,CAAoBC,CAAAA,CACpB,MAA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A,CAAAG,6BAAAA,mBAACG,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAWjB,CAAAA,CAAW,SAAA,CAAWC,CAAAA,CAC5C,QAAA,CAAAa,6BAAAA,UAAC,CAAA,CACC,GAAA,CAAK7B,CAAAA,CACL,EAAA,CAAIoB,CAAAA,CACJ,IAAA,CAAMN,CAAAA,CACN,QAAA,CAAUJ,CAAAA,CACV,QAAA,CAAUF,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,WAAA,CAAcD,CAAAA,CAAyB,KAAA,CAAA,CAAdG,CAAAA,CACzB,iBAAA,CAAiBU,CAAAA,CACjB,kBAAA,CAAkBM,CAAAA,CAClB,cAAA,CAAczB,CAAAA,GAAqB,SAAA,CAAY,CAAA,CAAA,CAAO,KAAA,CAAA,CACtD,mBAAA,CAAmBA,CAAAA,GAAqB,SAAA,CAAYqB,CAAAA,CAAmB,KAAA,CAAA,CACvE,aAAA,CAAaV,CAAAA,CACZ,GAAGI,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CAEJ,CAAC,CAAA,CAEDpB,CAAAA,CAAS,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2MIDU3YN.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { useIds } from '../../hooks/use-ids';\nimport type { TextAreaProps } from './TextArea.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormField } from '../FormField/FormField';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'TextArea';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TextAreaElement = ComponentRef<'textarea'>;\n\n/**\n * Use TextArea for a multi-line text input, such as a comment, message, or\n * description field. For single-line input, use TextInput instead. A `label`\n * is required and should clearly describe the purpose of the field.\n *\n * @summary A multi-line text input field for longer text content.\n */\nexport const TextArea = forwardRef<TextAreaElement, TextAreaProps>((props, ref) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n readOnly,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n resize,\n rows = 3,\n minHeight,\n maxHeight,\n ...textAreaProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'textarea',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n data-validation-status={validationStatus ? validationStatus : undefined}\n data-disabled={disabled ? '' : undefined}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <Box asChild minHeight={minHeight} maxHeight={maxHeight}>\n <textarea\n ref={ref}\n id={id}\n rows={rows}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-resize={resize}\n {...textAreaProps}\n />\n </Box>\n </FormField>\n );\n});\n\nTextArea.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-55RXL2DV.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as d}from"./chunk-V6QXHP4D.js";import{a as s}from"./chunk-OPPG3NOC.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as t}from"./chunk-J3AJBV4B.js";import{b as p}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{jsx as f,jsxs as b}from"react/jsx-runtime";var c="Table",e=p(c),P=y((N,T)=>{let{className:a,style:r,children:o,variant:l,pagination:n,...m}=i(N,s);return l===void 0?b("div",{className:t(e,a),"data-testid":e,style:r,children:[f("table",{...m,children:o}),n]}):b(d,{className:t(e,a),"data-table-container":"card","data-testid":e,style:r,variant:l,colorScheme:"neutralStrong",paddingNone:!0,children:[f("table",{ref:T,...m,children:o}),n]})});P.displayName=c;export{P as a};
|
|
4
|
-
//# sourceMappingURL=chunk-55RXL2DV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Table/Table.tsx"],"sourcesContent":["import { cn } from '../../helpers/cn';\n\nimport type { TableProps } from './Table.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { Card } from '../Card/Card';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'Table';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TableElement = ComponentRef<'table'>;\n\n/**\n * Use Table to arrange data in rows and columns, to communicate relationships\n * between content and to display references, comparisons, and choices. Compose\n * it with TableHeader, TableBody, TableRow, TableHeaderCell, and TableCell.\n * Pass `variant` to wrap the table in a Card container; omit it for a minimal,\n * unwrapped table.\n *\n * @summary A component for arranging data in rows and columns.\n */\nexport const Table = forwardRef<TableElement, TableProps>((props, ref) => {\n const { className, style, children, variant, pagination, ...tableProps } = extractProps(\n props,\n marginPropDefs\n );\n\n if (variant === undefined) {\n return (\n <div\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n style={style}\n >\n <table {...tableProps}>{children}</table>\n {pagination}\n </div>\n );\n }\n\n return (\n <Card\n className={cn(componentClassName, className)}\n data-table-container=\"card\"\n data-testid={componentClassName}\n style={style}\n variant={variant}\n colorScheme=\"neutralStrong\"\n paddingNone\n >\n <table ref={ref} {...tableProps}>\n {children}\n </table>\n {pagination}\n </Card>\n );\n});\n\nTable.displayName = COMPONENT_NAME;\n"],"mappings":";;wMAOA,OAAS,cAAAA,MAAkB,QAyBrB,OAKE,OAAAC,EALF,QAAAC,MAAA,oBAtBN,IAAMC,EAAiB,QACjBC,EAAqBC,EAAiBF,CAAc,EAa7CG,EAAQN,EAAqC,CAACO,EAAOC,IAAQ,CACxE,GAAM,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,QAAAC,EAAS,WAAAC,EAAY,GAAGC,CAAW,EAAIC,EACzER,EACAS,CACF,EAEA,OAAIJ,IAAY,OAEZV,EAAC,OACC,UAAWe,EAAGb,EAAoBK,CAAS,EAC3C,cAAaL,EACb,MAAOM,EAEP,UAAAT,EAAC,SAAO,GAAGa,EAAa,SAAAH,EAAS,EAChCE,GACH,EAKFX,EAACgB,EAAA,CACC,UAAWD,EAAGb,EAAoBK,CAAS,EAC3C,uBAAqB,OACrB,cAAaL,EACb,MAAOM,EACP,QAASE,EACT,YAAY,gBACZ,YAAW,GAEX,UAAAX,EAAC,SAAM,IAAKO,EAAM,GAAGM,EAClB,SAAAH,EACH,EACCE,GACH,CAEJ,CAAC,EAEDP,EAAM,YAAcH","names":["forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Table","props","ref","className","style","children","variant","pagination","tableProps","extractProps","marginPropDefs","cn","Card"]}
|
package/dist/chunk-6WCPGWVO.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkIWJJCJLEcjs = require('./chunk-IWJJCJLE.cjs');var _chunkDLU27EEOcjs = require('./chunk-DLU27EEO.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var v="Switch",o=_chunk4Q432K4Wcjs.b.call(void 0, v),g= exports.a =_react.forwardRef.call(void 0, ({...C},N)=>{let{className:P,label:r,id:R,"aria-labelledby":T,disabled:e,onCheckedChange:y,...k}=_chunkZPJNQBTNcjs.a.call(void 0, C,_chunkIWJJCJLEcjs.a,_chunkOB7O3UFLcjs.a),{id:l,labelId:c}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:R,prefix:"switch"}),a=!!r,I=_react.useRef.call(void 0, null),t=N||I;return _react.useEffect.call(void 0, ()=>{let s=m=>{m.preventDefault()},i=null;return t&&typeof t=="object"&&t.current&&(i=t.current),i&&e&&i.addEventListener("click",s),()=>{i&&i.removeEventListener("click",s)}},[t,e]),_jsxruntime.jsxs.call(void 0, "div",{"aria-disabled":e||void 0,className:o,"data-testid":o,children:[a?_jsxruntime.jsx.call(void 0, _chunkDLU27EEOcjs.a,{as:"label",size:"lg",id:c,htmlFor:l,children:r}):null,_jsxruntime.jsx.call(void 0, _radixui.Switch.Root,{ref:t,className:_chunkONNSZMWFcjs.a.call(void 0, `${o}Root`,P),id:l,"aria-labelledby":_nullishCoalesce(T, () => ((a?c:void 0))),"aria-disabled":e||void 0,"data-disabled":e||void 0,onCheckedChange:e?void 0:y,...k,children:_jsxruntime.jsxs.call(void 0, _radixui.Switch.Thumb,{className:`${o}Thumb`,children:[_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{className:`${o}CloseIcon`}),_jsxruntime.jsx.call(void 0, _hearthreacticons.TickSmallIcon,{className:`${o}TickIcon`})]})})]})});g.displayName=v;exports.a = g;
|
|
4
|
-
//# sourceMappingURL=chunk-6WCPGWVO.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6WCPGWVO.cjs","../src/components/Switch/Switch.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Switch","forwardRef","props","forwardedRef","className","label","providedId","ariaLabelledby","disabled","onCheckedChange","switchProps","extractProps","switchPropDefs","marginPropDefs","id","labelId","useIds","showLabel","internalRef","useRef","switchRef","useEffect","handleClick","e","currentElement","jsxs","jsx","BodyText","SwitchPrimitive","cn"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCIpP,wEAEI,8BAIA,+CAkEtC,IA/DFA,CAAAA,CAAiB,QAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAASC,+BAAAA,CAAwC,CAAE,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAAiB,CAC3F,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,iBAAA,CAAmBC,CAAAA,CACnB,QAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaT,CAAOU,mBAAAA,CAAgBC,mBAAc,CAAA,CAChD,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAV,CAAAA,CAAY,MAAA,CAAQ,QAAS,CAAC,CAAA,CACzDW,CAAAA,CAAY,CAAC,CAACZ,CAAAA,CACda,CAAAA,CAAcC,2BAAAA,IAAqC,CAAA,CACnDC,CAAAA,CAAYjB,CAAAA,EAAgBe,CAAAA,CAKlC,OAAAG,8BAAAA,CAAU,CAAA,EAAM,CACd,IAAMC,CAAAA,CAAeC,CAAAA,EAAkB,CACrCA,CAAAA,CAAE,cAAA,CAAe,CACnB,CAAA,CAGIC,CAAAA,CAA2C,IAAA,CAC/C,OAAIJ,CAAAA,EAAa,OAAOA,CAAAA,EAAc,QAAA,EAAYA,CAAAA,CAAU,OAAA,EAAA,CAG1DI,CAAAA,CADkBJ,CAAAA,CACS,OAAA,CAAA,CAGzBI,CAAAA,EAAkBhB,CAAAA,EACpBgB,CAAAA,CAAe,gBAAA,CAAiB,OAAA,CAASF,CAAW,CAAA,CAG/C,CAAA,CAAA,EAAM,CACPE,CAAAA,EACFA,CAAAA,CAAe,mBAAA,CAAoB,OAAA,CAASF,CAAW,CAE3D,CACF,CAAA,CAAG,CAACF,CAAAA,CAAWZ,CAAQ,CAAC,CAAA,CAGtBiB,8BAAAA,KAAC,CAAA,CACC,eAAA,CAAejB,CAAAA,EAAY,KAAA,CAAA,CAC3B,SAAA,CAAWV,CAAAA,CACX,aAAA,CAAaA,CAAAA,CAEZ,QAAA,CAAA,CAAAmB,CAAAA,CACCS,6BAAAA,mBAACC,CAAA,CAAS,EAAA,CAAG,OAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,EAAA,CAAIZ,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAClD,QAAA,CAAAT,CAAAA,CACH,CAAA,CACE,IAAA,CACJqB,6BAAAA,eAACE,CAAgB,IAAA,CAAhB,CACC,GAAA,CAAKR,CAAAA,CACL,SAAA,CAAWS,iCAAAA,CAAG,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6WCPGWVO.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { switchPropDefs } from './Switch.props';\nimport type { SwitchProps } from './Switch.props';\nimport { cn } from '../../helpers/cn';\nimport { Switch as SwitchPrimitive } from 'radix-ui';\nimport { extractProps } from '../../helpers/extract-props';\nimport { CloseSmallIcon, TickSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport type { ComponentRef, RefObject } from 'react';\n\nconst COMPONENT_NAME = 'Switch';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SwitchElement = ComponentRef<'button'>;\n\n/**\n * Use Switch to let users toggle a single setting on or off immediately,\n * such as activating or deactivating a feature. For choosing between more\n * than two related options, use ToggleGroup or SegmentedControl instead.\n * Always provide a `label`, or otherwise label the component for screen\n * reader users if the visible `label` prop isn't used.\n *\n * @summary A toggle control for switching a single setting on or off.\n */\nexport const Switch = forwardRef<SwitchElement, SwitchProps>(({ ...props }, forwardedRef) => {\n const {\n className,\n label,\n id: providedId,\n 'aria-labelledby': ariaLabelledby,\n disabled,\n onCheckedChange,\n ...switchProps\n } = extractProps(props, switchPropDefs, marginPropDefs);\n const { id, labelId } = useIds({ providedId, prefix: 'switch' });\n const showLabel = !!label;\n const internalRef = useRef<HTMLButtonElement | null>(null);\n const switchRef = forwardedRef || internalRef;\n\n // We're using aria-disabled rather than disabled, so that the element can\n // still be focused with a keyboard. Therefore we need to prevent the\n // internal button from being clickable when the component is disabled.\n useEffect(() => {\n const handleClick = (e: MouseEvent) => {\n e.preventDefault();\n };\n\n // Get the ref value and ensure proper typing\n let currentElement: HTMLButtonElement | null = null;\n if (switchRef && typeof switchRef === 'object' && switchRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = switchRef as RefObject<HTMLButtonElement>;\n currentElement = refObject.current;\n }\n\n if (currentElement && disabled) {\n currentElement.addEventListener('click', handleClick);\n }\n\n return () => {\n if (currentElement) {\n currentElement.removeEventListener('click', handleClick);\n }\n };\n }, [switchRef, disabled]);\n\n return (\n <div\n aria-disabled={disabled || undefined}\n className={componentClassName}\n data-testid={componentClassName}\n >\n {showLabel ? (\n <BodyText as=\"label\" size=\"lg\" id={labelId} htmlFor={id}>\n {label}\n </BodyText>\n ) : null}\n <SwitchPrimitive.Root\n ref={switchRef}\n className={cn(`${componentClassName}Root`, className)}\n id={id}\n aria-labelledby={ariaLabelledby ?? (showLabel ? labelId : undefined)}\n aria-disabled={disabled || undefined}\n data-disabled={disabled || undefined}\n onCheckedChange={disabled ? undefined : onCheckedChange}\n {...switchProps}\n >\n <SwitchPrimitive.Thumb className={`${componentClassName}Thumb`}>\n <CloseSmallIcon className={`${componentClassName}CloseIcon`} />\n <TickSmallIcon className={`${componentClassName}TickIcon`} />\n </SwitchPrimitive.Thumb>\n </SwitchPrimitive.Root>\n </div>\n );\n});\n\nSwitch.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-B2HYTGSB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{b as o}from"./chunk-PDEVCIQ3.js";import{Toast as r}from"radix-ui";import{jsx as d,jsxs as T}from"react/jsx-runtime";var p="ToastProvider",P=({children:i,duration:t=5e3,viewportLabel:e,viewportHotkey:s,...a})=>T(r.Provider,{...a,duration:t,swipeDirection:"down",swipeThreshold:50,children:[i,d(r.Viewport,{className:o("ToastViewport"),label:e,hotkey:s})]});P.displayName=p;export{P as a};
|
|
4
|
-
//# sourceMappingURL=chunk-B2HYTGSB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Toast/ToastProvider.tsx"],"sourcesContent":["import { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ToastProviderProps } from './ToastProvider.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\n\nconst COMPONENT_NAME = 'ToastProvider';\n\n/**\n * Use ToastProvider to wrap the part of the app where `Toast` components\n * should render, providing the context and viewport they mount into.\n *\n * @summary Provides context and a mount point for Toast components.\n */\nexport const ToastProvider = ({\n children,\n duration = 5000,\n viewportLabel,\n viewportHotkey,\n ...props\n}: ToastProviderProps) => {\n return (\n <ToastPrimitive.Provider\n {...props}\n duration={duration}\n swipeDirection=\"down\"\n swipeThreshold={50}\n >\n {children}\n <ToastPrimitive.Viewport\n className={withGlobalPrefix('ToastViewport')}\n label={viewportLabel}\n hotkey={viewportHotkey}\n />\n </ToastPrimitive.Provider>\n );\n};\nToastProvider.displayName = COMPONENT_NAME;\n"],"mappings":";;wCAAA,OAAS,SAASA,MAAsB,WAoBpC,OAOE,OAAAC,EAPF,QAAAC,MAAA,oBAhBJ,IAAMC,EAAiB,gBAQVC,EAAgB,CAAC,CAC5B,SAAAC,EACA,SAAAC,EAAW,IACX,cAAAC,EACA,eAAAC,EACA,GAAGC,CACL,IAEIP,EAACQ,EAAe,SAAf,CACE,GAAGD,EACJ,SAAUH,EACV,eAAe,OACf,eAAgB,GAEf,UAAAD,EACDJ,EAACS,EAAe,SAAf,CACC,UAAWC,EAAiB,eAAe,EAC3C,MAAOJ,EACP,OAAQC,EACV,GACF,EAGJJ,EAAc,YAAcD","names":["ToastPrimitive","jsx","jsxs","COMPONENT_NAME","ToastProvider","children","duration","viewportLabel","viewportHotkey","props","ToastPrimitive","withGlobalPrefix"]}
|
package/dist/chunk-BDJRXINR.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as r}from"./chunk-TJHI42VN.js";import{a as v}from"./chunk-ZL7L2WXW.js";import{a as y}from"./chunk-UDOSOH3G.js";import{a as h}from"./chunk-L7XVQXSE.js";import{a as N}from"./chunk-CANHKUAY.js";import{a}from"./chunk-MD3VAECH.js";import{a as S}from"./chunk-DAEIJDP7.js";import{a as P}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-7X24J4CX.js";import{a as C}from"./chunk-KGEVWEVL.js";import{a as x}from"./chunk-J3AJBV4B.js";import{b as l}from"./chunk-PDEVCIQ3.js";import{Combobox as e}from"@base-ui/react/combobox";import{CloseSmallIcon as H,ExpandSmallIcon as _,SearchMediumIcon as J}from"@utilitywarehouse/hearth-react-icons";import{ScrollArea as n}from"radix-ui";import{jsx as o,jsxs as m}from"react/jsx-runtime";var T="Combobox",i=l(T);function K(s){let{className:g,children:p,triggerOnlyOnType:c,validationStatus:A,validationText:O,label:B,labelVariant:V,helperText:E,id:F,disabled:t,required:w,noOptionsFoundText:M,statusText:d,loading:R,hideLabel:L,placeholder:U,...$}=C(s,P),{id:u,labelId:k,helperTextId:q,validationTextId:z}=I({providedId:F,prefix:"combobox"}),f=!t,D={id:u,labelId:k,helperTextId:q,validationTextId:z,label:B,labelVariant:V,helperText:E,validationText:f?O:void 0,validationStatus:f?A:void 0,required:w,hideLabel:L},G=!!d||!!s.items||!!p;return o(y,{className:x(i,g),"data-disabled":t?"":void 0,"data-testid":i,...D,children:m(e.Root,{openOnInputClick:!c,...$,children:[o(e.Input,{render:m(v,{id:u,disabled:t,placeholder:U,children:[o(e.Trigger,{disabled:t,render:o(r,{placement:"prefix",asChild:!0,children:o(a,{type:"button",label:"Open popup",disabled:t,children:o(J,{})})})}),R?o(r,{placement:"suffix",children:o(S,{size:"xs",color:"primary"})}):null,o(e.Clear,{render:o(r,{placement:"suffix",asChild:!0,children:o(a,{type:"button",label:"Clear selection",disabled:t,children:o(H,{})})})}),c?null:o(e.Trigger,{disabled:t,render:o(r,{placement:"suffix",asChild:!0,children:o(a,{type:"button",label:"Open popup",disabled:t,children:o(_,{})})})})]})}),G?o(e.Portal,{children:o(e.Positioner,{side:"bottom",sideOffset:16,align:"start",alignOffset:-47,children:m(e.Popup,{className:`${i}Popup`,children:[d?o(e.Status,{className:`${i}StatusText`,children:d}):null,s.items?o(h,{className:`${i}Empty`,children:M}):null,m(n.Root,{className:l("ScrollAreaRoot"),type:"auto",children:[o(n.Viewport,{className:l("ScrollAreaViewport"),children:o(e.List,{className:`${i}List`,children:p||(b=>o(N,{value:b,children:b},b))})}),o(n.Scrollbar,{className:l("ScrollAreaScrollbar"),orientation:"vertical",children:o(n.Thumb,{className:l("ScrollAreaThumb")})})]})]})})}):null]})})}K.displayName=T;export{K as a};
|
|
4
|
-
//# sourceMappingURL=chunk-BDJRXINR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Combobox/Combobox.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { useIds } from '../../hooks/use-ids';\nimport { FormField } from '../FormField/FormField';\nimport type { ComboboxProps } from './Combobox.props';\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';\nimport { InputBase } from '../InputBase/InputBase';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport {\n CloseSmallIcon,\n ExpandSmallIcon,\n SearchMediumIcon,\n} from '@utilitywarehouse/hearth-react-icons';\nimport { ComboboxItem } from './ComboboxItem';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { ComboboxEmpty } from './ComboboxEmpty';\nimport { Spinner } from '../Spinner/Spinner';\n\nconst COMPONENT_NAME = 'Combobox';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use Combobox to let users type to filter results and select from a\n * predefined list of options. Pass options via the `items` prop to have them\n * rendered automatically, or render `ComboboxItem` children yourself for more\n * control. Set `triggerOnlyOnType` when the user must type before options are\n * surfaced (e.g. a postcode or address lookup); leave it unset when there is a\n * predefined list to choose from by clicking.\n *\n * @summary A text input that lets users filter and select from a list of options.\n */\nexport function Combobox<Value, Multiple extends boolean | undefined = false>(\n props: ComboboxProps<Value, Multiple>\n) {\n const {\n className,\n children,\n triggerOnlyOnType,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n required,\n noOptionsFoundText,\n statusText,\n loading,\n hideLabel,\n placeholder,\n ...comboboxProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'combobox',\n });\n\n const showValidation = !disabled;\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n hideLabel,\n };\n\n const popupHasContent = Boolean(statusText) || Boolean(props.items) || Boolean(children);\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <ComboboxPrimitive.Root openOnInputClick={!triggerOnlyOnType} {...comboboxProps}>\n <ComboboxPrimitive.Input\n render={\n <InputBase id={id} disabled={disabled} placeholder={placeholder}>\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"prefix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <SearchMediumIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n <ComboboxPrimitive.Clear\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Clear selection\" disabled={disabled}>\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n {triggerOnlyOnType ? null : (\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <ExpandSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n )}\n </InputBase>\n }\n />\n\n {popupHasContent ? (\n <ComboboxPrimitive.Portal>\n <ComboboxPrimitive.Positioner\n side=\"bottom\"\n sideOffset={16}\n align=\"start\"\n alignOffset={-47}\n >\n <ComboboxPrimitive.Popup className={`${componentClassName}Popup`}>\n {statusText ? (\n <ComboboxPrimitive.Status className={`${componentClassName}StatusText`}>\n {statusText}\n </ComboboxPrimitive.Status>\n ) : null}\n {props.items ? (\n <ComboboxEmpty className={`${componentClassName}Empty`}>\n {noOptionsFoundText}\n </ComboboxEmpty>\n ) : null}\n <ScrollAreaPrimitive.Root\n className={withGlobalPrefix('ScrollAreaRoot')}\n type=\"auto\"\n >\n <ScrollAreaPrimitive.Viewport className={withGlobalPrefix('ScrollAreaViewport')}>\n <ComboboxPrimitive.List className={`${componentClassName}List`}>\n {children\n ? children\n : (item: string) => (\n <ComboboxItem key={item} value={item}>\n {item}\n </ComboboxItem>\n )}\n </ComboboxPrimitive.List>\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaPrimitive.Scrollbar\n className={withGlobalPrefix('ScrollAreaScrollbar')}\n orientation=\"vertical\"\n >\n <ScrollAreaPrimitive.Thumb className={withGlobalPrefix('ScrollAreaThumb')} />\n </ScrollAreaPrimitive.Scrollbar>\n </ScrollAreaPrimitive.Root>\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n ) : null}\n </ComboboxPrimitive.Root>\n </FormField>\n );\n}\n\nCombobox.displayName = COMPONENT_NAME;\n"],"mappings":";;2dASA,OAAS,YAAYA,MAAyB,0BAG9C,OACE,kBAAAC,EACA,mBAAAC,EACA,oBAAAC,MACK,uCAEP,OAAS,cAAcC,MAA2B,WA0EtC,OAMU,OAAAC,EANV,QAAAC,MAAA,oBArEZ,IAAMC,EAAiB,WACjBC,EAAqBC,EAAiBF,CAAc,EAYnD,SAASG,EACdC,EACA,CACA,GAAM,CACJ,UAAAC,EACA,SAAAC,EACA,kBAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,GAAIC,EACJ,SAAAC,EACA,SAA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mallIcon","ExpandSmallIcon","SearchMediumIcon","ScrollAreaPrimitive","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Combobox","props","className","children","triggerOnlyOnType","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","required","noOptionsFoundText","statusText","loading","hideLabel","placeholder","comboboxProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","popupHasContent","FormField","cn","ComboboxPrimitive","InputBase","InputSlot","UnstyledIconButton","SearchMediumIcon","Spinner","CloseSmallIcon","ExpandSmallIcon","ComboboxEmpty","ScrollAreaPrimitive","item","ComboboxItem"]}
|
package/dist/chunk-BVXR3BGZ.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkTTW4NON4cjs = require('./chunk-TTW4NON4.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkWFVKT4MGcjs = require('./chunk-WFVKT4MG.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var f="SearchInput",a=_chunk4Q432K4Wcjs.b.call(void 0, f),L= exports.a =_react.forwardRef.call(void 0, ({className:I,disabled:p,value:o,onClear:r,loading:d,hideLabel:h=!0,helperText:S,id:y,...x},b)=>{let e=_react.useRef.call(void 0, null),E=_useMergedRefs.useMergedRefs.call(void 0, b,e),M=_react.useCallback.call(void 0, N=>{typeof r!="function"||N.button!==0||(r(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,r]),{id:B}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:y,prefix:"search-input"});return _jsxruntime.jsxs.call(void 0, _chunkTTW4NON4cjs.a,{ref:E,className:_chunkONNSZMWFcjs.a.call(void 0, a,I),type:"search",enterKeyHint:"search",disabled:p,hideLabel:h,helperText:S,value:o,id:B,"data-testid":a,...x,children:[_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})}),d?_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkHHKQ3ZBDcjs.a,{size:"xs",color:"primary"})}):null,o!==void 0&&String(o).length>0?_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkWFVKT4MGcjs.a,{type:"button",label:"clear search",onClick:M,disabled:p,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})}):null]})});L.displayName=f;exports.a = L;
|
|
4
|
-
//# sourceMappingURL=chunk-BVXR3BGZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-BVXR3BGZ.cjs","../src/components/SearchInput/SearchInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SearchInput","forwardRef","className","disabled","value","onClear","loading","hideLabel","helperText","providedId","props","forwardedRef","internalRef","useRef","inputRef","useMergedRefs","handleClear","useCallback","event","id","useIds","jsxs","TextInput","cn","jsx","InputSlot","SearchMediumIcon","Spinner","UnstyledIconButton","CloseSmallIcon"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wECO7O,8BAED,6DAGlB,+CAkDxB,IAhDAA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqB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,QAAA,CAAA,CAAAc,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,kCAACE,CAAA,CAAA,CAAiB,CAAA,CACpB,CAAA,CACCpB,CAAAA,CACCkB,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,mBAACG,CAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,KAAA,CAAM,SAAA,CAAU,CAAA,CACrC,CAAA,CACE,IAAA,CACHvB,CAAAA,GAAU,KAAA,CAAA,EAAa,MAAA,CAAOA,CAAK,CAAA,CAAE,MAAA,CAAS,CAAA,CAC7CoB,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,mBAACI,CAAA,CACC,IAAA,CAAK,QAAA,CACL,KAAA,CAAM,cAAA,CACN,OAAA,CAASZ,CAAAA,CACT,QAAA,CAAUb,CAAAA,CAEV,QAAA,CAAAqB,6BAAAA,gCAACK,CAAA,CAAA,CAAe,CAAA,CAClB,CAAA,CACF,CAAA,CACE,IAAA,CAAA,CACN,CAEJ,CACF,CAAA,CAEA7B,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-BVXR3BGZ.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport type { SearchInputProps } from './SearchInput.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { CloseSmallIcon, SearchMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport { forwardRef, useRef, useCallback } from 'react';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport type { MouseEvent } from 'react';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'SearchInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use SearchInput to let users enter a keyword or phrase to search content\n * related to the context it's placed in. Pass an `onClear` handler to show a\n * clear button, and set `loading` to display a spinner while results are\n * fetched. On desktop and tablet it must be paired with a button to trigger\n * the search; on mobile the keyboard's search action can trigger it instead.\n * For general text entry use TextInput instead.\n *\n * @summary An input for entering a search keyword or phrase.\n */\nexport const SearchInput = forwardRef<InputBaseElement, SearchInputProps>(\n (\n {\n className,\n disabled,\n value,\n onClear,\n loading,\n hideLabel = true,\n helperText,\n id: providedId,\n ...props\n },\n forwardedRef\n ) => {\n const internalRef = useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const handleClear = useCallback(\n (event: MouseEvent<HTMLButtonElement>) => {\n if (typeof onClear !== 'function' || event.button !== 0) {\n return;\n }\n onClear();\n\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n internalRef.current.focus();\n }\n },\n [internalRef, onClear]\n );\n\n const { id } = useIds({ providedId, prefix: 'search-input' });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"search\"\n enterKeyHint=\"search\"\n disabled={disabled}\n hideLabel={hideLabel}\n helperText={helperText}\n value={value}\n id={id}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <SearchMediumIcon />\n </InputSlot>\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n {value !== undefined && String(value).length > 0 ? (\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"clear search\"\n onClick={handleClear}\n disabled={disabled}\n >\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n ) : null}\n </TextInput>\n );\n }\n);\n\nSearchInput.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-BXDF7Z4R.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as c}from"./chunk-LRFEHB5Y.js";import{a as n}from"./chunk-TJHI42VN.js";import{a as i}from"./chunk-MD3VAECH.js";import{a as s}from"./chunk-DAEIJDP7.js";import{a as m}from"./chunk-7X24J4CX.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as l}from"./chunk-PDEVCIQ3.js";import{CloseSmallIcon as T,SearchMediumIcon as R}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as C,useRef as P,useCallback as g}from"react";import{useMergedRefs as H}from"@base-ui/utils/useMergedRefs";import{jsx as t,jsxs as k}from"react/jsx-runtime";var f="SearchInput",a=l(f),L=C(({className:I,disabled:p,value:o,onClear:r,loading:d,hideLabel:h=!0,helperText:S,id:y,...x},b)=>{let e=P(null),E=H(b,e),M=g(N=>{typeof r!="function"||N.button!==0||(r(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,r]),{id:B}=m({providedId:y,prefix:"search-input"});return k(c,{ref:E,className:u(a,I),type:"search",enterKeyHint:"search",disabled:p,hideLabel:h,helperText:S,value:o,id:B,"data-testid":a,...x,children:[t(n,{placement:"prefix",children:t(R,{})}),d?t(n,{placement:"suffix",children:t(s,{size:"xs",color:"primary"})}):null,o!==void 0&&String(o).length>0?t(n,{placement:"suffix",children:t(i,{type:"button",label:"clear search",onClick:M,disabled:p,children:t(T,{})})}):null]})});L.displayName=f;export{L as a};
|
|
4
|
-
//# sourceMappingURL=chunk-BXDF7Z4R.js.map
|
package/dist/chunk-C3INLFOU.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var c="Table",e=_chunk4Q432K4Wcjs.b.call(void 0, c),P= exports.a =_react.forwardRef.call(void 0, (N,T)=>{let{className:a,style:r,children:o,variant:l,pagination:n,...m}=_chunkZPJNQBTNcjs.a.call(void 0, N,_chunkOB7O3UFLcjs.a);return l===void 0?_jsxruntime.jsxs.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, e,a),"data-testid":e,style:r,children:[_jsxruntime.jsx.call(void 0, "table",{...m,children:o}),n]}):_jsxruntime.jsxs.call(void 0, _chunkGS47QEXRcjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, e,a),"data-table-container":"card","data-testid":e,style:r,variant:l,colorScheme:"neutralStrong",paddingNone:!0,children:[_jsxruntime.jsx.call(void 0, "table",{ref:T,...m,children:o}),n]})});P.displayName=c;exports.a = P;
|
|
4
|
-
//# sourceMappingURL=chunk-C3INLFOU.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-C3INLFOU.cjs","../src/components/Table/Table.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Table","forwardRef","props","ref","className","style","children","variant","pagination","tableProps","extractProps","marginPropDefs","jsxs","cn","jsx","Card"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCKjL,+CAyBrB,IAtBAA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAAQC,+BAAAA,CAAsCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACxE,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,UAAA,CAAAC,CAAAA,CAAY,GAAGC,CAAW,CAAA,CAAIC,iCAAAA,CACzER,CACAS,mBACF,CAAA,CAEA,OAAIJ,CAAAA,GAAY,KAAA,CAAA,CAEZK,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGf,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACb,KAAA,CAAOO,CAAAA,CAEP,QAAA,CAAA,CAAAS,6BAAAA,OAAC,CAAA,CAAO,GAAGL,CAAAA,CAAa,QAAA,CAAAH,CAAAA,CAAS,CAAA,CAChCE,CAAAA,CAAAA,CACH,CAAA,CAKFI,8BAAAA,mBAACG,CAAA,CACC,SAAA,CAAWF,iCAAAA,CAAGf,CAAoBM,CAAS,CAAA,CAC3C,sBAAA,CAAqB,MAAA,CACrB,aAAA,CAAaN,CAAAA,CACb,KAAA,CAAOO,CAAAA,CACP,OAAA,CAASE,CAAAA,CACT,WAAA,CAAY,eAAA,CACZ,WAAA,CAAW,CAAA,CAAA,CAEX,QAAA,CAAA,CAAAO,6BAAAA,OAAC,CAAA,CAAM,GAAA,CAAKX,CAAAA,CAAM,GAAGM,CAAAA,CAClB,QAAA,CAAAH,CAAAA,CACH,CAAA,CACCE,CAAAA,CAAAA,CACH,CAEJ,CAAC,CAAA,CAEDR,CAAAA,CAAM,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-C3INLFOU.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\n\nimport type { TableProps } from './Table.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { Card } from '../Card/Card';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'Table';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TableElement = ComponentRef<'table'>;\n\n/**\n * Use Table to arrange data in rows and columns, to communicate relationships\n * between content and to display references, comparisons, and choices. Compose\n * it with TableHeader, TableBody, TableRow, TableHeaderCell, and TableCell.\n * Pass `variant` to wrap the table in a Card container; omit it for a minimal,\n * unwrapped table.\n *\n * @summary A component for arranging data in rows and columns.\n */\nexport const Table = forwardRef<TableElement, TableProps>((props, ref) => {\n const { className, style, children, variant, pagination, ...tableProps } = extractProps(\n props,\n marginPropDefs\n );\n\n if (variant === undefined) {\n return (\n <div\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n style={style}\n >\n <table {...tableProps}>{children}</table>\n {pagination}\n </div>\n );\n }\n\n return (\n <Card\n className={cn(componentClassName, className)}\n data-table-container=\"card\"\n data-testid={componentClassName}\n style={style}\n variant={variant}\n colorScheme=\"neutralStrong\"\n paddingNone\n >\n <table ref={ref} {...tableProps}>\n {children}\n </table>\n {pagination}\n </Card>\n );\n});\n\nTable.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-CAZQKOY3.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkS3DGCUDLcjs = require('./chunk-S3DGCUDL.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="FormGroupBase",n=_chunk4Q432K4Wcjs.b.call(void 0, N),$= exports.a =_react.forwardRef.call(void 0, (V,C)=>{let{children:E,className:H,id:w,label:d,labelVariant:D="body",helperText:r,validationText:i,validationStatus:e,validationPlacement:p="top",disabled:l,"aria-labelledby":M,"aria-describedby":R,"aria-errormessage":f,...L}=_chunkZPJNQBTNcjs.a.call(void 0, V,_chunkOB7O3UFLcjs.a),{id:O,labelId:u,helperTextId:b,validationTextId:t}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:w,prefix:"fieldset"}),A=!!d,c=!!r,a=!!(e&&i),x=a&&e==="invalid",T=_chunkHIF6HKZ3cjs.a.call(void 0, R||r?b:void 0,f||a?t:void 0),S={hasGroupHelperText:c,hasGroupValidationText:e!==void 0&&i!==void 0,"aria-describedby":T};return _jsxruntime.jsxs.call(void 0, "fieldset",{ref:C,className:_chunkONNSZMWFcjs.a.call(void 0, n,H),"data-testid":n,...L,disabled:l,id:O,"data-disabled":l?"":void 0,"aria-errormessage":f||x?t:void 0,"aria-labelledby":_nullishCoalesce(M, () => ((d?u:void 0))),"aria-invalid":x,"aria-describedby":T,"data-validation-status":e||void 0,children:[A?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "legend",{id:u,"data-label-variant":D,children:d}),c||a?_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",alignItems:"start",className:`${n}HelperTextContainer`,children:[r?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:b,disabled:l,children:r}):null,a&&p==="top"?_jsxruntime.jsx.call(void 0, _chunkS3DGCUDLcjs.a,{id:t,status:e,children:i}):null]}):null]}):null,_jsxruntime.jsx.call(void 0, _chunkWSD52THLcjs.b,{value:S,children:E}),a&&p==="bottom"?_jsxruntime.jsx.call(void 0, _chunkS3DGCUDLcjs.a,{id:t,status:e,children:i}):null]})});$.displayName=N;exports.a = $;
|
|
4
|
-
//# sourceMappingURL=chunk-CAZQKOY3.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-CAZQKOY3.cjs","../src/components/FormGroupBase/FormGroupBase.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","FormGroupBase","forwardRef","props","ref","children","className","providedId","label","labelVariant","helperText","validationText","validationStatus","validationPlacement","disabled","ariaLabelledby","ariaDescribedby","ariaErrorMessage","fieldsetProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","hasLabel","hasHelperText","showValidationText","showInvalid","ariaDescribedbyValue","mergeIds","value","jsxs","cn","Fragment","jsx","Flex"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA9X,+CAsEnB,IAxDFA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAgBC,+BAAAA,CAAsDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAChG,GAAM,CACJ,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CAAe,MAAA,CACf,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,mBAAA,CAAAC,CAAAA,CAAsB,KAAA,CACtB,QAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,kBAAA,CAAoBC,CAAAA,CACpB,mBAAA,CAAqBC,CAAAA,CACrB,GAAGC,CACL,CAAA,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AAA,CAC/D,cAAA,CAAcO,CAAAA,CACd,kBAAA,CAAkBC,CAAAA,CAClB,wBAAA,CAAwBlB,CAAAA,EAAsC,KAAA,CAAA,CAE7D,QAAA,CAAA,CAAAc,CAAAA,CACCO,8BAAAA,oBAAAE,CAAA,CACE,QAAA,CAAA,CAAAC,6BAAAA,QAAC,CAAA,CAAO,EAAA,CAAId,CAAAA,CAAS,oBAAA,CAAoBb,CAAAA,CACtC,QAAA,CAAAD,CAAAA,CACH,CAAA,CACCmB,CAAAA,EAAiBC,CAAAA,CAChBK,8BAAAA,mBAACI,CAAA,CACC,SAAA,CAAU,QAAA,CACV,UAAA,CAAW,OAAA,CACX,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-CAZQKOY3.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Flex } from '../Flex/Flex';\nimport { HelperText } from '../HelperText/HelperText';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { cn } from '../../helpers/cn';\nimport type { FormGroupBaseProps } from './FormGroupBase.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormGroupBaseProvider } from './FormGroupBase.context';\n\nconst COMPONENT_NAME = 'FormGroupBase';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype FormGroupBaseElement = ComponentRef<'fieldset'>;\n\nexport const FormGroupBase = forwardRef<FormGroupBaseElement, FormGroupBaseProps>((props, ref) => {\n const {\n children,\n className,\n id: providedId,\n label,\n labelVariant = 'body',\n helperText,\n validationText,\n validationStatus,\n validationPlacement = 'top',\n disabled,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-errormessage': ariaErrorMessage,\n ...fieldsetProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'fieldset',\n });\n const hasLabel = Boolean(label);\n const hasHelperText = Boolean(helperText);\n const showValidationText = Boolean(validationStatus && validationText);\n const showInvalid = showValidationText && validationStatus === 'invalid';\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby || !!helperText ? helperTextId : undefined,\n ariaErrorMessage || showValidationText ? validationTextId : undefined\n );\n const value = {\n hasGroupHelperText: hasHelperText,\n hasGroupValidationText: Boolean(validationStatus !== undefined && validationText !== undefined),\n 'aria-describedby': ariaDescribedbyValue,\n };\n\n return (\n <fieldset\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...fieldsetProps}\n disabled={disabled}\n id={id}\n data-disabled={disabled ? '' : undefined}\n aria-errormessage={ariaErrorMessage || showInvalid ? validationTextId : undefined}\n aria-labelledby={ariaLabelledby ?? (Boolean(label) ? labelId : undefined)}\n aria-invalid={showInvalid}\n aria-describedby={ariaDescribedbyValue}\n data-validation-status={validationStatus ? validationStatus : undefined}\n >\n {hasLabel ? (\n <>\n <legend id={labelId} data-label-variant={labelVariant}>\n {label}\n </legend>\n {hasHelperText || showValidationText ? (\n <Flex\n direction=\"column\"\n alignItems=\"start\"\n className={`${componentClassName}HelperTextContainer`}\n >\n {helperText ? (\n <HelperText id={helperTextId} disabled={disabled}>\n {helperText}\n </HelperText>\n ) : null}\n {showValidationText && validationPlacement === 'top' ? (\n <ValidationText id={validationTextId} status={validationStatus}>\n {validationText}\n </ValidationText>\n ) : null}\n </Flex>\n ) : null}\n </>\n ) : null}\n <FormGroupBaseProvider value={value}>{children}</FormGroupBaseProvider>\n {showValidationText && validationPlacement === 'bottom' ? (\n <ValidationText id={validationTextId} status={validationStatus}>\n {validationText}\n </ValidationText>\n ) : null}\n </fieldset>\n );\n});\n\nFormGroupBase.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-CQ2YNOHB.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{b as I}from"./chunk-HY32GRZP.js";import{a as s}from"./chunk-QQR2AVHA.js";import{a as h}from"./chunk-JWPVXXER.js";import{a as F}from"./chunk-4MNQRAHO.js";import{a as G}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as g}from"./chunk-VKE2TXPE.js";import{a as y}from"./chunk-KGEVWEVL.js";import{a as v}from"./chunk-J3AJBV4B.js";import{b as B}from"./chunk-PDEVCIQ3.js";import{forwardRef as _}from"react";import{Fragment as k,jsx as o,jsxs as m}from"react/jsx-runtime";var N="FormGroupBase",n=B(N),$=_((V,C)=>{let{children:E,className:H,id:w,label:d,labelVariant:D="body",helperText:r,validationText:i,validationStatus:e,validationPlacement:p="top",disabled:l,"aria-labelledby":M,"aria-describedby":R,"aria-errormessage":f,...L}=y(V,G),{id:O,labelId:u,helperTextId:b,validationTextId:t}=P({providedId:w,prefix:"fieldset"}),A=!!d,c=!!r,a=!!(e&&i),x=a&&e==="invalid",T=g(R||r?b:void 0,f||a?t:void 0),S={hasGroupHelperText:c,hasGroupValidationText:e!==void 0&&i!==void 0,"aria-describedby":T};return m("fieldset",{ref:C,className:v(n,H),"data-testid":n,...L,disabled:l,id:O,"data-disabled":l?"":void 0,"aria-errormessage":f||x?t:void 0,"aria-labelledby":M??(d?u:void 0),"aria-invalid":x,"aria-describedby":T,"data-validation-status":e||void 0,children:[A?m(k,{children:[o("legend",{id:u,"data-label-variant":D,children:d}),c||a?m(F,{direction:"column",alignItems:"start",className:`${n}HelperTextContainer`,children:[r?o(h,{id:b,disabled:l,children:r}):null,a&&p==="top"?o(s,{id:t,status:e,children:i}):null]}):null]}):null,o(I,{value:S,children:E}),a&&p==="bottom"?o(s,{id:t,status:e,children:i}):null]})});$.displayName=N;export{$ as a};
|
|
4
|
-
//# sourceMappingURL=chunk-CQ2YNOHB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/FormGroupBase/FormGroupBase.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Flex } from '../Flex/Flex';\nimport { HelperText } from '../HelperText/HelperText';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { cn } from '../../helpers/cn';\nimport type { FormGroupBaseProps } from './FormGroupBase.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormGroupBaseProvider } from './FormGroupBase.context';\n\nconst COMPONENT_NAME = 'FormGroupBase';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype FormGroupBaseElement = ComponentRef<'fieldset'>;\n\nexport const FormGroupBase = forwardRef<FormGroupBaseElement, FormGroupBaseProps>((props, ref) => {\n const {\n children,\n className,\n id: providedId,\n label,\n labelVariant = 'body',\n helperText,\n validationText,\n validationStatus,\n validationPlacement = 'top',\n disabled,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-errormessage': ariaErrorMessage,\n ...fieldsetProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'fieldset',\n });\n const hasLabel = Boolean(label);\n const hasHelperText = Boolean(helperText);\n const showValidationText = Boolean(validationStatus && validationText);\n const showInvalid = showValidationText && validationStatus === 'invalid';\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby || !!helperText ? helperTextId : undefined,\n ariaErrorMessage || showValidationText ? validationTextId : undefined\n );\n const value = {\n hasGroupHelperText: hasHelperText,\n hasGroupValidationText: Boolean(validationStatus !== undefined && validationText !== undefined),\n 'aria-describedby': ariaDescribedbyValue,\n };\n\n return (\n <fieldset\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...fieldsetProps}\n disabled={disabled}\n id={id}\n data-disabled={disabled ? '' : undefined}\n aria-errormessage={ariaErrorMessage || showInvalid ? validationTextId : undefined}\n aria-labelledby={ariaLabelledby ?? (Boolean(label) ? labelId : undefined)}\n aria-invalid={showInvalid}\n aria-describedby={ariaDescribedbyValue}\n data-validation-status={validationStatus ? validationStatus : undefined}\n >\n {hasLabel ? (\n <>\n <legend id={labelId} data-label-variant={labelVariant}>\n {label}\n </legend>\n {hasHelperText || showValidationText ? (\n <Flex\n direction=\"column\"\n alignItems=\"start\"\n className={`${componentClassName}HelperTextContainer`}\n >\n {helperText ? (\n <HelperText id={helperTextId} disabled={disabled}>\n {helperText}\n </HelperText>\n ) : null}\n {showValidationText && validationPlacement === 'top' ? (\n <ValidationText id={validationTextId} status={validationStatus}>\n {validationText}\n </ValidationText>\n ) : null}\n </Flex>\n ) : null}\n </>\n ) : null}\n <FormGroupBaseProvider value={value}>{children}</FormGroupBaseProvider>\n {showValidationText && validationPlacement === 'bottom' ? (\n <ValidationText id={validationTextId} status={validationStatus}>\n {validationText}\n </ValidationText>\n ) : null}\n </fieldset>\n );\n});\n\nFormGroupBase.displayName = COMPONENT_NAME;\n"],"mappings":";;gZAEA,OAAS,cAAAA,MAAkB,QAsEnB,mBAAAC,EACE,OAAAC,EAIE,QAAAC,MALJ,oBAxDR,IAAMC,EAAiB,gBACjBC,EAAqBC,EAAiBF,CAAc,EAI7CG,EAAgBC,EAAqD,CAACC,EAAOC,IAAQ,CAChG,GAAM,CACJ,SAAAC,EACA,UAAAC,EACA,GAAIC,EACJ,MAAAC,EACA,aAAAC,EAAe,OACf,WAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,oBAAAC,EAAsB,MACtB,SAAAC,EACA,kBAAmBC,EACnB,mBAAoBC,EACpB,oBAAqBC,EACrB,GAAGC,CACL,EAAIC,EAAahB,EAAOiB,CAAc,EAChC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAi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sxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","FormGroupBase","forwardRef","props","ref","children","className","providedId","label","labelVariant","helperText","validationText","validationStatus","validationPlacement","disabled","ariaLabelledby","ariaDescribedby","ariaErrorMessage","fieldsetProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","hasLabel","hasHelperText","showValidationText","showInvalid","ariaDescribedbyValue","mergeIds","value","cn","Flex","HelperText","ValidationText","FormGroupBaseProvider"]}
|
package/dist/chunk-CVKTRCKW.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as v}from"./chunk-ZL7L2WXW.js";import{a as y}from"./chunk-UDOSOH3G.js";import{a as b}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-7X24J4CX.js";import{a as P}from"./chunk-VKE2TXPE.js";import{a as c}from"./chunk-KGEVWEVL.js";import{a as f}from"./chunk-J3AJBV4B.js";import{b as u}from"./chunk-PDEVCIQ3.js";import{unstable_OneTimePasswordField as o}from"radix-ui";import{forwardRef as g}from"react";import{jsx as t,jsxs as G}from"react/jsx-runtime";var T="VerificationInput",n=u(T),A=g((N,O)=>{let{className:V,disabled:a,readOnly:d,label:x,labelVariant:F,helperText:s,validationText:l,validationStatus:e,required:R,id:w,"aria-describedby":h,...E}=c(N,b),{id:S,labelId:m,helperTextId:p,validationTextId:r}=I({providedId:w,prefix:"verification-input"}),i=!d&&!a,C={id:S,labelId:m,helperTextId:p,validationTextId:r,label:x,labelVariant:F,helperText:s,validationText:i?l:void 0,validationStatus:i?e:void 0,required:R},D=P(h,s?p:void 0,i&&l!==void 0?r:void 0);return t(y,{className:f(n,V),"data-disabled":a?"":void 0,"data-testid":n,...C,children:G(o.Root,{className:`${n}Root`,disabled:a,readOnly:d,"aria-labelledby":m,"aria-describedby":D,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?r:void 0,"data-validation-status":i?e:void 0,...E,children:[Array.from({length:6}).map((B,_)=>t(o.Input,{asChild:!0,children:t(v,{})},_)),t(o.HiddenInput,{ref:O})]})})});A.displayName=T;export{A as a};
|
|
4
|
-
//# sourceMappingURL=chunk-CVKTRCKW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/VerificationInput/VerificationInput.tsx"],"sourcesContent":["'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport type VerificationInputElement = ComponentRef<'input'>;\n\n/**\n * Use VerificationInput to let users enter a one-time password (OTP) sent via\n * SMS, email, or an authenticator app. For general text entry, use TextInput;\n * for passwords, use PasswordInput instead. A `label` is required.\n *\n * @summary An input for entering a one-time password (OTP).\n */\nexport const VerificationInput = forwardRef<VerificationInputElement, VerificationInputProps>(\n (props, ref) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <OneTimePasswordFieldPrimitive.Root\n className={`${componentClassName}Root`}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n }\n);\n\nVerificationInput.displayName = COMPONENT_NAME;\n"],"mappings":";;gUAEA,OAAS,iCAAiCA,MAAqC,WAU/E,OAAS,cAAAC,MAAkB,QAmEnB,OAaM,OAAAC,EAbN,QAAAC,MAAA,oBAhER,IAAMC,EAAiB,oBACjBC,EAAqBC,EAAiBF,CAAc,EAW7CG,EAAoBN,EAC/B,CAACO,EAAOC,IAAQ,CACd,GAAM,CACJ,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,SAAAC,EACA,GAAIC,EACJ,mBAAoBC,EACpB,GAAGC,CACL,EAAIC,EAAad,EAAOe,CAAc,EAEhC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAiB,EAAIC,EAAO,CAC7D,WAAAT,EACA,OAAQ,oBACV,CAAC,EAEKU,EAAyB,CAACjB,GAAY,CAACD,EAEvCmB,EAAiB,CACrB,GAAAN,EACA,QAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,MAAAd,EACA,aAAAC,EACA,WAAAC,EACA,eAAgBc,EAAiBb,EAAiB,OAClD,iBAAkBa,EAAiBZ,EAAmB,OACtD,SAAAC,CACF,EAEMa,EAAuBC,EAC3BZ,EACEL,EAAaW,EAAe,OAC9BG,GAAkBb,IAAmB,OAAYW,EAAmB,MACtE,EAIA,OACEzB,EAAC+B,EAAA,CACC,UAAWC,EAAG7B,EAAoBK,CAAS,EAC3C,gBAAeC,EAAW,GAAK,OAC/B,cAAaN,EACZ,GAAGyB,EAEJ,SAAA3B,EAACgC,EAA8B,KAA9B,CACC,UAAW,GAAG9B,CAAkB,OAChC,SAAUM,EACV,SAAUC,EACV,kBAAiBa,EACjB,mBAAkBM,EAClB,eAAcd,IAAqB,UAAY,GAAO,OACtD,oBAAmBA,IAAqB,UAAYU,EAAmB,OACvE,yBAAwBE,EAAiBZ,EAAmB,OAC3D,GAAGI,EAEH,gBAAM,KAAK,CAAE,OApBI,CAoBoB,CAAC,EAAE,IAAI,CAACe,EAAGC,IAC/CnC,EAACiC,EAA8B,MAA9B,CAA4C,QAAO,GAClD,SAAAjC,EAACoC,EAAA,EAAU,GAD6BD,CAE1C,CACD,EAEDnC,EAACiC,EAA8B,YAA9B,CAA0C,IAAK1B,EAAK,GACvD,EACF,CAEJ,CACF,EAEAF,EAAkB,YAAcH","names":["OneTimePasswordFieldPrimitive","forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","VerificationInput","props","ref","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","cn","OneTimePasswordFieldPrimitive","_","i","InputBase"]}
|
package/dist/chunk-CW6UT3QU.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as G}from"./chunk-GBTQPGQG.js";import{c as V}from"./chunk-HY32GRZP.js";import{c as w}from"./chunk-YRTWVR3H.js";import{a as N}from"./chunk-QQR2AVHA.js";import{a as P}from"./chunk-JWPVXXER.js";import{a as s}from"./chunk-4MNQRAHO.js";import{a as y}from"./chunk-OPPG3NOC.js";import{a as g}from"./chunk-7X24J4CX.js";import{a as R}from"./chunk-VKE2TXPE.js";import{a as v}from"./chunk-KGEVWEVL.js";import{a as T}from"./chunk-J3AJBV4B.js";import{b as I}from"./chunk-PDEVCIQ3.js";import{TickSmallIcon as J}from"@utilitywarehouse/hearth-react-icons";import{Checkbox as F}from"radix-ui";import{forwardRef as K}from"react";import{jsx as o,jsxs as c}from"react/jsx-runtime";var H="Checkbox",a=I(H),Q=K((S,E)=>{let{id:L,label:m,helperText:r,className:U,disabled:p,onCheckedChange:b,value:t="on","aria-labelledby":D,image:M,validationStatus:n,validationText:l,...O}=v(S,y),{id:f,labelId:x,helperTextId:h,validationTextId:d}=g({providedId:L,prefix:"checkbox"}),e=V(),i=w(),$=i?.value?.includes(t),A=e?.hasGroupHelperText,B=e?.hasGroupValidationText,_=e?e["aria-describedby"]:"",q=!A&&!!r,u=!!m,C=!B&&n!==void 0&&l!==void 0,z=R(_,r?h:void 0,C&&l!==void 0?d:void 0);return c(s,{className:T(a,U),"data-testid":a,"data-disabled":p?"":void 0,children:[o(F.Root,{ref:E,className:`${a}Root`,name:i?.name,checked:$,value:t,...O,id:f,disabled:p,"aria-describedby":z,"aria-labelledby":D||u?x:void 0,"aria-errormessage":n==="invalid"?d:void 0,onCheckedChange:k=>{e&&(k?i?.onItemCheck(t):i?.onItemUncheck(t)),b&&b(k)},children:o(F.Indicator,{asChild:!0,className:`${a}Indicator`,children:o(J,{})})}),u?c(s,{direction:"column",children:[c(G,{id:x,htmlFor:f,disableUserSelect:!0,children:[M,m]}),q?o(P,{id:h,disableUserSelect:!0,children:r}):null,C?o(N,{id:d,status:n,disableUserSelect:!0,children:l}):null]}):null]})});Q.displayName=H;export{Q as a};
|
|
4
|
-
//# sourceMappingURL=chunk-CW6UT3QU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '../../helpers/cn';\nimport type { CheckboxProps } from './Checkbox.props';\nimport { Flex } from '../Flex/Flex';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { TickSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\nimport { useCheckboxGroup } from '../CheckboxGroup/CheckboxGroup.context';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport type { ComponentRef } from 'react';\nimport { forwardRef } from 'react';\n\nconst COMPONENT_NAME = 'Checkbox';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CheckboxElement = ComponentRef<'button'>;\n\n/**\n * Use Checkbox to let a user toggle a dual-state option between checked and\n * not checked. It can be used independently, but when presenting multiple\n * checkboxes together use `CheckboxGroup` instead, which handles their state\n * and layout. If not using the `label` prop, provide an `aria-label` or\n * `aria-labelledby` so the checkbox has an accessible name.\n *\n * @summary A dual-state control letting a user toggle between checked and not checked.\n */\nexport const Checkbox = forwardRef<CheckboxElement, CheckboxProps>((props, ref) => {\n const {\n id: providedId,\n label,\n helperText,\n className,\n disabled,\n onCheckedChange,\n value = 'on',\n 'aria-labelledby': ariaLabelledby,\n image,\n validationStatus,\n validationText,\n ...checkboxProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'checkbox',\n });\n const context = useFormGroupBase();\n const checkboxContext = useCheckboxGroup();\n const checked = checkboxContext?.value?.includes(value);\n const hasGroupHelperText = context?.hasGroupHelperText;\n const hasGroupValidationText = context?.hasGroupValidationText;\n const ariaDescribedby = context ? context['aria-describedby'] : '';\n const showHelperText = !hasGroupHelperText && !!helperText;\n const showLabel = !!label;\n const showValidation =\n !hasGroupValidationText && validationStatus !== undefined && validationText !== undefined;\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <Flex\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n data-disabled={disabled ? '' : undefined}\n >\n <CheckboxPrimitive.Root\n ref={ref}\n className={`${componentClassName}Root`}\n name={checkboxContext?.name}\n checked={checked}\n value={value}\n {...checkboxProps}\n id={id}\n disabled={disabled}\n aria-describedby={ariaDescribedbyValue}\n aria-labelledby={ariaLabelledby || showLabel ? labelId : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n onCheckedChange={(checked: boolean) => {\n if (context) {\n if (checked) {\n checkboxContext?.onItemCheck(value);\n } else {\n checkboxContext?.onItemUncheck(value);\n }\n }\n if (onCheckedChange) {\n onCheckedChange(checked);\n }\n }}\n >\n <CheckboxPrimitive.Indicator asChild className={`${componentClassName}Indicator`}>\n <TickSmallIcon />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n {showLabel ? (\n <Flex direction=\"column\">\n <Label id={labelId} htmlFor={id} disableUserSelect>\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n {showValidation ? (\n <ValidationText id={validationTextId} status={validationStatus} disableUserSelect>\n {validationText}\n </ValidationText>\n ) : null}\n </Flex>\n ) : null}\n </Flex>\n );\n});\n\nCheckbox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,mBAAkB0B,EAClB,kBAAiBvB,GAAkBqB,EAAYb,EAAU,OACzD,oBAAmBN,IAAqB,UAAYQ,EAAmB,OACvE,gBAAkBM,GAAqB,CACjCJ,IACEI,EACFF,GAAiB,YAAYf,CAAK,EAElCe,GAAiB,cAAcf,CAAK,GAGpCD,GACFA,EAAgBkB,CAAO,CAE3B,EAEA,SAAA/B,EAAC0C,EAAkB,UAAlB,CAA4B,QAAO,GAAC,UAAW,GAAGvC,CAAkB,YACnE,SAAAH,EAAC2C,EAAA,EAAc,EACjB,EACF,EACCP,EACCnC,EAACuC,EAAA,CAAK,UAAU,SACd,UAAAvC,EAAC2C,EAAA,CAAM,GAAIrB,EAAS,QAASD,EAAI,kBAAiB,GAC/C,UAAAN,EACAP,GACH,EACC0B,EACCnC,EAAC6C,EAAA,CAAW,GAAIrB,EAAc,kBAAiB,GAC5C,SAAAd,EACH,EACE,KACH2B,EACCrC,EAAC8C,EAAA,CAAe,GAAIrB,EAAkB,OAAQR,EAAkB,kBAAiB,GAC9E,SAAAC,EACH,EACE,MACN,EACE,MACN,CAEJ,CAAC,EAEDb,EAAS,YAAcH","names":["TickSmallIcon","CheckboxPrimitive","forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Checkbox","props","ref","providedId","label","helperText","className","disabled","onCheckedChange","value","ariaLabelledby","image","validationStatus","validationText","checkboxProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","context","useFormGroupBase","checkboxContext","useCheckboxGroup","checked","hasGroupHelperText","hasGroupValidationText","ariaDescribedby","showHelperText","showLabel","showValidation","ariaDescribedbyValue","mergeIds","Flex","cn","CheckboxPrimitive","TickSmallIcon","Label","HelperText","ValidationText"]}
|
package/dist/chunk-EFQSAW3M.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as y}from"./chunk-UDOSOH3G.js";import{a as b}from"./chunk-RXW6PYP7.js";import{a as u}from"./chunk-OPPG3NOC.js";import{a as T}from"./chunk-7X24J4CX.js";import{a as h}from"./chunk-VKE2TXPE.js";import{a as c}from"./chunk-KGEVWEVL.js";import{a as f}from"./chunk-J3AJBV4B.js";import{b as x}from"./chunk-PDEVCIQ3.js";import{forwardRef as z}from"react";import{jsx as t}from"react/jsx-runtime";var A="TextArea",v=x(A),M=z((P,g)=>{let{className:N,validationStatus:e,validationText:d,label:I,labelVariant:w,helperText:o,id:C,disabled:a,readOnly:n,required:l,placeholder:F,"aria-describedby":E,resize:H,rows:O=3,minHeight:B,maxHeight:D,...R}=c(P,u),{id:s,labelId:m,helperTextId:p,validationTextId:r}=T({providedId:C,prefix:"textarea"}),i=!n&&!a,V={id:s,labelId:m,helperTextId:p,validationTextId:r,label:I,labelVariant:w,helperText:o,validationText:i?d:void 0,validationStatus:i?e:void 0,required:l},q=h(E,o?p:void 0,i&&d!==void 0?r:void 0);return t(y,{"data-validation-status":e||void 0,"data-disabled":a?"":void 0,className:f(v,N),"data-testid":v,...V,children:t(b,{asChild:!0,minHeight:B,maxHeight:D,children:t("textarea",{ref:g,id:s,rows:O,required:l,disabled:a,readOnly:n,placeholder:a?void 0:F,"aria-labelledby":m,"aria-describedby":q,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?r:void 0,"data-resize":H,...R})})})});M.displayName=A;export{M as a};
|
|
4
|
-
//# sourceMappingURL=chunk-EFQSAW3M.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/TextArea/TextArea.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { useIds } from '../../hooks/use-ids';\nimport type { TextAreaProps } from './TextArea.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormField } from '../FormField/FormField';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'TextArea';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TextAreaElement = ComponentRef<'textarea'>;\n\n/**\n * Use TextArea for a multi-line text input, such as a comment, message, or\n * description field. For single-line input, use TextInput instead. A `label`\n * is required and should clearly describe the purpose of the field.\n *\n * @summary A multi-line text input field for longer text content.\n */\nexport const TextArea = forwardRef<TextAreaElement, TextAreaProps>((props, ref) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n readOnly,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n resize,\n rows = 3,\n minHeight,\n maxHeight,\n ...textAreaProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'textarea',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n data-validation-status={validationStatus ? validationStatus : undefined}\n data-disabled={disabled ? '' : undefined}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <Box asChild minHeight={minHeight} maxHeight={maxHeight}>\n <textarea\n ref={ref}\n id={id}\n rows={rows}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-resize={resize}\n {...textAreaProps}\n />\n </Box>\n </FormField>\n );\n});\n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BU,EACjB,mBAAkBM,EAClB,eAAczB,IAAqB,UAAY,GAAO,OACtD,oBAAmBA,IAAqB,UAAYqB,EAAmB,OACvE,cAAaV,EACZ,GAAGI,EACN,EACF,EACF,CAEJ,CAAC,EAEDpB,EAAS,YAAcH","names":["forwardRef","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","TextArea","forwardRef","props","ref","className","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","readOnly","required","placeholder","ariaDescribedby","resize","rows","minHeight","maxHeight","textAreaProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","cn","Box"]}
|
package/dist/chunk-F6H2C3OA.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as C}from"./chunk-MD3VAECH.js";import{a as u}from"./chunk-4MNQRAHO.js";import{a as l}from"./chunk-XVM5ECBR.js";import{a as p}from"./chunk-OPPG3NOC.js";import{a as f}from"./chunk-4NKDPRXJ.js";import{a as d}from"./chunk-YOMRPYSK.js";import{a as c}from"./chunk-KGEVWEVL.js";import{a as s}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{forwardRef as B}from"react";import{CloseSmallIcon as M,InfoMediumIcon as T,TickCircleMediumIcon as w,WarningMediumIcon as I}from"@utilitywarehouse/hearth-react-icons";import{jsx as o,jsxs as n}from"react/jsx-runtime";var x="Alert",e=a(x),E=B((y,A)=>{let N={info:T,positive:w,warning:I,danger:I},{children:P,className:v,colorScheme:i="info",onClose:m,text:t,title:r,...g}=c(y,p,f,d),h=N[i];return n("div",{ref:A,className:s(e,v),role:"alert","data-colorscheme":i,"data-testid":e,...g,children:[o(h,{"aria-hidden":"true"}),n("div",{className:`${e}Content`,children:[r||t?n(u,{direction:"column",children:[r?o(l,{as:"span",size:"md",weight:"semibold",children:r}):null,t?o(l,{as:"div",children:t}):null]}):null,P]}),m?o(C,{onClick:m,className:`${e}CloseButton`,title:"Close",label:"Close alert",children:o(M,{})}):null]})});E.displayName=x;export{E as a};
|
|
4
|
-
//# sourceMappingURL=chunk-F6H2C3OA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-F7A4D3PD.cjs","../src/components/RadioCard/RadioCard.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioCard","forwardRef","props","ref","className","children","providedId","label","ariaLabelledby","image","radioCardProps","extractProps","marginPropDefs","id","labelId","useIds","jsxs","RadioGroupPrimitive","cn","jsx","Label"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA1N,mCAQuB,+CAsCxC,IAnCJA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAYC,+BAAAA,CAA8CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACpF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,KAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaT,CAAOU,mBAAc,CAAA,CAChC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAT,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CAC9D,OACEU,8BAAAA,mBAACC,CAAoB,IAAA,CAApB,CACC,GAAA,CAAKd,CAAAA,CACL,SAAA,CAAWe,iCAAAA,CAAGpB,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGY,CAAAA,CACJ,EAAA,CAAIG,CAAAA,CACJ,iBAAA,CAAiBL,CAAAA,EAAAA,CAAkCD,CAAAA,CAAQO,CAAAA,CAAU,KAAA,CAAA,CAAA,CAErE,QAAA,CAAA,CAAAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWjB,iCAAAA,gBAAiC,CAAA,CAC/C,QAAA,CAAA,CAAAoB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWpB,iCAAAA,WAA4B,CAAA,CAC1C,QAAA,CAAAoB,6BAAAA,mBAACF,CAAoB,SAAA,CAApB,CAA8B,SAAA,CAAWlB,iCAAAA,gBAAiC,CAAA,CAAG,CAAA,CAChF,CAAA,CACAiB,8BAAAA,mBAACI,CAAA,CAAM,EAAA,CAAIN,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAAC,UAAA,CAAW,UAAA,CAC3D,QAAA,CAAA,CAAAJ,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACCF,CAAAA,CAAAA,CACH,CAEJ,CAAC,CAAA,CAEDL,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-F7A4D3PD.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { RadioCardProps } from './RadioCard.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { Label } from '../Label/Label';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'RadioCard';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype RadioCardElement = ComponentRef<'button'>;\n\n/**\n * Use RadioCard within a RadioGroup to present a radio option in a card-like\n * visual style, when the option is a primary focus of the UI or benefits from\n * additional explanatory content — unlike RadioTile, it accepts children. For\n * simpler grouped options use RadioTile instead.\n *\n * @summary A card-styled radio option for use within RadioGroup, supporting additional content.\n */\nexport const RadioCard = forwardRef<RadioCardElement, RadioCardProps>((props, ref) => {\n const {\n className,\n children,\n id: providedId,\n label,\n 'aria-labelledby': ariaLabelledby,\n image,\n ...radioCardProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId } = useIds({ providedId, prefix: 'radio' });\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...radioCardProps}\n id={id}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className={withGlobalPrefix('RadioContainer')}>\n <div className={withGlobalPrefix('RadioItem')}>\n <RadioGroupPrimitive.Indicator className={withGlobalPrefix('RadioIndicator')} />\n </div>\n <Label id={labelId} htmlFor={id} disableUserSelect fontWeight=\"semibold\">\n {image}\n {label}\n </Label>\n </div>\n {children}\n </RadioGroupPrimitive.Item>\n );\n});\n\nRadioCard.displayName = COMPONENT_NAME;\n"]}
|
package/dist/chunk-FSOQCT7B.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as N}from"./chunk-L3VPQN5T.js";import{a as p}from"./chunk-MD3VAECH.js";import{a as f}from"./chunk-XVM5ECBR.js";import{a as v}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-KGEVWEVL.js";import{a as y}from"./chunk-J3AJBV4B.js";import{b as S}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{ChevronLeftSmallIcon as T,ChevronRightSmallIcon as A,SkipFirstSmallIcon as G,SkipLastSmallIcon as R}from"@utilitywarehouse/hearth-react-icons";import{Slot as U}from"radix-ui";import{jsx as o,jsxs as c}from"react/jsx-runtime";var b="Pagination",s=S(b),m="...",M=7,_=(a,i)=>{if(i<=M)return Array.from({length:i},(r,d)=>d+1);let e=[],n=a<=4,t=a>i-4;return n?(e.push(1,2,3,4,5),e.push(m),e.push(i)):t?(e.push(1),e.push(m),e.push(i-4,i-3,i-2,i-1,i)):(e.push(1),e.push(m),e.push(a-1,a,a+1),e.push(m),e.push(i)),e},w=x((a,i)=>{let{className:e,currentPage:n,totalPages:t,onPageChange:r,condensed:d=!1,hideSkipButtons:u=!1,as:C="div",...g}=I(a,v),B=_(n,t),P=()=>{n>1&&r(n-1)},E=()=>{n<t&&r(n+1)},k=()=>{n!==1&&r(1)},L=()=>{n!==t&&r(t)};return o(U.Root,{ref:i,"aria-label":"pagination",className:y(s,e),"data-testid":s,...g,children:o(C,{children:c("div",{className:`${s}Container`,children:[c("div",{className:`${s}Controllers`,children:[!u&&o(p,{label:"Go to first page",onClick:k,disabled:n===1,children:o(G,{})}),o(p,{label:"Go to previous page",onClick:P,disabled:n===1,children:o(T,{})})]}),d?c(f,{size:"md",color:"primary",children:["Page ",n," of ",t]}):o("div",{children:o("ol",{className:`${s}Pages`,children:B.map((l,$)=>{if(l===m)return o("li",{children:o(f,{size:"md",color:"primary",className:`${s}Ellipsis`,children:m})},`ellipsis-${$}`);let h=l===n;return o("li",{children:o(N,{className:`${s}Page`,variant:"ghost",colorScheme:"functional",onClick:()=>r(l),"data-active":h?"":void 0,"aria-label":`Go to page ${l}`,"aria-current":h?"page":void 0,children:l})},l)})})}),c("div",{className:`${s}Controllers`,children:[o(p,{label:"Go to next page",onClick:E,disabled:n===t,children:o(A,{})}),!u&&o(p,{label:"Go to last page",onClick:L,disabled:n===t,children:o(R,{})})]})]})})})});w.displayName=b;export{w as a};
|
|
4
|
-
//# sourceMappingURL=chunk-FSOQCT7B.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/DateInput/DateInput.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { DateInputProps } from './DateInput.props';\nimport { FormGroupBase } from '../FormGroupBase/FormGroupBase';\nimport { useIds } from '../../hooks/use-ids';\nimport { DateInputSegment } from './DateInputSegment';\n\nconst COMPONENT_NAME = 'DateInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use DateInput when users need to enter a date manually, using separate\n * fields for day, month, and year. Use the `hideDay`, `hideMonth`, and\n * `hideYear` props to show only the segments you need.\n *\n * For a date picker with a visual calendar, use DatePicker instead.\n * DateInput renders the visual `valid`/`invalid` states but does not perform\n * validation internally — validation logic must be supplied by the consumer.\n *\n * @summary A manual date entry field with separate day, month, and year segments.\n */\nexport const DateInput = ({\n className,\n label,\n labelVariant,\n helperText,\n validationStatus,\n validationText,\n hideDay,\n hideMonth,\n hideYear,\n dayPlaceholder,\n monthPlaceholder,\n yearPlaceholder,\n dayValue,\n monthValue,\n yearValue,\n defaultDayValue,\n defaultMonthValue,\n defaultYearValue,\n onDayChange,\n onMonthChange,\n onYearChange,\n onDayFocus,\n onMonthFocus,\n onYearFocus,\n onDayBlur,\n onMonthBlur,\n onYearBlur,\n disabled,\n required,\n id: providedId,\n ...props\n}: DateInputProps) => {\n const { id } = useIds({ providedId, prefix: 'date-input' });\n const formGroupBaseProps = {\n ...props,\n disabled,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n id,\n };\n return (\n <FormGroupBase\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n validationPlacement=\"bottom\"\n {...formGroupBaseProps}\n >\n <div className={`${componentClassName}Group`}>\n {hideDay ? null : (\n <DateInputSegment\n maxLength={2}\n placeholder={dayPlaceholder}\n value={dayValue}\n defaultValue={defaultDayValue}\n onChange={onDayChange}\n onFocus={onDayFocus}\n onBlur={onDayBlur}\n disabled={disabled}\n required={required}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n label=\"Day\"\n name={`${id}-day`}\n id={`${id}-day`}\n />\n )}\n {hideMonth ? null : (\n <DateInputSegment\n placeholder={monthPlaceholder}\n value={monthValue}\n defaultValue={defaultMonthValue}\n onChange={onMonthChange}\n onFocus={onMonthFocus}\n onBlur={onMonthBlur}\n disabled={disabled}\n required={required}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n label=\"Month\"\n name={`${id}-month`}\n id={`${id}-month`}\n />\n )}\n {hideYear ? null : (\n <DateInputSegment\n maxLength={4}\n minLength={4}\n placeholder={yearPlaceholder}\n value={yearValue}\n defaultValue={defaultYearValue}\n onChange={onYearChange}\n onFocus={onYearFocus}\n onBlur={onYearBlur}\n disabled={disabled}\n required={required}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n label=\"Year\"\n name={`${id}-year`}\n id={`${id}-year`}\n />\n )}\n </div>\n </FormGroupBase>\n );\n};\n\nDateInput.displayName = COMPONENT_NAME;\n"],"mappings":";;wMA0EM,OAEI,OAAAA,EAFJ,QAAAC,MAAA,oBAjEN,IAAMC,EAAiB,YACjBC,EAAqBC,EAAiBF,CAAc,EAa7CG,EAAY,CAAC,CACxB,UAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,QAAAC,EACA,UAAAC,EACA,SAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,WAAAC,EACA,UAAAC,EACA,gBAAAC,EACA,kBAAAC,EACA,iBAAAC,EACA,YAAAC,EACA,cAAAC,EACA,aAAAC,EACA,WAAAC,EACA,aAAAC,EACA,YAAAC,EACA,UAAAC,EACA,YAAAC,EACA,WAAAC,EACA,SAAAC,EACA,SAAAC,EACA,GAAIC,EACJ,GAAGC,CACL,IAAsB,CACpB,GAAM,CAAE,GAAAC,CAAG,EAAIC,EAAO,CAAE,WAAAH,EAAY,OAAQ,YAAa,CAAC,EACpDI,EAAqB,CACzB,GAAGH,EACH,SAAAH,EACA,MAAA1B,EACA,aAAAC,EACA,WAAAC,EACA,eAAAE,EACA,iBAAAD,EACA,GAAA2B,CACF,EACA,OACErC,EAACwC,EAAA,CACC,UAAWC,EAAGtC,EAAoBG,CAAS,EAC3C,cAAaH,EACb,oBAAoB,SACnB,GAAGoC,EAEJ,SAAAtC,EAAC,OAAI,UAAW,GAAGE,CAAkB,QAClC,UAAAS,EAAU,KACTZ,EAAC0C,EAAA,CACC,UAAW,EACX,YAAa3B,EACb,MAAOG,EACP,aAAcG,EACd,SAAUG,EACV,QAASG,EACT,OAAQG,EACR,SAAUG,EACV,SAAUC,EACV,eAAcxB,IAAqB,UAAY,GAAO,OACtD,MAAM,MACN,KAAM,GAAG2B,CAAE,OACX,GAAI,GAAGA,CAAE,OACX,EAEDxB,EAAY,KACXb,EAAC0C,EAAA,CACC,YAAa1B,EACb,MAAOG,EACP,aAAcG,EACd,SAAUG,EACV,QAASG,EACT,OAAQG,EACR,SAAUE,EACV,SAAUC,EACV,eAAcxB,IAAqB,UAAY,GAAO,OACtD,MAAM,QACN,KAAM,GAAG2B,CAAE,SACX,GAAI,GAAGA,CAAE,SACX,EAEDvB,EAAW,KACVd,EAAC0C,EAAA,CACC,UAAW,EACX,UAAW,EACX,YAAazB,EACb,MAAOG,EACP,aAAcG,EACd,SAAUG,EACV,QAASG,EACT,OAAQG,EACR,SAAUC,EACV,SAAUC,EACV,eAAcxB,IAAqB,UAAY,GAAO,OACtD,MAAM,OACN,KAAM,GAAG2B,CAAE,QACX,GAAI,GAAGA,CAAE,QACX,GAEJ,EACF,CAEJ,EAEAhC,EAAU,YAAcH","names":["jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","DateInput","className","label","labelVariant","helperText","validationStatus","validationText","hideDay","hideMonth","hideYear","dayPlaceholder","monthPlaceholder","yearPlaceholder","dayValue","monthValue","yearValue","defaultDayValue","defaultMonthValue","defaultYearValue","onDayChange","onMonthChange","onYearChange","onDayFocus","onMonthFocus","onYearFocus","onDayBlur","onMonthBlur","onYearBlur","disabled","required","providedId","props","id","useIds","formGroupBaseProps","FormGroupBase","cn","DateInputSegment"]}
|
package/dist/chunk-HMT3R4UW.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkQFHOANX3cjs = require('./chunk-QFHOANX3.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="ButtonBase",e=_chunk4Q432K4Wcjs.b.call(void 0, N),k= exports.a =_react.forwardRef.call(void 0, (r,i)=>{let{colorScheme:P,inverted:S,className:d,disabled:o,onClick:l,asChild:m,children:a,...p}=_chunkZPJNQBTNcjs.a.call(void 0, r,_chunkQFHOANX3cjs.a,_chunkOB7O3UFLcjs.a),{variant:n="solid"}=r,c={"data-colorscheme":P||(n==="emphasis"||n==="solid"?"highlight":"functional"),"data-inverted":S?"":void 0},f=m?_radixui.Slot.Root:"button";return n==="emphasis"?_jsxruntime.jsxs.call(void 0, f,{ref:i,"aria-disabled":o||void 0,className:_chunkONNSZMWFcjs.a.call(void 0, e,d),onClick:o?void 0:l,...c,"data-testid":e,...p,children:[_jsxruntime.jsx.call(void 0, "span",{className:`${e}Shadow`}),m?_jsxruntime.jsx.call(void 0, _radixui.Slot.Slottable,{child:a,children:w=>_jsxruntime.jsx.call(void 0, "span",{className:`${e}Front`,children:w})}):_jsxruntime.jsx.call(void 0, "span",{className:`${e}Front`,children:a})]}):_jsxruntime.jsx.call(void 0, f,{ref:i,"aria-disabled":o||void 0,className:_chunkONNSZMWFcjs.a.call(void 0, e,d),onClick:o?void 0:l,...c,"data-testid":e,...p,children:a})});k.displayName=N;exports.a = k;
|
|
4
|
-
//# sourceMappingURL=chunk-HMT3R4UW.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-HMT3R4UW.cjs","../src/components/ButtonBase/ButtonBase.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ButtonBase","forwardRef","props","ref","colorScheme","inverted","className","disabled","onClick","asChild","children","buttonBaseProps","extractProps","buttonBasePropDefs","marginPropDefs","variant","dataAttributeProps","Component","Slot","jsxs","cn","jsx"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCAvL,8BAOM,+CAmCrB,IAhCAA,CAAAA,CAAiB,YAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAaC,+BAAAA,CAAgDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACvF,GAAM,CACJ,WAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaV,CAAOW,mBAAAA,CAAoBC,mBAAc,CAAA,CACpD,CAAE,OAAA,CAAAC,CAAAA,CAAU,OAAQ,CAAA,CAAIb,CAAAA,CAIxBc,CAAAA,CAAqB,CACzB,kBAAA,CAAoBZ,CAAAA,EAAAA,CAFpBW,CAAAA,GAAY,UAAA,EAAcA,CAAAA,GAAY,OAAA,CAAU,WAAA,CAAc,YAAA,CAAA,CAG9D,eAAA,CAAiBV,CAAAA,CAAW,EAAA,CAAK,KAAA,CACnC,CAAA,CAEMY,CAAAA,CAAYR,CAAAA,CAAUS,aAAAA,CAAK,IAAA,CAAO,QAAA,CAKxC,OAAIH,CAAAA,GAAY,UAAA,CAEZI,8BAAAA,CAACF,CAAA,CACC,GAAA,CAAKd,CAAAA,CACL,eAAA,CAAeI,CAAAA,EAAY,KAAA,CAAA,CAC3B,SAAA,CAAWa,iCAAAA,CAAGtB,CAAoBQ,CAAS,CAAA,CAG3C,OAAA,CAASC,CAAAA,CAAW,KAAA,CAAA,CAAYC,CAAAA,CAC/B,GAAGQ,CAAAA,CACJ,aAAA,CAAalB,CAAAA,CACZ,GAAGa,CAAAA,CAEJ,QAAA,CAAA,CAAAU,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-HMT3R4UW.cjs","sourcesContent":[null,"'use client';\n\nimport { Slot } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { buttonBasePropDefs } from './ButtonBase.props';\nimport type { ButtonBaseProps } from './ButtonBase.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'ButtonBase';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport type ButtonBaseElement = ComponentRef<'button'>;\n\nexport const ButtonBase = forwardRef<ButtonBaseElement, ButtonBaseProps>((props, ref) => {\n const {\n colorScheme,\n inverted,\n className,\n disabled,\n onClick,\n asChild,\n children,\n ...buttonBaseProps\n } = extractProps(props, buttonBasePropDefs, marginPropDefs);\n const { variant = 'solid' } = props;\n\n const defaultColorScheme =\n variant === 'emphasis' || variant === 'solid' ? 'highlight' : 'functional';\n const dataAttributeProps = {\n 'data-colorscheme': colorScheme || defaultColorScheme,\n 'data-inverted': inverted ? '' : undefined,\n };\n\n const Component = asChild ? Slot.Root : 'button';\n\n // We're rendering a different component here so that we don't have to apply\n // transitions to box-shadow, which causes re-paints on every frame, heavily\n // impacting performance.\n if (variant === 'emphasis') {\n return (\n <Component\n ref={ref}\n aria-disabled={disabled || undefined}\n className={cn(componentClassName, className)}\n // as we're using aria-disabled instead of disabled then we need to\n // disable the onClick event\n onClick={disabled ? undefined : onClick}\n {...dataAttributeProps}\n data-testid={componentClassName}\n {...buttonBaseProps}\n >\n <span className={`${componentClassName}Shadow`}></span>\n {asChild ? (\n <Slot.Slottable child={children}>\n {subtreeChildren => (\n <span className={`${componentClassName}Front`}>{subtreeChildren}</span>\n )}\n </Slot.Slottable>\n ) : (\n <span className={`${componentClassName}Front`}>{children}</span>\n )}\n </Component>\n );\n }\n return (\n <Component\n ref={ref}\n aria-disabled={disabled || undefined}\n className={cn(componentClassName, className)}\n onClick={disabled ? undefined : onClick}\n {...dataAttributeProps}\n data-testid={componentClassName}\n {...buttonBaseProps}\n >\n {children}\n </Component>\n );\n});\n\nButtonBase.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/List/ListItemButton.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '../../helpers/cn';\nimport type { ListItemButtonProps } from './ListItemButton.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { ListItemContent } from './ListItemContent';\nimport type { ComponentRef } from 'react';\nimport { forwardRef } from 'react';\n\nconst COMPONENT_NAME = 'ListItemButton';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ListItemButtonElement = ComponentRef<'button'>;\n\nexport const ListItemButton = forwardRef<ListItemButtonElement, ListItemButtonProps>(\n (\n {\n className,\n heading,\n helperText,\n leadingContent,\n trailingContent,\n badge,\n badgePlacement,\n children,\n disabled,\n onClick,\n ...props\n },\n ref\n ) => {\n const contentProps = {\n heading,\n helperText,\n leadingContent,\n badge,\n badgePlacement,\n };\n return (\n <button\n ref={ref}\n className={cn(componentClassName, className)}\n {...props}\n aria-disabled={disabled || undefined}\n onClick={disabled ? undefined : onClick}\n >\n <ListItemContent\n trailingContent={trailingContent ? trailingContent : <ChevronRightSmallIcon />}\n {...contentProps}\n >\n {children}\n </ListItemContent>\n </button>\n );\n }\n);\n\nListItemButton.displayName = COMPONENT_NAME;\n"],"mappings":";;wHAKA,OAAS,yBAAAA,MAA6B,uCAGtC,OAAS,cAAAC,MAAkB,QAwCoC,cAAAC,MAAA,oBAtC/D,IAAMC,EAAiB,iBACjBC,EAAqBC,EAAiBF,CAAc,EAI7CG,EAAiBL,EAC5B,CACE,CACE,UAAAM,EACA,QAAAC,EACA,WAAAC,EACA,eAAAC,EACA,gBAAAC,EACA,MAAAC,EACA,eAAAC,EACA,SAAAC,EACA,SAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAe,CACnB,QAAAX,EACA,WAAAC,EACA,eAAAC,EACA,MAAAE,EACA,eAAAC,CACF,EACA,OACEX,EAAC,UACC,IAAKgB,EACL,UAAWE,EAAGhB,EAAoBG,CAAS,EAC1C,GAAGU,EACJ,gBAAeF,GAAY,OAC3B,QAASA,EAAW,OAAYC,EAEhC,SAAAd,EAACmB,EAAA,CACC,gBAAiBV,GAAoCT,EAACoB,EAAA,EAAsB,EAC3E,GAAGH,EAEH,SAAAL,EACH,EACF,CAEJ,CACF,EAEAR,EAAe,YAAcH","names":["ChevronRightSmallIcon","forwardRef","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","ListItemButton","className","heading","helperText","leadingContent","trailingContent","badge","badgePlacement","children","disabled","onClick","props","ref","contentProps","cn","ListItemContent","ChevronRightSmallIcon"]}
|
package/dist/chunk-ICJHFSP5.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import{a as s}from"./chunk-GBTQPGQG.js";import{a as l}from"./chunk-OPPG3NOC.js";import{a as p}from"./chunk-7X24J4CX.js";import{a as m}from"./chunk-KGEVWEVL.js";import{a as t}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{RadioGroup as n}from"radix-ui";import{jsx as c,jsxs as a}from"react/jsx-runtime";var R="RadioCard",f=o(R),h=y((b,C)=>{let{className:N,children:P,id:I,label:r,"aria-labelledby":i,image:u,...v}=m(b,l),{id:e,labelId:d}=p({providedId:I,prefix:"radio"});return a(n.Item,{ref:C,className:t(f,N),"data-testid":f,...v,id:e,"aria-labelledby":i||(r?d:void 0),children:[a("div",{className:o("RadioContainer"),children:[c("div",{className:o("RadioItem"),children:c(n.Indicator,{className:o("RadioIndicator")})}),a(s,{id:d,htmlFor:e,disableUserSelect:!0,fontWeight:"semibold",children:[u,r]})]}),P]})});h.displayName=R;export{h as a};
|
|
4
|
-
//# sourceMappingURL=chunk-ICJHFSP5.js.map
|
package/dist/chunk-IXUXDCQL.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
|
-
|
|
3
|
-
var _chunkMZMYW4KCcjs = require('./chunk-MZMYW4KC.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkDR4D5JX2cjs = require('./chunk-DR4D5JX2.cjs');var _chunkS3DGCUDLcjs = require('./chunk-S3DGCUDL.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _radixui = require('radix-ui');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var g="CheckboxTile",d=_chunk4Q432K4Wcjs.b.call(void 0, g),J= exports.a =_react.forwardRef.call(void 0, (w,H)=>{let{className:S,id:E,disabled:c,value:i="on",onCheckedChange:m,label:b,helperText:a,image:F,"aria-labelledby":L,validationStatus:r,validationText:l,...U}=w,{id:p,labelId:h,helperTextId:x,validationTextId:n}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:E,prefix:"checkboxtile"}),e=_chunkWSD52THLcjs.c.call(void 0, ),t=_chunkDR4D5JX2cjs.c.call(void 0, ),D=_optionalChain([t, 'optionalAccess', _2 => _2.value, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4(i)]),M=_optionalChain([e, 'optionalAccess', _5 => _5.hasGroupHelperText]),O=_optionalChain([e, 'optionalAccess', _6 => _6.hasGroupValidationText]),A=e?e["aria-describedby"]:"",B=!M&&!!a,_=!!b,f=!O&&r!==void 0&&l!==void 0,$=_chunkHIF6HKZ3cjs.a.call(void 0, A,a?x:void 0,f&&l!==void 0?n:void 0);return _jsxruntime.jsxs.call(void 0, "label",{className:_chunkONNSZMWFcjs.a.call(void 0, d,S),"data-testid":d,"data-disabled":c?"":void 0,children:[_jsxruntime.jsx.call(void 0, _radixui.Checkbox.Root,{ref:H,className:"h-CheckboxRoot",name:_optionalChain([t, 'optionalAccess', _7 => _7.name]),checked:D,value:i,...U,id:p,disabled:c,"aria-describedby":$,"aria-labelledby":L||_?h:void 0,"aria-errormessage":r==="invalid"?n:void 0,onCheckedChange:u=>{e&&(u?_optionalChain([t, 'optionalAccess', _8 => _8.onItemCheck, 'call', _9 => _9(i)]):_optionalChain([t, 'optionalAccess', _10 => _10.onItemUncheck, 'call', _11 => _11(i)])),m&&m(u)},children:_jsxruntime.jsx.call(void 0, _radixui.Checkbox.Indicator,{asChild:!0,className:`${d}Indicator`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.TickSmallIcon,{})})}),_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",children:[_jsxruntime.jsxs.call(void 0, _chunkMZMYW4KCcjs.a,{id:h,htmlFor:p,disableUserSelect:!0,children:[F,b]}),B?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:x,disableUserSelect:!0,children:a}):null,f?_jsxruntime.jsx.call(void 0, _chunkS3DGCUDLcjs.a,{id:n,status:r,disableUserSelect:!0,children:l}):null]})]})});J.displayName=g;exports.a = J;
|
|
4
|
-
//# sourceMappingURL=chunk-IXUXDCQL.cjs.map
|