@techzyapp/ui-library 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdminRoot-9HGp3Mds.js +55 -0
- package/dist/AdminRoot-9HGp3Mds.js.map +1 -0
- package/dist/AdminRoot-D24UJ-4a.cjs +2 -0
- package/dist/AdminRoot-D24UJ-4a.cjs.map +1 -0
- package/dist/{Alert-rNjfqj2Z.js → Alert-CJono1TJ.js} +3 -3
- package/dist/{Alert-rNjfqj2Z.js.map → Alert-CJono1TJ.js.map} +1 -1
- package/dist/{Alert-DeGgilkH.cjs → Alert-VFQuuII6.cjs} +2 -2
- package/dist/{Alert-DeGgilkH.cjs.map → Alert-VFQuuII6.cjs.map} +1 -1
- package/dist/{AuthLayout-zAS3jlYc.js → AuthLayout-DOFYw_z5.js} +3 -3
- package/dist/{AuthLayout-zAS3jlYc.js.map → AuthLayout-DOFYw_z5.js.map} +1 -1
- package/dist/{AuthLayout-ChILVWZ-.cjs → AuthLayout-QAtW2GAT.cjs} +2 -2
- package/dist/{AuthLayout-ChILVWZ-.cjs.map → AuthLayout-QAtW2GAT.cjs.map} +1 -1
- package/dist/Avatar-DXNPg23a.js +90 -0
- package/dist/Avatar-DXNPg23a.js.map +1 -0
- package/dist/Avatar-DrV_F7Ex.cjs +2 -0
- package/dist/Avatar-DrV_F7Ex.cjs.map +1 -0
- package/dist/{AvatarGroup-Bnf_RSc9.cjs → AvatarGroup-CHesdo-M.cjs} +2 -2
- package/dist/{AvatarGroup-Bnf_RSc9.cjs.map → AvatarGroup-CHesdo-M.cjs.map} +1 -1
- package/dist/{AvatarGroup-Difz4lLR.js → AvatarGroup-CwlYqDCI.js} +2 -2
- package/dist/{AvatarGroup-Difz4lLR.js.map → AvatarGroup-CwlYqDCI.js.map} +1 -1
- package/dist/{Breadcrumbs-CGcpMlxm.cjs → Breadcrumbs-DCEHxpSi.cjs} +2 -2
- package/dist/{Breadcrumbs-CGcpMlxm.cjs.map → Breadcrumbs-DCEHxpSi.cjs.map} +1 -1
- package/dist/{Breadcrumbs-BJHKk0Sn.js → Breadcrumbs-XWU8tRvs.js} +3 -3
- package/dist/{Breadcrumbs-BJHKk0Sn.js.map → Breadcrumbs-XWU8tRvs.js.map} +1 -1
- package/dist/{Button-obe6rono.js → Button-CWMNNiia.js} +2 -2
- package/dist/{Button-obe6rono.js.map → Button-CWMNNiia.js.map} +1 -1
- package/dist/{Button-BZ_o-akc.cjs → Button-CusxDmfq.cjs} +2 -2
- package/dist/{Button-BZ_o-akc.cjs.map → Button-CusxDmfq.cjs.map} +1 -1
- package/dist/{Calendar-lfpNwivC.cjs → Calendar-BEQbZixA.cjs} +2 -2
- package/dist/{Calendar-lfpNwivC.cjs.map → Calendar-BEQbZixA.cjs.map} +1 -1
- package/dist/{Calendar-SCih0NtS.js → Calendar-Db3rr1VD.js} +3 -3
- package/dist/{Calendar-SCih0NtS.js.map → Calendar-Db3rr1VD.js.map} +1 -1
- package/dist/Card-CUUh4mlB.cjs +2 -0
- package/dist/Card-CUUh4mlB.cjs.map +1 -0
- package/dist/Card-MxYfQTOY.js +121 -0
- package/dist/Card-MxYfQTOY.js.map +1 -0
- package/dist/Checkbox-CTp1xFW7.cjs +2 -0
- package/dist/{Checkbox-fzJCwe0j.cjs.map → Checkbox-CTp1xFW7.cjs.map} +1 -1
- package/dist/Checkbox-DyKBIgVT.js +98 -0
- package/dist/{Checkbox-ZYOSBYRt.js.map → Checkbox-DyKBIgVT.js.map} +1 -1
- package/dist/{Chip-CYz4vxHm.cjs → Chip-D12KcV4_.cjs} +2 -2
- package/dist/{Chip-CYz4vxHm.cjs.map → Chip-D12KcV4_.cjs.map} +1 -1
- package/dist/{Chip-CQ4cYVl_.js → Chip-Zh1OB9nV.js} +2 -2
- package/dist/{Chip-CQ4cYVl_.js.map → Chip-Zh1OB9nV.js.map} +1 -1
- package/dist/{ChoiceCardGroup-pIOKIUI0.cjs → ChoiceCardGroup-BSagRbPI.cjs} +2 -2
- package/dist/{ChoiceCardGroup-pIOKIUI0.cjs.map → ChoiceCardGroup-BSagRbPI.cjs.map} +1 -1
- package/dist/{ChoiceCardGroup-D3HL7dHj.js → ChoiceCardGroup-CEniY_HJ.js} +2 -2
- package/dist/{ChoiceCardGroup-D3HL7dHj.js.map → ChoiceCardGroup-CEniY_HJ.js.map} +1 -1
- package/dist/{CodeBlock-DddGTLu1.js → CodeBlock-CkrTnpcj.js} +3 -3
- package/dist/{CodeBlock-DddGTLu1.js.map → CodeBlock-CkrTnpcj.js.map} +1 -1
- package/dist/{CodeBlock-H75dbOvg.cjs → CodeBlock-DAM7BkHK.cjs} +2 -2
- package/dist/{CodeBlock-H75dbOvg.cjs.map → CodeBlock-DAM7BkHK.cjs.map} +1 -1
- package/dist/{ColorPicker-CKc8k-Dp.cjs → ColorPicker-BcCozxIe.cjs} +2 -2
- package/dist/{ColorPicker-CKc8k-Dp.cjs.map → ColorPicker-BcCozxIe.cjs.map} +1 -1
- package/dist/{ColorPicker-Cw-2X6u9.js → ColorPicker-DqxVgUoD.js} +5 -5
- package/dist/{ColorPicker-Cw-2X6u9.js.map → ColorPicker-DqxVgUoD.js.map} +1 -1
- package/dist/{ColorPickerPanel-DQ4CFnGa.cjs → ColorPickerPanel-DAOESLCe.cjs} +2 -2
- package/dist/{ColorPickerPanel-DQ4CFnGa.cjs.map → ColorPickerPanel-DAOESLCe.cjs.map} +1 -1
- package/dist/{ColorPickerPanel-PYaF5wPL.js → ColorPickerPanel-DZjN8NNn.js} +2 -2
- package/dist/{ColorPickerPanel-PYaF5wPL.js.map → ColorPickerPanel-DZjN8NNn.js.map} +1 -1
- package/dist/{ColorRamp-DnlJNKfy.js → ColorRamp-DS5LVpRF.js} +3 -3
- package/dist/{ColorRamp-DnlJNKfy.js.map → ColorRamp-DS5LVpRF.js.map} +1 -1
- package/dist/{ColorRamp-AkY9gq6Y.cjs → ColorRamp-_KwlPQ-T.cjs} +2 -2
- package/dist/{ColorRamp-AkY9gq6Y.cjs.map → ColorRamp-_KwlPQ-T.cjs.map} +1 -1
- package/dist/{ConfigProvider-DL9fylMo.js → ConfigProvider-BbsI15b-.js} +2 -2
- package/dist/{ConfigProvider-DL9fylMo.js.map → ConfigProvider-BbsI15b-.js.map} +1 -1
- package/dist/{ConfigProvider-BicoaBLj.cjs → ConfigProvider-ByLHqXpv.cjs} +2 -2
- package/dist/{ConfigProvider-BicoaBLj.cjs.map → ConfigProvider-ByLHqXpv.cjs.map} +1 -1
- package/dist/{CopyButton-D6-kcVCA.js → CopyButton-D4s8aeSE.js} +3 -3
- package/dist/{CopyButton-D6-kcVCA.js.map → CopyButton-D4s8aeSE.js.map} +1 -1
- package/dist/{CopyButton-BqFGC-Ca.cjs → CopyButton-SFwjKod9.cjs} +2 -2
- package/dist/{CopyButton-BqFGC-Ca.cjs.map → CopyButton-SFwjKod9.cjs.map} +1 -1
- package/dist/{DatePicker-DP7yASzq.js → DatePicker-DGwjCHfd.js} +6 -6
- package/dist/{DatePicker-DP7yASzq.js.map → DatePicker-DGwjCHfd.js.map} +1 -1
- package/dist/{DatePicker-BvGFP2AL.cjs → DatePicker-ENbn2Vab.cjs} +2 -2
- package/dist/{DatePicker-BvGFP2AL.cjs.map → DatePicker-ENbn2Vab.cjs.map} +1 -1
- package/dist/{DateTimePicker-DOzft9kg.cjs → DateTimePicker-BQUmsFwX.cjs} +2 -2
- package/dist/{DateTimePicker-DOzft9kg.cjs.map → DateTimePicker-BQUmsFwX.cjs.map} +1 -1
- package/dist/{DateTimePicker-CzRduOFz.js → DateTimePicker-CwVkQiun.js} +9 -9
- package/dist/{DateTimePicker-CzRduOFz.js.map → DateTimePicker-CwVkQiun.js.map} +1 -1
- package/dist/DescriptionList-0qjKr6GN.js +176 -0
- package/dist/DescriptionList-0qjKr6GN.js.map +1 -0
- package/dist/DescriptionList-U5z2Faf4.cjs +2 -0
- package/dist/DescriptionList-U5z2Faf4.cjs.map +1 -0
- package/dist/{Dropdown-FfkmluRu.js → Dropdown--1mNTVZJ.js} +2 -2
- package/dist/{Dropdown-FfkmluRu.js.map → Dropdown--1mNTVZJ.js.map} +1 -1
- package/dist/{Dropdown-Ui7h2TGd.cjs → Dropdown-DNZ9S_zQ.cjs} +2 -2
- package/dist/{Dropdown-Ui7h2TGd.cjs.map → Dropdown-DNZ9S_zQ.cjs.map} +1 -1
- package/dist/EmptyState-B2_4BN4l.cjs +2 -0
- package/dist/EmptyState-B2_4BN4l.cjs.map +1 -0
- package/dist/EmptyState-DwT9_HW7.js +58 -0
- package/dist/EmptyState-DwT9_HW7.js.map +1 -0
- package/dist/ErrorBoundary-CYSOAQlB.cjs +2 -0
- package/dist/ErrorBoundary-CYSOAQlB.cjs.map +1 -0
- package/dist/ErrorBoundary-CsDHKYB4.js +163 -0
- package/dist/ErrorBoundary-CsDHKYB4.js.map +1 -0
- package/dist/FileCard-B9f9RoXS.js +149 -0
- package/dist/FileCard-B9f9RoXS.js.map +1 -0
- package/dist/FileCard-zuUYik-F.cjs +2 -0
- package/dist/FileCard-zuUYik-F.cjs.map +1 -0
- package/dist/FileUploader-Dh2zA50t.js +707 -0
- package/dist/FileUploader-Dh2zA50t.js.map +1 -0
- package/dist/FileUploader-Y8hiyIpp.cjs +2 -0
- package/dist/FileUploader-Y8hiyIpp.cjs.map +1 -0
- package/dist/{Flag-BM_2VJ1v.cjs → Flag-BpTQAgbD.cjs} +2 -2
- package/dist/{Flag-BM_2VJ1v.cjs.map → Flag-BpTQAgbD.cjs.map} +1 -1
- package/dist/{Flag-CzCEpB8E.js → Flag-CmDXvd7j.js} +2 -2
- package/dist/{Flag-CzCEpB8E.js.map → Flag-CmDXvd7j.js.map} +1 -1
- package/dist/FloatingPanel-BIC4WrFa.cjs +2 -0
- package/dist/FloatingPanel-BIC4WrFa.cjs.map +1 -0
- package/dist/FloatingPanel-CeSOtE_D.js +135 -0
- package/dist/FloatingPanel-CeSOtE_D.js.map +1 -0
- package/dist/{FullscreenToggle-HZQOIa21.js → FullscreenToggle-2IYIS5KF.js} +3 -3
- package/dist/{FullscreenToggle-HZQOIa21.js.map → FullscreenToggle-2IYIS5KF.js.map} +1 -1
- package/dist/{FullscreenToggle-BL0nBrsL.cjs → FullscreenToggle-CeGgw3z1.cjs} +2 -2
- package/dist/{FullscreenToggle-BL0nBrsL.cjs.map → FullscreenToggle-CeGgw3z1.cjs.map} +1 -1
- package/dist/{IconButton-B87ipBK3.cjs → IconButton-BNa0yLcv.cjs} +2 -2
- package/dist/{IconButton-B87ipBK3.cjs.map → IconButton-BNa0yLcv.cjs.map} +1 -1
- package/dist/{IconButton-CBp8QuTO.js → IconButton-GU3Ud4Zg.js} +2 -2
- package/dist/{IconButton-CBp8QuTO.js.map → IconButton-GU3Ud4Zg.js.map} +1 -1
- package/dist/List-9lUjapQ5.cjs +2 -0
- package/dist/List-9lUjapQ5.cjs.map +1 -0
- package/dist/List-CZwNGxuP.js +107 -0
- package/dist/List-CZwNGxuP.js.map +1 -0
- package/dist/{Loader-fffFnQqS.js → Loader-C1uaCtx6.js} +2 -2
- package/dist/{Loader-fffFnQqS.js.map → Loader-C1uaCtx6.js.map} +1 -1
- package/dist/{Loader-0Imnbael.cjs → Loader-Cpr9-OOZ.cjs} +2 -2
- package/dist/{Loader-0Imnbael.cjs.map → Loader-Cpr9-OOZ.cjs.map} +1 -1
- package/dist/Modal-DFeBHv-Q.cjs +2 -0
- package/dist/Modal-DFeBHv-Q.cjs.map +1 -0
- package/dist/Modal-DHP2R3K3.js +196 -0
- package/dist/Modal-DHP2R3K3.js.map +1 -0
- package/dist/MultiSelect-B-FPQ08c.js +219 -0
- package/dist/MultiSelect-B-FPQ08c.js.map +1 -0
- package/dist/MultiSelect-S5VG9g3l.cjs +2 -0
- package/dist/MultiSelect-S5VG9g3l.cjs.map +1 -0
- package/dist/{MultilineTextField-Dz6Fg8RJ.cjs → MultilineTextField-B6EYAdik.cjs} +2 -2
- package/dist/{MultilineTextField-Dz6Fg8RJ.cjs.map → MultilineTextField-B6EYAdik.cjs.map} +1 -1
- package/dist/{MultilineTextField-CwNCJ9lZ.js → MultilineTextField-BgfBFeeF.js} +2 -2
- package/dist/{MultilineTextField-CwNCJ9lZ.js.map → MultilineTextField-BgfBFeeF.js.map} +1 -1
- package/dist/{NumberField-DYGVQdL5.js → NumberField-CzyvDMRV.js} +4 -4
- package/dist/{NumberField-DYGVQdL5.js.map → NumberField-CzyvDMRV.js.map} +1 -1
- package/dist/{NumberField-C_HZXBuw.cjs → NumberField-SSGXlF8U.cjs} +2 -2
- package/dist/{NumberField-C_HZXBuw.cjs.map → NumberField-SSGXlF8U.cjs.map} +1 -1
- package/dist/{OtpField-CpQr_ZqL.js → OtpField-CMoJqcx1.js} +3 -3
- package/dist/{OtpField-CpQr_ZqL.js.map → OtpField-CMoJqcx1.js.map} +1 -1
- package/dist/{OtpField-DKbUP0F6.cjs → OtpField-Pr7Ch0El.cjs} +2 -2
- package/dist/{OtpField-DKbUP0F6.cjs.map → OtpField-Pr7Ch0El.cjs.map} +1 -1
- package/dist/{PageLayout-CuWXukUv.cjs → PageLayout-BIMkjq-q.cjs} +2 -2
- package/dist/{PageLayout-CuWXukUv.cjs.map → PageLayout-BIMkjq-q.cjs.map} +1 -1
- package/dist/{PageLayout-CCcPCfJF.js → PageLayout-Ctr-IEzX.js} +2 -2
- package/dist/{PageLayout-CCcPCfJF.js.map → PageLayout-Ctr-IEzX.js.map} +1 -1
- package/dist/{PageNotFound-JKOnpyHD.cjs → PageNotFound-CnhBheI4.cjs} +2 -2
- package/dist/PageNotFound-CnhBheI4.cjs.map +1 -0
- package/dist/{PageNotFound-LWH2tU5E.js → PageNotFound-KKJTeaRF.js} +5 -5
- package/dist/PageNotFound-KKJTeaRF.js.map +1 -0
- package/dist/{Pagination-M7njqOUt.cjs → Pagination-BD5WOW98.cjs} +2 -2
- package/dist/{Pagination-M7njqOUt.cjs.map → Pagination-BD5WOW98.cjs.map} +1 -1
- package/dist/{Pagination-BwtbmITJ.js → Pagination-Oyms2ERd.js} +2 -2
- package/dist/{Pagination-BwtbmITJ.js.map → Pagination-Oyms2ERd.js.map} +1 -1
- package/dist/{PaletteField-CUyzLrny.js → PaletteField-BHzzzdou.js} +3 -3
- package/dist/{PaletteField-CUyzLrny.js.map → PaletteField-BHzzzdou.js.map} +1 -1
- package/dist/{PaletteField-iBIvOvNi.cjs → PaletteField-CCQGW5LC.cjs} +2 -2
- package/dist/{PaletteField-iBIvOvNi.cjs.map → PaletteField-CCQGW5LC.cjs.map} +1 -1
- package/dist/PhoneField-5zGY4Wko.cjs +2 -0
- package/dist/PhoneField-5zGY4Wko.cjs.map +1 -0
- package/dist/PhoneField-CBfmChPx.js +372 -0
- package/dist/PhoneField-CBfmChPx.js.map +1 -0
- package/dist/Popconfirm-BtGDhqrc.js +113 -0
- package/dist/Popconfirm-BtGDhqrc.js.map +1 -0
- package/dist/Popconfirm-CkBdntxV.cjs +2 -0
- package/dist/Popconfirm-CkBdntxV.cjs.map +1 -0
- package/dist/{Popover-CgIU4Rhg.js → Popover-B82Id9Ut.js} +2 -2
- package/dist/{Popover-CgIU4Rhg.js.map → Popover-B82Id9Ut.js.map} +1 -1
- package/dist/{Popover-CBI1icIM.cjs → Popover-DAT6DcM9.cjs} +2 -2
- package/dist/{Popover-CBI1icIM.cjs.map → Popover-DAT6DcM9.cjs.map} +1 -1
- package/dist/Progress-Bwxx71Ns.cjs +2 -0
- package/dist/Progress-Bwxx71Ns.cjs.map +1 -0
- package/dist/Progress-pTbaOSDd.js +119 -0
- package/dist/Progress-pTbaOSDd.js.map +1 -0
- package/dist/QrCode-BQ1eUiAJ.cjs +2 -0
- package/dist/QrCode-BQ1eUiAJ.cjs.map +1 -0
- package/dist/QrCode-osD23Vkt.js +80 -0
- package/dist/QrCode-osD23Vkt.js.map +1 -0
- package/dist/QueryError-Bu_MNGek.js +19 -0
- package/dist/QueryError-Bu_MNGek.js.map +1 -0
- package/dist/QueryError-C01oichG.cjs +2 -0
- package/dist/QueryError-C01oichG.cjs.map +1 -0
- package/dist/RadioGroup-BcFBdFhh.cjs +2 -0
- package/dist/{RadioGroup-Byy-eSY3.cjs.map → RadioGroup-BcFBdFhh.cjs.map} +1 -1
- package/dist/RadioGroup-dVx_hMCY.js +141 -0
- package/dist/{RadioGroup-D_1_Heta.js.map → RadioGroup-dVx_hMCY.js.map} +1 -1
- package/dist/RemoveDialog-Bm2mJB3l.cjs +2 -0
- package/dist/RemoveDialog-Bm2mJB3l.cjs.map +1 -0
- package/dist/RemoveDialog-C2uJzWi-.js +109 -0
- package/dist/RemoveDialog-C2uJzWi-.js.map +1 -0
- package/dist/{RichTextEditor-CG6LoNiw.js → RichTextEditor-BDAWmQrN.js} +11 -11
- package/dist/{RichTextEditor-CG6LoNiw.js.map → RichTextEditor-BDAWmQrN.js.map} +1 -1
- package/dist/RichTextEditor-D4HpPT3C.cjs +2 -0
- package/dist/{RichTextEditor-mpMCG8jX.cjs.map → RichTextEditor-D4HpPT3C.cjs.map} +1 -1
- package/dist/{RootLayout-D3K-pAMO.js → RootLayout-CxncyjCz.js} +19 -19
- package/dist/{RootLayout-D3K-pAMO.js.map → RootLayout-CxncyjCz.js.map} +1 -1
- package/dist/RootLayout-XEcU_MBs.cjs +2 -0
- package/dist/{RootLayout-CPxDqfGb.cjs.map → RootLayout-XEcU_MBs.cjs.map} +1 -1
- package/dist/Select-CVVJKAtS.cjs +2 -0
- package/dist/Select-CVVJKAtS.cjs.map +1 -0
- package/dist/Select-d9LDI8O3.js +199 -0
- package/dist/Select-d9LDI8O3.js.map +1 -0
- package/dist/Sidebar-B8ecHwZr.cjs +2 -0
- package/dist/Sidebar-B8ecHwZr.cjs.map +1 -0
- package/dist/{Sidebar-CsPnv4mu.js → Sidebar-BgCfnZBF.js} +173 -163
- package/dist/Sidebar-BgCfnZBF.js.map +1 -0
- package/dist/Skeleton-DK0lAjS9.cjs +2 -0
- package/dist/Skeleton-DK0lAjS9.cjs.map +1 -0
- package/dist/Skeleton-_-uGax2j.js +56 -0
- package/dist/Skeleton-_-uGax2j.js.map +1 -0
- package/dist/{Slider-D3dbEOQY.cjs → Slider-Cu1FhxR2.cjs} +2 -2
- package/dist/{Slider-D3dbEOQY.cjs.map → Slider-Cu1FhxR2.cjs.map} +1 -1
- package/dist/{Slider-D7SvowmM.js → Slider-DoQJWgGU.js} +2 -2
- package/dist/{Slider-D7SvowmM.js.map → Slider-DoQJWgGU.js.map} +1 -1
- package/dist/{SpeedDial-B8XMUATN.js → SpeedDial-CBVwgnFp.js} +2 -2
- package/dist/{SpeedDial-B8XMUATN.js.map → SpeedDial-CBVwgnFp.js.map} +1 -1
- package/dist/{SpeedDial-CZ22T8GL.cjs → SpeedDial-CEr2JWQb.cjs} +2 -2
- package/dist/{SpeedDial-CZ22T8GL.cjs.map → SpeedDial-CEr2JWQb.cjs.map} +1 -1
- package/dist/{Stepper-BjkkWawQ.cjs → Stepper-DOSc03YV.cjs} +2 -2
- package/dist/{Stepper-BjkkWawQ.cjs.map → Stepper-DOSc03YV.cjs.map} +1 -1
- package/dist/{Stepper-B_e_PGZE.js → Stepper-DtYamv1q.js} +2 -2
- package/dist/{Stepper-B_e_PGZE.js.map → Stepper-DtYamv1q.js.map} +1 -1
- package/dist/{SwatchPicker-C8amdDnA.cjs → SwatchPicker-BWXqgsEy.cjs} +2 -2
- package/dist/{SwatchPicker-C8amdDnA.cjs.map → SwatchPicker-BWXqgsEy.cjs.map} +1 -1
- package/dist/{SwatchPicker-DXEE9xqY.js → SwatchPicker-Bpxk0IOe.js} +2 -2
- package/dist/{SwatchPicker-DXEE9xqY.js.map → SwatchPicker-Bpxk0IOe.js.map} +1 -1
- package/dist/Switch-DSs2Y0IR.cjs +2 -0
- package/dist/{Switch-CodRZD3y.cjs.map → Switch-DSs2Y0IR.cjs.map} +1 -1
- package/dist/Switch-Jh2Ch8GO.js +85 -0
- package/dist/{Switch-ESrhkpJC.js.map → Switch-Jh2Ch8GO.js.map} +1 -1
- package/dist/Table-AzNzUAkl.js +1170 -0
- package/dist/Table-AzNzUAkl.js.map +1 -0
- package/dist/Table-CrpWhZUg.cjs +2 -0
- package/dist/Table-CrpWhZUg.cjs.map +1 -0
- package/dist/{Tabs-CZDX7BN-.cjs → Tabs-CMnLXRjA.cjs} +2 -2
- package/dist/{Tabs-CZDX7BN-.cjs.map → Tabs-CMnLXRjA.cjs.map} +1 -1
- package/dist/{Tabs-v1GEGUDQ.js → Tabs-D1RGhKsa.js} +2 -2
- package/dist/{Tabs-v1GEGUDQ.js.map → Tabs-D1RGhKsa.js.map} +1 -1
- package/dist/{TagsField-OfrpyHZO.cjs → TagsField-DcuSn7wL.cjs} +2 -2
- package/dist/{TagsField-OfrpyHZO.cjs.map → TagsField-DcuSn7wL.cjs.map} +1 -1
- package/dist/{TagsField-B389eDp4.js → TagsField-DuQEFHZ3.js} +5 -5
- package/dist/{TagsField-B389eDp4.js.map → TagsField-DuQEFHZ3.js.map} +1 -1
- package/dist/{TextField-B785pRgK.cjs → TextField-E85pvJQC.cjs} +2 -2
- package/dist/{TextField-B785pRgK.cjs.map → TextField-E85pvJQC.cjs.map} +1 -1
- package/dist/{TextField-7MobCad5.js → TextField-SGYWviFf.js} +4 -4
- package/dist/{TextField-7MobCad5.js.map → TextField-SGYWviFf.js.map} +1 -1
- package/dist/{ThemeToggle-BkmZ7s_u.cjs → ThemeToggle-BdlxzYNt.cjs} +2 -2
- package/dist/{ThemeToggle-BkmZ7s_u.cjs.map → ThemeToggle-BdlxzYNt.cjs.map} +1 -1
- package/dist/{ThemeToggle-BGdvqXad.js → ThemeToggle-C2kjFrD_.js} +3 -3
- package/dist/{ThemeToggle-BGdvqXad.js.map → ThemeToggle-C2kjFrD_.js.map} +1 -1
- package/dist/{TimeColumns-BRlDKx_i.js → TimeColumns-BS1d0qOp.js} +2 -2
- package/dist/{TimeColumns-BRlDKx_i.js.map → TimeColumns-BS1d0qOp.js.map} +1 -1
- package/dist/{TimeColumns-B-xm1DGM.cjs → TimeColumns-D7-O4Qyt.cjs} +2 -2
- package/dist/{TimeColumns-B-xm1DGM.cjs.map → TimeColumns-D7-O4Qyt.cjs.map} +1 -1
- package/dist/{TimePicker-B_3Ubip0.js → TimePicker-DlzYNDN1.js} +7 -7
- package/dist/{TimePicker-B_3Ubip0.js.map → TimePicker-DlzYNDN1.js.map} +1 -1
- package/dist/{TimePicker-DvEIdE4v.cjs → TimePicker-Dzb3gycP.cjs} +2 -2
- package/dist/{TimePicker-DvEIdE4v.cjs.map → TimePicker-Dzb3gycP.cjs.map} +1 -1
- package/dist/{Toaster-BIFRuqbC.cjs → Toaster-Cummylmj.cjs} +2 -2
- package/dist/{Toaster-BIFRuqbC.cjs.map → Toaster-Cummylmj.cjs.map} +1 -1
- package/dist/{Toaster-DuzcRbio.js → Toaster-cu5XyKeE.js} +2 -2
- package/dist/{Toaster-DuzcRbio.js.map → Toaster-cu5XyKeE.js.map} +1 -1
- package/dist/{TranslatedFields-D_a0NVKI.cjs → TranslatedFields-CbTlgKnh.cjs} +2 -2
- package/dist/{TranslatedFields-D_a0NVKI.cjs.map → TranslatedFields-CbTlgKnh.cjs.map} +1 -1
- package/dist/{TranslatedFields-HmP0Mg5t.js → TranslatedFields-Ccjhq2YL.js} +5 -5
- package/dist/{TranslatedFields-HmP0Mg5t.js.map → TranslatedFields-Ccjhq2YL.js.map} +1 -1
- package/dist/Typography-B6ASPrzT.cjs +2 -0
- package/dist/Typography-B6ASPrzT.cjs.map +1 -0
- package/dist/Typography-CJv5AnRP.js +70 -0
- package/dist/Typography-CJv5AnRP.js.map +1 -0
- package/dist/UserCard-BfHHfkDr.cjs +2 -0
- package/dist/UserCard-BfHHfkDr.cjs.map +1 -0
- package/dist/UserCard-Bs8kuV2j.js +78 -0
- package/dist/UserCard-Bs8kuV2j.js.map +1 -0
- package/dist/app/AdminRoot.d.cts +10 -3
- package/dist/app/AdminRoot.d.ts +10 -3
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AuthLayout/index.cjs +1 -1
- package/dist/components/AuthLayout/index.js +1 -1
- package/dist/components/Avatar/Avatar.d.cts +7 -1
- package/dist/components/Avatar/Avatar.d.ts +7 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/Breadcrumbs/index.cjs +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.cjs +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/Card.d.cts +2 -0
- package/dist/components/Card/Card.d.ts +2 -0
- package/dist/components/Card/index.cjs +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Checkbox/index.cjs +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/index.cjs +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/ChoiceCard/index.cjs +1 -1
- package/dist/components/ChoiceCard/index.js +1 -1
- package/dist/components/CodeBlock/index.cjs +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/ColorPicker/index.cjs +1 -1
- package/dist/components/ColorPicker/index.js +1 -1
- package/dist/components/ColorRamp/index.cjs +1 -1
- package/dist/components/ColorRamp/index.js +1 -1
- package/dist/components/CopyButton/index.cjs +1 -1
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateTimePicker/index.cjs +1 -1
- package/dist/components/DateTimePicker/index.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.d.cts +76 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +76 -0
- package/dist/components/DescriptionList/index.cjs +2 -0
- package/dist/components/DescriptionList/index.cjs.map +1 -0
- package/dist/components/DescriptionList/index.d.cts +2 -0
- package/dist/components/DescriptionList/index.d.ts +2 -0
- package/dist/components/DescriptionList/index.js +6 -0
- package/dist/components/DescriptionList/index.js.map +1 -0
- package/dist/components/Dropdown/index.cjs +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.cts +4 -1
- package/dist/components/EmptyState/EmptyState.d.ts +4 -1
- package/dist/components/EmptyState/index.cjs +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/ErrorState/ErrorBoundary.d.cts +35 -0
- package/dist/components/ErrorState/ErrorBoundary.d.ts +35 -0
- package/dist/components/ErrorState/ErrorState.d.cts +48 -0
- package/dist/components/ErrorState/ErrorState.d.ts +48 -0
- package/dist/components/ErrorState/QueryError.d.cts +18 -0
- package/dist/components/ErrorState/QueryError.d.ts +18 -0
- package/dist/components/ErrorState/errorMessage.d.cts +26 -0
- package/dist/components/ErrorState/errorMessage.d.ts +26 -0
- package/dist/components/ErrorState/index.cjs +2 -0
- package/dist/components/ErrorState/index.cjs.map +1 -0
- package/dist/components/ErrorState/index.d.cts +7 -0
- package/dist/components/ErrorState/index.d.ts +7 -0
- package/dist/components/ErrorState/index.js +13 -0
- package/dist/components/ErrorState/index.js.map +1 -0
- package/dist/components/FileCard/index.cjs +1 -1
- package/dist/components/FileCard/index.js +1 -1
- package/dist/components/FileUploader/index.cjs +1 -1
- package/dist/components/FileUploader/index.js +1 -1
- package/dist/components/Flag/index.cjs +1 -1
- package/dist/components/Flag/index.js +1 -1
- package/dist/components/FloatingPanel/FloatingPanel.d.cts +4 -0
- package/dist/components/FloatingPanel/FloatingPanel.d.ts +4 -0
- package/dist/components/FullscreenToggle/index.cjs +1 -1
- package/dist/components/FullscreenToggle/index.js +1 -1
- package/dist/components/IconButton/index.cjs +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/List/List.d.cts +13 -3
- package/dist/components/List/List.d.ts +13 -3
- package/dist/components/List/ListItem.d.cts +5 -0
- package/dist/components/List/ListItem.d.ts +5 -0
- package/dist/components/List/index.cjs +1 -1
- package/dist/components/List/index.js +4 -5
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/List/listContext.d.cts +9 -3
- package/dist/components/List/listContext.d.ts +9 -3
- package/dist/components/Loader/index.cjs +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Modal/Modal.d.cts +2 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MultiSelect/index.cjs +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultilineTextField/index.cjs +1 -1
- package/dist/components/MultilineTextField/index.js +1 -1
- package/dist/components/NumberField/index.cjs +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionMenu/OptionMenu.d.cts +40 -0
- package/dist/components/OptionMenu/OptionMenu.d.ts +40 -0
- package/dist/components/OptionMenu/useOptionMenu.d.cts +81 -0
- package/dist/components/OptionMenu/useOptionMenu.d.ts +81 -0
- package/dist/components/OtpField/index.cjs +1 -1
- package/dist/components/OtpField/index.js +1 -1
- package/dist/components/PageLayout/index.cjs +1 -1
- package/dist/components/PageLayout/index.js +1 -1
- package/dist/components/PageNotFound/PageNotFound.d.cts +1 -1
- package/dist/components/PageNotFound/PageNotFound.d.ts +1 -1
- package/dist/components/PageNotFound/index.cjs +1 -1
- package/dist/components/PageNotFound/index.js +1 -1
- package/dist/components/Pagination/index.cjs +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/PaletteField/index.cjs +1 -1
- package/dist/components/PaletteField/index.js +1 -1
- package/dist/components/PhoneField/PhoneField.d.cts +54 -0
- package/dist/components/PhoneField/PhoneField.d.ts +54 -0
- package/dist/components/PhoneField/index.cjs +2 -0
- package/dist/components/PhoneField/index.cjs.map +1 -0
- package/dist/components/PhoneField/index.d.cts +4 -0
- package/dist/components/PhoneField/index.d.ts +4 -0
- package/dist/components/PhoneField/index.js +7 -0
- package/dist/components/PhoneField/index.js.map +1 -0
- package/dist/components/PhoneField/phone.d.cts +50 -0
- package/dist/components/PhoneField/phone.d.ts +50 -0
- package/dist/components/Popconfirm/Popconfirm.d.cts +53 -0
- package/dist/components/Popconfirm/Popconfirm.d.ts +53 -0
- package/dist/components/Popconfirm/index.cjs +2 -0
- package/dist/components/Popconfirm/index.cjs.map +1 -0
- package/dist/components/Popconfirm/index.d.cts +2 -0
- package/dist/components/Popconfirm/index.d.ts +2 -0
- package/dist/components/Popconfirm/index.js +6 -0
- package/dist/components/Popconfirm/index.js.map +1 -0
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Progress/Progress.d.cts +50 -0
- package/dist/components/Progress/Progress.d.ts +50 -0
- package/dist/components/Progress/index.cjs +2 -0
- package/dist/components/Progress/index.cjs.map +1 -0
- package/dist/components/Progress/index.d.cts +2 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +6 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/QrCode/QrCode.d.cts +3 -0
- package/dist/components/QrCode/QrCode.d.ts +3 -0
- package/dist/components/QrCode/index.cjs +1 -1
- package/dist/components/QrCode/index.js +1 -1
- package/dist/components/Radio/index.cjs +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RemoveDialog/RemoveDialog.d.cts +8 -1
- package/dist/components/RemoveDialog/RemoveDialog.d.ts +8 -1
- package/dist/components/RemoveDialog/index.cjs +1 -1
- package/dist/components/RemoveDialog/index.js +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/RootLayout/index.cjs +1 -1
- package/dist/components/RootLayout/index.js +1 -1
- package/dist/components/Select/Select.d.cts +2 -12
- package/dist/components/Select/Select.d.ts +2 -12
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Sidebar/index.cjs +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.cts +31 -0
- package/dist/components/Skeleton/Skeleton.d.ts +31 -0
- package/dist/components/Skeleton/index.cjs +2 -0
- package/dist/components/Skeleton/index.cjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +2 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +6 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/Slider/index.cjs +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/SpeedDial/index.cjs +1 -1
- package/dist/components/SpeedDial/index.js +1 -1
- package/dist/components/Stepper/index.cjs +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SwatchPicker/index.cjs +1 -1
- package/dist/components/SwatchPicker/index.js +1 -1
- package/dist/components/Switch/index.cjs +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/Table.d.cts +7 -1
- package/dist/components/Table/Table.d.ts +7 -1
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/index.cjs +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/TagsField/index.cjs +1 -1
- package/dist/components/TagsField/index.js +1 -1
- package/dist/components/TextField/index.cjs +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/ThemeToggle/index.cjs +1 -1
- package/dist/components/ThemeToggle/index.js +1 -1
- package/dist/components/TimePicker/index.cjs +1 -1
- package/dist/components/TimePicker/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/TranslatedFields/index.cjs +1 -1
- package/dist/components/TranslatedFields/index.js +1 -1
- package/dist/components/Typography/Typography.d.cts +10 -3
- package/dist/components/Typography/Typography.d.ts +10 -3
- package/dist/components/Typography/index.cjs +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/UserCard/UserCard.d.cts +3 -1
- package/dist/components/UserCard/UserCard.d.ts +3 -1
- package/dist/components/UserCard/index.cjs +1 -1
- package/dist/components/UserCard/index.js +1 -1
- package/dist/components/index.d.cts +6 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/entries/app.cjs +1 -1
- package/dist/entries/app.js +1 -1
- package/dist/entries/components.cjs +1 -1
- package/dist/entries/components.js +171 -152
- package/dist/entries/components.js.map +1 -1
- package/dist/entries/hooks.cjs +1 -1
- package/dist/entries/hooks.d.cts +2 -0
- package/dist/entries/hooks.d.ts +2 -0
- package/dist/entries/hooks.js +9 -8
- package/dist/entries/i18n.cjs +1 -1
- package/dist/entries/i18n.js +2 -2
- package/dist/entries/theme.cjs +1 -1
- package/dist/entries/theme.js +1 -1
- package/dist/hooks/index.d.cts +2 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useOptionalPeer.d.cts +21 -0
- package/dist/hooks/useOptionalPeer.d.ts +21 -0
- package/dist/hooks/useTableQuery.d.cts +56 -0
- package/dist/hooks/useTableQuery.d.ts +56 -0
- package/dist/i18n/messages.d.cts +14 -0
- package/dist/i18n/messages.d.ts +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +244 -224
- package/dist/index.js.map +1 -1
- package/dist/{messages-B06Kl5rI.js → messages-DCefu6Pn.js} +128 -30
- package/dist/messages-DCefu6Pn.js.map +1 -0
- package/dist/messages-FiUqCKjJ.cjs +36 -0
- package/dist/messages-FiUqCKjJ.cjs.map +1 -0
- package/dist/useForm-CN-qCrP7.js +144 -0
- package/dist/useForm-CN-qCrP7.js.map +1 -0
- package/dist/useForm-WvV361y6.cjs +2 -0
- package/dist/useForm-WvV361y6.cjs.map +1 -0
- package/dist/useOptionMenu-BoWyPgbY.cjs +2 -0
- package/dist/useOptionMenu-BoWyPgbY.cjs.map +1 -0
- package/dist/useOptionMenu-D7EbYG9A.js +286 -0
- package/dist/useOptionMenu-D7EbYG9A.js.map +1 -0
- package/dist/useOptionalPeer-49f3XcO5.js +28 -0
- package/dist/useOptionalPeer-49f3XcO5.js.map +1 -0
- package/dist/useOptionalPeer-9Fkx5Leb.cjs +2 -0
- package/dist/useOptionalPeer-9Fkx5Leb.cjs.map +1 -0
- package/package.json +7 -1
- package/dist/AdminRoot-C4OyuOIr.js +0 -50
- package/dist/AdminRoot-C4OyuOIr.js.map +0 -1
- package/dist/AdminRoot-bHywlbML.cjs +0 -2
- package/dist/AdminRoot-bHywlbML.cjs.map +0 -1
- package/dist/Avatar-BGPGxry2.js +0 -60
- package/dist/Avatar-BGPGxry2.js.map +0 -1
- package/dist/Avatar-D_YivyqV.cjs +0 -2
- package/dist/Avatar-D_YivyqV.cjs.map +0 -1
- package/dist/Card-BRJV2JZE.js +0 -118
- package/dist/Card-BRJV2JZE.js.map +0 -1
- package/dist/Card-KvvNlchc.cjs +0 -2
- package/dist/Card-KvvNlchc.cjs.map +0 -1
- package/dist/Checkbox-ZYOSBYRt.js +0 -98
- package/dist/Checkbox-fzJCwe0j.cjs +0 -2
- package/dist/EmptyState-A5nPGnHA.js +0 -38
- package/dist/EmptyState-A5nPGnHA.js.map +0 -1
- package/dist/EmptyState-CTTOy9aY.cjs +0 -2
- package/dist/EmptyState-CTTOy9aY.cjs.map +0 -1
- package/dist/FileCard-BmPEEcue.js +0 -148
- package/dist/FileCard-BmPEEcue.js.map +0 -1
- package/dist/FileCard-C4BkGMtK.cjs +0 -2
- package/dist/FileCard-C4BkGMtK.cjs.map +0 -1
- package/dist/FileUploader-D_F64mob.cjs +0 -2
- package/dist/FileUploader-D_F64mob.cjs.map +0 -1
- package/dist/FileUploader-Dv_3bjZA.js +0 -684
- package/dist/FileUploader-Dv_3bjZA.js.map +0 -1
- package/dist/FloatingPanel-BG9Uag__.js +0 -131
- package/dist/FloatingPanel-BG9Uag__.js.map +0 -1
- package/dist/FloatingPanel-U6sGYiSK.cjs +0 -2
- package/dist/FloatingPanel-U6sGYiSK.cjs.map +0 -1
- package/dist/List-ChXO0Hz-.cjs +0 -2
- package/dist/List-ChXO0Hz-.cjs.map +0 -1
- package/dist/List-LqbfF6gU.js +0 -26
- package/dist/List-LqbfF6gU.js.map +0 -1
- package/dist/ListItem-Cn15lJBr.js +0 -74
- package/dist/ListItem-Cn15lJBr.js.map +0 -1
- package/dist/ListItem-yXXjtepZ.cjs +0 -2
- package/dist/ListItem-yXXjtepZ.cjs.map +0 -1
- package/dist/Modal--e2qGisF.cjs +0 -2
- package/dist/Modal--e2qGisF.cjs.map +0 -1
- package/dist/Modal-DJljaPqV.js +0 -195
- package/dist/Modal-DJljaPqV.js.map +0 -1
- package/dist/MultiSelect-CvecZeMU.cjs +0 -2
- package/dist/MultiSelect-CvecZeMU.cjs.map +0 -1
- package/dist/MultiSelect-DLoS04lZ.js +0 -350
- package/dist/MultiSelect-DLoS04lZ.js.map +0 -1
- package/dist/PageNotFound-JKOnpyHD.cjs.map +0 -1
- package/dist/PageNotFound-LWH2tU5E.js.map +0 -1
- package/dist/QrCode-Bcj9_Emc.js +0 -70
- package/dist/QrCode-Bcj9_Emc.js.map +0 -1
- package/dist/QrCode-DfDfGhG-.cjs +0 -2
- package/dist/QrCode-DfDfGhG-.cjs.map +0 -1
- package/dist/RadioGroup-Byy-eSY3.cjs +0 -2
- package/dist/RadioGroup-D_1_Heta.js +0 -141
- package/dist/RemoveDialog-DUrD2Em8.js +0 -47
- package/dist/RemoveDialog-DUrD2Em8.js.map +0 -1
- package/dist/RemoveDialog-FZWYAxRy.cjs +0 -2
- package/dist/RemoveDialog-FZWYAxRy.cjs.map +0 -1
- package/dist/RichTextEditor-mpMCG8jX.cjs +0 -2
- package/dist/RootLayout-CPxDqfGb.cjs +0 -2
- package/dist/Select-BB9oOoWZ.js +0 -338
- package/dist/Select-BB9oOoWZ.js.map +0 -1
- package/dist/Select-iP2p5jad.cjs +0 -2
- package/dist/Select-iP2p5jad.cjs.map +0 -1
- package/dist/Sidebar-Boi7UgHV.cjs +0 -2
- package/dist/Sidebar-Boi7UgHV.cjs.map +0 -1
- package/dist/Sidebar-CsPnv4mu.js.map +0 -1
- package/dist/Switch-CodRZD3y.cjs +0 -2
- package/dist/Switch-ESrhkpJC.js +0 -85
- package/dist/Table-Cr1zUtNQ.cjs +0 -2
- package/dist/Table-Cr1zUtNQ.cjs.map +0 -1
- package/dist/Table-DdoUcZoN.js +0 -1099
- package/dist/Table-DdoUcZoN.js.map +0 -1
- package/dist/Typography-BFatE1_A.cjs +0 -2
- package/dist/Typography-BFatE1_A.cjs.map +0 -1
- package/dist/Typography-Cta6Rg4L.js +0 -51
- package/dist/Typography-Cta6Rg4L.js.map +0 -1
- package/dist/UserCard-B1phOVKj.js +0 -74
- package/dist/UserCard-B1phOVKj.js.map +0 -1
- package/dist/UserCard-BvOcDm5W.cjs +0 -2
- package/dist/UserCard-BvOcDm5W.cjs.map +0 -1
- package/dist/messages-B06Kl5rI.js.map +0 -1
- package/dist/messages-CJqxqL3t.cjs +0 -36
- package/dist/messages-CJqxqL3t.cjs.map +0 -1
- package/dist/useForm-B_5wDIER.js +0 -126
- package/dist/useForm-B_5wDIER.js.map +0 -1
- package/dist/useForm-C7erBHt0.cjs +0 -2
- package/dist/useForm-C7erBHt0.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover-
|
|
1
|
+
{"version":3,"file":"Popover-B82Id9Ut.js","sources":["../src/components/Popover/Popover.tsx"],"sourcesContent":["import {\n cloneElement,\n useId,\n useRef,\n useState,\n type CSSProperties,\n type MouseEvent as ReactMouseEvent,\n type ReactElement,\n type ReactNode,\n type Ref,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { FloatingPanel } from '../FloatingPanel/FloatingPanel'\nimport styles from './Popover.module.css'\n\nexport type PopoverAlign = 'start' | 'end'\n\nexport interface PopoverProps {\n /** Element that toggles the popover (e.g. a `Button`/`IconButton`). Cloned to wire click + a11y. */\n trigger: ReactElement\n /** Popover content — arbitrary (a header/body/footer, a form, a filter panel, …). */\n children: ReactNode\n /**\n * Horizontal alignment to the trigger: `start` (default — left edges align, grows right) or `end`\n * (right edges align, grows left — for a trigger near the right edge).\n */\n align?: PopoverAlign\n /** Controlled open state. */\n open?: boolean\n /** Initial open state for uncontrolled use. Defaults to `false`. */\n defaultOpen?: boolean\n /** Fires with the next open state. */\n onOpenChange?: (open: boolean) => void\n /** Trap Tab focus inside (+ `aria-modal`) — for form/filter popovers. Defaults to `false`. */\n trapFocus?: boolean\n /** Make the panel at least as wide as the trigger. Defaults to `false`. */\n matchTriggerWidth?: boolean\n /** Fixed panel width (px number or any CSS width). */\n width?: number | string\n /** Accessible label for the panel (`role=\"dialog\"`). */\n ariaLabel?: string\n /** Prevents opening. */\n disabled?: boolean\n /** Class applied to the floating panel. */\n className?: string\n /** Style applied to the floating panel. */\n style?: CSSProperties\n}\n\n/**\n * An anchored popover holding **arbitrary content** — the generic floating surface for filter panels,\n * forms, detail cards, etc. (unlike `Dropdown`, which is a `role=\"menu\"` of items). Built on the shared\n * `FloatingPanel`: portaled to `<body>`, opens below the `trigger` (flips above on overflow), locks page\n * scroll, dismisses on outside-pointerdown / `Escape` (refocusing the trigger), and animates in. The\n * trigger is cloned to wire `onClick` + `aria-haspopup=\"dialog\"`/`aria-expanded`/`aria-controls`.\n * `trapFocus` cycles Tab within (for forms). Controlled (`open` + `onOpenChange`) or uncontrolled\n * (`defaultOpen`). The panel is `role=\"dialog\"`.\n */\nexport function Popover({\n trigger,\n children,\n align = 'start',\n open,\n defaultOpen = false,\n onOpenChange,\n trapFocus = false,\n matchTriggerWidth = false,\n width,\n ariaLabel,\n disabled = false,\n className,\n style,\n}: PopoverProps) {\n const panelId = useId()\n const triggerRef = useRef<HTMLElement | null>(null)\n\n const isControlled = open !== undefined\n const [internalOpen, setInternalOpen] = useState(defaultOpen)\n const isOpen = isControlled ? open : internalOpen\n\n const setOpen = (next: boolean) => {\n if (!isControlled) setInternalOpen(next)\n onOpenChange?.(next)\n }\n\n const triggerProps = trigger.props as {\n onClick?: (event: ReactMouseEvent) => void\n ref?: Ref<HTMLElement>\n }\n const originalRef = triggerProps.ref\n\n const clonedTrigger = cloneElement(trigger as ReactElement<Record<string, unknown>>, {\n ref: (node: HTMLElement | null) => {\n triggerRef.current = node\n if (typeof originalRef === 'function') originalRef(node)\n else if (originalRef) (originalRef as { current: HTMLElement | null }).current = node\n },\n onClick: (event: ReactMouseEvent) => {\n triggerProps.onClick?.(event)\n if (!disabled) setOpen(!isOpen)\n },\n 'aria-haspopup': 'dialog',\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? panelId : undefined,\n })\n\n return (\n <>\n {clonedTrigger}\n <FloatingPanel\n open={isOpen}\n triggerRef={triggerRef}\n align={align}\n onClose={(refocus) => {\n setOpen(false)\n if (refocus) triggerRef.current?.focus()\n }}\n id={panelId}\n role=\"dialog\"\n ariaLabel={ariaLabel}\n trapFocus={trapFocus}\n matchTriggerWidth={matchTriggerWidth}\n width={width}\n className={clsx(styles.popover, className)}\n style={style}\n >\n {children}\n </FloatingPanel>\n </>\n )\n}\n"],"names":["Popover","trigger","children","align","open","defaultOpen","onOpenChange","trapFocus","matchTriggerWidth","width","ariaLabel","disabled","className","style","panelId","useId","triggerRef","useRef","isControlled","internalOpen","setInternalOpen","useState","isOpen","setOpen","next","triggerProps","originalRef","clonedTrigger","cloneElement","node","event","_a","jsxs","Fragment","jsx","FloatingPanel","refocus","clsx","styles"],"mappings":";;;;;;;AA0DO,SAASA,EAAQ;AAAA,EACtB,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,cAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,mBAAAC,IAAoB;AAAA,EACpB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,WAAAC;AAAA,EACA,OAAAC;AACF,GAAiB;AACf,QAAMC,IAAUC,EAAA,GACVC,IAAaC,EAA2B,IAAI,GAE5CC,IAAed,MAAS,QACxB,CAACe,GAAcC,CAAe,IAAIC,EAAShB,CAAW,GACtDiB,IAASJ,IAAed,IAAOe,GAE/BI,IAAU,CAACC,MAAkB;AACjC,IAAKN,KAAcE,EAAgBI,CAAI,GACvClB,KAAA,QAAAA,EAAekB;AAAA,EACjB,GAEMC,IAAexB,EAAQ,OAIvByB,IAAcD,EAAa,KAE3BE,IAAgBC,EAAa3B,GAAkD;AAAA,IACnF,KAAK,CAAC4B,MAA6B;AACjC,MAAAb,EAAW,UAAUa,GACjB,OAAOH,KAAgB,aAAYA,EAAYG,CAAI,IAC9CH,MAAcA,EAAgD,UAAUG;AAAA,IACnF;AAAA,IACA,SAAS,CAACC,MAA2B;;AACnC,OAAAC,IAAAN,EAAa,YAAb,QAAAM,EAAA,KAAAN,GAAuBK,IAClBnB,KAAUY,EAAQ,CAACD,CAAM;AAAA,IAChC;AAAA,IACA,iBAAiB;AAAA,IACjB,iBAAiBA;AAAA,IACjB,iBAAiBA,IAASR,IAAU;AAAA,EAAA,CACrC;AAED,SACE,gBAAAkB,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAN;AAAA,IACD,gBAAAO;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAMb;AAAA,QACN,YAAAN;AAAA,QACA,OAAAb;AAAA,QACA,SAAS,CAACiC,MAAY;;AACpB,UAAAb,EAAQ,EAAK,GACTa,OAASL,IAAAf,EAAW,YAAX,QAAAe,EAAoB;AAAA,QACnC;AAAA,QACA,IAAIjB;AAAA,QACJ,MAAK;AAAA,QACL,WAAAJ;AAAA,QACA,WAAAH;AAAA,QACA,mBAAAC;AAAA,QACA,OAAAC;AAAA,QACA,WAAW4B,EAAKC,EAAO,SAAS1B,CAAS;AAAA,QACzC,OAAAC;AAAA,QAEC,UAAAX;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),n=require("react"),z=require("clsx"),E=require("./FloatingPanel-
|
|
2
|
-
//# sourceMappingURL=Popover-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("react"),z=require("clsx"),E=require("./FloatingPanel-BIC4WrFa.cjs"),N="_popover_1gmzd_4",S={popover:N};function T({trigger:a,children:v,align:m="start",open:f,defaultOpen:x=!1,onOpenChange:l,trapFocus:q=!1,matchTriggerWidth:R=!1,width:g,ariaLabel:j,disabled:F=!1,className:I,style:P}){const u=n.useId(),c=n.useRef(null),p=f!==void 0,[_,k]=n.useState(x),o=p?f:_,d=e=>{p||k(e),l==null||l(e)},t=a.props,r=t.ref,y=n.cloneElement(a,{ref:e=>{c.current=e,typeof r=="function"?r(e):r&&(r.current=e)},onClick:e=>{var s;(s=t.onClick)==null||s.call(t,e),F||d(!o)},"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":o?u:void 0});return i.jsxs(i.Fragment,{children:[y,i.jsx(E.FloatingPanel,{open:o,triggerRef:c,align:m,onClose:e=>{var s;d(!1),e&&((s=c.current)==null||s.focus())},id:u,role:"dialog",ariaLabel:j,trapFocus:q,matchTriggerWidth:R,width:g,className:z.clsx(S.popover,I),style:P,children:v})]})}exports.Popover=T;
|
|
2
|
+
//# sourceMappingURL=Popover-DAT6DcM9.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover-
|
|
1
|
+
{"version":3,"file":"Popover-DAT6DcM9.cjs","sources":["../src/components/Popover/Popover.tsx"],"sourcesContent":["import {\n cloneElement,\n useId,\n useRef,\n useState,\n type CSSProperties,\n type MouseEvent as ReactMouseEvent,\n type ReactElement,\n type ReactNode,\n type Ref,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { FloatingPanel } from '../FloatingPanel/FloatingPanel'\nimport styles from './Popover.module.css'\n\nexport type PopoverAlign = 'start' | 'end'\n\nexport interface PopoverProps {\n /** Element that toggles the popover (e.g. a `Button`/`IconButton`). Cloned to wire click + a11y. */\n trigger: ReactElement\n /** Popover content — arbitrary (a header/body/footer, a form, a filter panel, …). */\n children: ReactNode\n /**\n * Horizontal alignment to the trigger: `start` (default — left edges align, grows right) or `end`\n * (right edges align, grows left — for a trigger near the right edge).\n */\n align?: PopoverAlign\n /** Controlled open state. */\n open?: boolean\n /** Initial open state for uncontrolled use. Defaults to `false`. */\n defaultOpen?: boolean\n /** Fires with the next open state. */\n onOpenChange?: (open: boolean) => void\n /** Trap Tab focus inside (+ `aria-modal`) — for form/filter popovers. Defaults to `false`. */\n trapFocus?: boolean\n /** Make the panel at least as wide as the trigger. Defaults to `false`. */\n matchTriggerWidth?: boolean\n /** Fixed panel width (px number or any CSS width). */\n width?: number | string\n /** Accessible label for the panel (`role=\"dialog\"`). */\n ariaLabel?: string\n /** Prevents opening. */\n disabled?: boolean\n /** Class applied to the floating panel. */\n className?: string\n /** Style applied to the floating panel. */\n style?: CSSProperties\n}\n\n/**\n * An anchored popover holding **arbitrary content** — the generic floating surface for filter panels,\n * forms, detail cards, etc. (unlike `Dropdown`, which is a `role=\"menu\"` of items). Built on the shared\n * `FloatingPanel`: portaled to `<body>`, opens below the `trigger` (flips above on overflow), locks page\n * scroll, dismisses on outside-pointerdown / `Escape` (refocusing the trigger), and animates in. The\n * trigger is cloned to wire `onClick` + `aria-haspopup=\"dialog\"`/`aria-expanded`/`aria-controls`.\n * `trapFocus` cycles Tab within (for forms). Controlled (`open` + `onOpenChange`) or uncontrolled\n * (`defaultOpen`). The panel is `role=\"dialog\"`.\n */\nexport function Popover({\n trigger,\n children,\n align = 'start',\n open,\n defaultOpen = false,\n onOpenChange,\n trapFocus = false,\n matchTriggerWidth = false,\n width,\n ariaLabel,\n disabled = false,\n className,\n style,\n}: PopoverProps) {\n const panelId = useId()\n const triggerRef = useRef<HTMLElement | null>(null)\n\n const isControlled = open !== undefined\n const [internalOpen, setInternalOpen] = useState(defaultOpen)\n const isOpen = isControlled ? open : internalOpen\n\n const setOpen = (next: boolean) => {\n if (!isControlled) setInternalOpen(next)\n onOpenChange?.(next)\n }\n\n const triggerProps = trigger.props as {\n onClick?: (event: ReactMouseEvent) => void\n ref?: Ref<HTMLElement>\n }\n const originalRef = triggerProps.ref\n\n const clonedTrigger = cloneElement(trigger as ReactElement<Record<string, unknown>>, {\n ref: (node: HTMLElement | null) => {\n triggerRef.current = node\n if (typeof originalRef === 'function') originalRef(node)\n else if (originalRef) (originalRef as { current: HTMLElement | null }).current = node\n },\n onClick: (event: ReactMouseEvent) => {\n triggerProps.onClick?.(event)\n if (!disabled) setOpen(!isOpen)\n },\n 'aria-haspopup': 'dialog',\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? panelId : undefined,\n })\n\n return (\n <>\n {clonedTrigger}\n <FloatingPanel\n open={isOpen}\n triggerRef={triggerRef}\n align={align}\n onClose={(refocus) => {\n setOpen(false)\n if (refocus) triggerRef.current?.focus()\n }}\n id={panelId}\n role=\"dialog\"\n ariaLabel={ariaLabel}\n trapFocus={trapFocus}\n matchTriggerWidth={matchTriggerWidth}\n width={width}\n className={clsx(styles.popover, className)}\n style={style}\n >\n {children}\n </FloatingPanel>\n </>\n )\n}\n"],"names":["Popover","trigger","children","align","open","defaultOpen","onOpenChange","trapFocus","matchTriggerWidth","width","ariaLabel","disabled","className","style","panelId","useId","triggerRef","useRef","isControlled","internalOpen","setInternalOpen","useState","isOpen","setOpen","next","triggerProps","originalRef","clonedTrigger","cloneElement","node","event","_a","jsxs","Fragment","jsx","FloatingPanel","refocus","clsx","styles"],"mappings":"oKA0DO,SAASA,EAAQ,CACtB,QAAAC,EACA,SAAAC,EACA,MAAAC,EAAQ,QACR,KAAAC,EACA,YAAAC,EAAc,GACd,aAAAC,EACA,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,GACpB,MAAAC,EACA,UAAAC,EACA,SAAAC,EAAW,GACX,UAAAC,EACA,MAAAC,CACF,EAAiB,CACf,MAAMC,EAAUC,EAAAA,MAAA,EACVC,EAAaC,EAAAA,OAA2B,IAAI,EAE5CC,EAAed,IAAS,OACxB,CAACe,EAAcC,CAAe,EAAIC,EAAAA,SAAShB,CAAW,EACtDiB,EAASJ,EAAed,EAAOe,EAE/BI,EAAWC,GAAkB,CAC5BN,GAAcE,EAAgBI,CAAI,EACvClB,GAAA,MAAAA,EAAekB,EACjB,EAEMC,EAAexB,EAAQ,MAIvByB,EAAcD,EAAa,IAE3BE,EAAgBC,EAAAA,aAAa3B,EAAkD,CACnF,IAAM4B,GAA6B,CACjCb,EAAW,QAAUa,EACjB,OAAOH,GAAgB,WAAYA,EAAYG,CAAI,EAC9CH,IAAcA,EAAgD,QAAUG,EACnF,EACA,QAAUC,GAA2B,QACnCC,EAAAN,EAAa,UAAb,MAAAM,EAAA,KAAAN,EAAuBK,GAClBnB,GAAUY,EAAQ,CAACD,CAAM,CAChC,EACA,gBAAiB,SACjB,gBAAiBA,EACjB,gBAAiBA,EAASR,EAAU,MAAA,CACrC,EAED,OACEkB,EAAAA,KAAAC,WAAA,CACG,SAAA,CAAAN,EACDO,EAAAA,IAACC,EAAAA,cAAA,CACC,KAAMb,EACN,WAAAN,EACA,MAAAb,EACA,QAAUiC,GAAY,OACpBb,EAAQ,EAAK,EACTa,KAASL,EAAAf,EAAW,UAAX,MAAAe,EAAoB,QACnC,EACA,GAAIjB,EACJ,KAAK,SACL,UAAAJ,EACA,UAAAH,EACA,kBAAAC,EACA,MAAAC,EACA,UAAW4B,EAAAA,KAAKC,EAAO,QAAS1B,CAAS,EACzC,MAAAC,EAEC,SAAAX,CAAA,CAAA,CACH,EACF,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),w=require("react"),o=require("clsx"),h=require("./ConfigProvider-ByLHqXpv.cjs"),C="_root_1uzzo_4",I="_caption_1uzzo_11",L="_value_1uzzo_16",R="_linear_1uzzo_23",B="_sm_1uzzo_28",D="_md_1uzzo_31",S="_lg_1uzzo_34",A="_header_1uzzo_38",E="_track_1uzzo_45",G="_buffer_1uzzo_52",H="_fill_1uzzo_53",J="_striped_1uzzo_69",K="_animated_1uzzo_82",O="_indeterminate_1uzzo_95",Q="_circular_1uzzo_109",U="_ring_1uzzo_128",W="_svg_1uzzo_136",X="_ringTrack_1uzzo_144",Y="_ringFill_1uzzo_145",Z="_ringValue_1uzzo_159",nn="_spinning_1uzzo_165",n={root:C,caption:I,value:L,linear:R,sm:B,md:D,lg:S,header:A,track:E,buffer:G,fill:H,striped:J,animated:K,"pg-stripes":"_pg-stripes_1uzzo_1",indeterminate:O,"pg-sweep":"_pg-sweep_1uzzo_1",circular:Q,ring:U,svg:W,ringTrack:X,ringFill:Y,ringValue:Z,spinning:nn,"pg-spin":"_pg-spin_1uzzo_1"},T=(d,l,u)=>Math.min(u,Math.max(l,d)),rn=w.forwardRef(function({value:l,max:u=100,variant:$="linear",size:p="md",color:M="accent",label:c,showValue:_=!1,buffer:m,striped:P=!1,animated:v=!1,thresholds:i,className:x,style:q,...f},j){const y=h.useT(),g=w.useId(),s=l==null,t=u>0?u:100,z=s?0:T(l,0,t),a=z/t*100,N=m==null?void 0:T(m,0,t)/t*100,F=!s&&(i==null?void 0:i.error)!=null&&a>=i.error?"error":!s&&(i==null?void 0:i.warning)!=null&&a>=i.warning?"warning":M,e=s?void 0:typeof _=="function"?_(z,t):_?`${Math.round(a)}%`:void 0,V=s?y("common.loading"):typeof e=="string"?e:`${Math.round(a)}%`,b={role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":s?void 0:z,"aria-valuetext":V,"aria-busy":s||void 0,...c!=null?{"aria-labelledby":g}:{"aria-label":y("progress.label")}},k={"--tz-btn-rgb":`var(--tz-color-${F}-rgb)`,...q};return $==="circular"?r.jsxs("div",{ref:j,className:o.clsx(n.root,n.circular,n[p],x),style:k,...f,children:[r.jsxs("div",{className:o.clsx(n.ring,s&&n.spinning),...b,children:[r.jsxs("svg",{viewBox:"0 0 36 36",className:n.svg,"aria-hidden":"true",children:[r.jsx("circle",{className:n.ringTrack,cx:"18",cy:"18",r:"15.5",pathLength:100}),r.jsx("circle",{className:n.ringFill,cx:"18",cy:"18",r:"15.5",pathLength:100,strokeDasharray:s?"28 72":`${a} ${100-a}`})]}),e!=null&&r.jsx("span",{className:n.ringValue,children:e})]}),c!=null&&r.jsx("span",{id:g,className:n.caption,children:c})]}):r.jsxs("div",{ref:j,className:o.clsx(n.root,n.linear,n[p],x),style:k,...f,children:[(c!=null||e!=null)&&r.jsxs("div",{className:n.header,children:[c!=null?r.jsx("span",{id:g,className:n.caption,children:c}):r.jsx("span",{}),e!=null&&r.jsx("span",{className:n.value,children:e})]}),r.jsxs("div",{className:o.clsx(n.track,s&&n.indeterminate),...b,children:[N!=null&&!s&&r.jsx("div",{className:n.buffer,style:{width:`${N}%`}}),r.jsx("div",{className:o.clsx(n.fill,(P||v)&&n.striped,v&&n.animated),style:s?void 0:{width:`${a}%`}})]})]})});exports.Progress=rn;
|
|
2
|
+
//# sourceMappingURL=Progress-Bwxx71Ns.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress-Bwxx71Ns.cjs","sources":["../src/components/Progress/Progress.tsx"],"sourcesContent":["import { forwardRef, useId, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport styles from './Progress.module.css'\n\nexport type ProgressVariant = 'linear' | 'circular'\nexport type ProgressSize = 'sm' | 'md' | 'lg'\n\n/** Percentages (0–100) at which the color switches automatically — quota UX. */\nexport interface ProgressThresholds {\n /** From this percentage on, the bar turns `warning`. */\n warning?: number\n /** From this percentage on, the bar turns `error`. */\n error?: number\n}\n\nexport interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /** Current value, `0`–`max`. Omit it for an **indeterminate** progress (a moving bar / spinning arc). */\n value?: number\n /** The value that means \"done\". Defaults to `100`. */\n max?: number\n /** `linear` (default) — a bar; `circular` — a ring. */\n variant?: ProgressVariant\n /** Linear: bar thickness 4 / 6 / 8 px. Circular: ring 32 / 48 / 64 px. Defaults to `md`. */\n size?: ProgressSize\n /** Theme color of the fill. Defaults to `accent`. */\n color?: ThemeColor\n /** A caption — above the bar (left) for linear, under the ring for circular. Labels the progressbar. */\n label?: ReactNode\n /**\n * Show the value: `true` → the percentage (\"42%\"); a function → your own text, e.g.\n * `(v, max) => `${v} GB of ${max} GB``. Linear: right of the caption; circular: inside the ring.\n */\n showValue?: boolean | ((value: number, max: number) => ReactNode)\n /** A second, lighter bar behind the fill (buffered / pending amount), `0`–`max`. Linear only. */\n buffer?: number\n /** Diagonal stripes on the fill. Linear only. */\n striped?: boolean\n /** Animate the stripes (implies `striped`). Linear only. Off under `prefers-reduced-motion`. */\n animated?: boolean\n /** Switch the color automatically by percentage (e.g. `{ warning: 80, error: 95 }` for a quota). */\n thresholds?: ProgressThresholds\n}\n\nconst clamp = (n: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, n))\n\n/**\n * A progress indicator — **linear** (a bar) or **circular** (a ring) — for uploads, wizard steps, quotas and\n * background jobs. Determinate with `value` / `max`, or **indeterminate** without `value` (a moving bar / a\n * spinning arc). An optional caption (`label`) and value readout (`showValue` — the percentage or your own\n * formatter), a lighter `buffer` bar, `striped` / `animated` fills, and `thresholds` that turn the fill\n * `warning` / `error` as it fills up. Tinted by `color` through the shared `--tz-btn-rgb` pattern; the track is\n * `primary-shade200`, the bar is pill-rounded (so the global `square` shape flattens it). A11y:\n * `role=\"progressbar\"` with `aria-valuemin/max/now` + `aria-valuetext`, labelled by the caption (or a\n * localized \"Progress\"); indeterminate drops `aria-valuenow` and sets `aria-busy`. Motion stops under\n * `prefers-reduced-motion`. Token-only. `forwardRef` to the root `<div>`.\n */\nexport const Progress = forwardRef<HTMLDivElement, ProgressProps>(function Progress(\n {\n value,\n max = 100,\n variant = 'linear',\n size = 'md',\n color = 'accent',\n label,\n showValue = false,\n buffer,\n striped = false,\n animated = false,\n thresholds,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n const labelId = useId()\n const indeterminate = value == null\n const safeMax = max > 0 ? max : 100\n const current = indeterminate ? 0 : clamp(value, 0, safeMax)\n const pct = (current / safeMax) * 100\n const bufferPct = buffer == null ? undefined : (clamp(buffer, 0, safeMax) / safeMax) * 100\n\n // quota UX: the fill turns warning / error as it crosses the thresholds (error wins)\n const resolvedColor: ThemeColor =\n !indeterminate && thresholds?.error != null && pct >= thresholds.error\n ? 'error'\n : !indeterminate && thresholds?.warning != null && pct >= thresholds.warning\n ? 'warning'\n : color\n\n const valueText = indeterminate\n ? undefined\n : typeof showValue === 'function'\n ? showValue(current, safeMax)\n : showValue\n ? `${Math.round(pct)}%`\n : undefined\n const ariaValueText = indeterminate\n ? t('common.loading')\n : typeof valueText === 'string'\n ? valueText\n : `${Math.round(pct)}%`\n\n const a11y = {\n role: 'progressbar',\n 'aria-valuemin': 0,\n 'aria-valuemax': safeMax,\n 'aria-valuenow': indeterminate ? undefined : current,\n 'aria-valuetext': ariaValueText,\n 'aria-busy': indeterminate || undefined,\n ...(label != null ? { 'aria-labelledby': labelId } : { 'aria-label': t('progress.label') }),\n } as const\n\n const rootStyle = {\n '--tz-btn-rgb': `var(--tz-color-${resolvedColor}-rgb)`,\n ...style,\n } as CSSProperties\n\n if (variant === 'circular') {\n // pathLength=100 makes the dash math a plain percentage\n return (\n <div\n ref={ref}\n className={clsx(styles.root, styles.circular, styles[size], className)}\n style={rootStyle}\n {...props}\n >\n <div className={clsx(styles.ring, indeterminate && styles.spinning)} {...a11y}>\n <svg viewBox=\"0 0 36 36\" className={styles.svg} aria-hidden=\"true\">\n <circle className={styles.ringTrack} cx=\"18\" cy=\"18\" r=\"15.5\" pathLength={100} />\n <circle\n className={styles.ringFill}\n cx=\"18\"\n cy=\"18\"\n r=\"15.5\"\n pathLength={100}\n strokeDasharray={indeterminate ? '28 72' : `${pct} ${100 - pct}`}\n />\n </svg>\n {valueText != null && <span className={styles.ringValue}>{valueText}</span>}\n </div>\n {label != null && (\n <span id={labelId} className={styles.caption}>\n {label}\n </span>\n )}\n </div>\n )\n }\n\n return (\n <div\n ref={ref}\n className={clsx(styles.root, styles.linear, styles[size], className)}\n style={rootStyle}\n {...props}\n >\n {(label != null || valueText != null) && (\n <div className={styles.header}>\n {label != null ? (\n <span id={labelId} className={styles.caption}>\n {label}\n </span>\n ) : (\n <span />\n )}\n {valueText != null && <span className={styles.value}>{valueText}</span>}\n </div>\n )}\n <div className={clsx(styles.track, indeterminate && styles.indeterminate)} {...a11y}>\n {bufferPct != null && !indeterminate && (\n <div className={styles.buffer} style={{ width: `${bufferPct}%` }} />\n )}\n <div\n className={clsx(\n styles.fill,\n (striped || animated) && styles.striped,\n animated && styles.animated,\n )}\n style={indeterminate ? undefined : { width: `${pct}%` }}\n />\n </div>\n </div>\n )\n})\n"],"names":["clamp","n","lo","hi","Progress","forwardRef","value","max","variant","size","color","label","showValue","buffer","striped","animated","thresholds","className","style","props","ref","t","useT","labelId","useId","indeterminate","safeMax","current","pct","bufferPct","resolvedColor","valueText","ariaValueText","a11y","rootStyle","jsxs","clsx","styles","jsx"],"mappings":"m2BA4CMA,EAAQ,CAACC,EAAWC,EAAYC,IAAe,KAAK,IAAIA,EAAI,KAAK,IAAID,EAAID,CAAC,CAAC,EAapEG,GAAWC,EAAAA,WAA0C,SAChE,CACE,MAAAC,EACA,IAAAC,EAAM,IACN,QAAAC,EAAU,SACV,KAAAC,EAAO,KACP,MAAAC,EAAQ,SACR,MAAAC,EACA,UAAAC,EAAY,GACZ,OAAAC,EACA,QAAAC,EAAU,GACV,SAAAC,EAAW,GACX,WAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EACJC,EAAUC,EAAAA,MAAA,EACVC,EAAgBnB,GAAS,KACzBoB,EAAUnB,EAAM,EAAIA,EAAM,IAC1BoB,EAAUF,EAAgB,EAAIzB,EAAMM,EAAO,EAAGoB,CAAO,EACrDE,EAAOD,EAAUD,EAAW,IAC5BG,EAAYhB,GAAU,KAAO,OAAab,EAAMa,EAAQ,EAAGa,CAAO,EAAIA,EAAW,IAGjFI,EACJ,CAACL,IAAiBT,GAAA,YAAAA,EAAY,QAAS,MAAQY,GAAOZ,EAAW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from "react";
|
|
3
|
+
import { clsx as l } from "clsx";
|
|
4
|
+
import { a as B } from "./ConfigProvider-BbsI15b-.js";
|
|
5
|
+
const C = "_root_1uzzo_4", D = "_caption_1uzzo_11", R = "_value_1uzzo_16", S = "_linear_1uzzo_23", q = "_sm_1uzzo_28", A = "_md_1uzzo_31", E = "_lg_1uzzo_34", G = "_header_1uzzo_38", H = "_track_1uzzo_45", J = "_buffer_1uzzo_52", K = "_fill_1uzzo_53", O = "_striped_1uzzo_69", Q = "_animated_1uzzo_82", U = "_indeterminate_1uzzo_95", W = "_circular_1uzzo_109", X = "_ring_1uzzo_128", Y = "_svg_1uzzo_136", Z = "_ringTrack_1uzzo_144", nn = "_ringFill_1uzzo_145", rn = "_ringValue_1uzzo_159", an = "_spinning_1uzzo_165", n = {
|
|
6
|
+
root: C,
|
|
7
|
+
caption: D,
|
|
8
|
+
value: R,
|
|
9
|
+
linear: S,
|
|
10
|
+
sm: q,
|
|
11
|
+
md: A,
|
|
12
|
+
lg: E,
|
|
13
|
+
header: G,
|
|
14
|
+
track: H,
|
|
15
|
+
buffer: J,
|
|
16
|
+
fill: K,
|
|
17
|
+
striped: O,
|
|
18
|
+
animated: Q,
|
|
19
|
+
"pg-stripes": "_pg-stripes_1uzzo_1",
|
|
20
|
+
indeterminate: U,
|
|
21
|
+
"pg-sweep": "_pg-sweep_1uzzo_1",
|
|
22
|
+
circular: W,
|
|
23
|
+
ring: X,
|
|
24
|
+
svg: Y,
|
|
25
|
+
ringTrack: Z,
|
|
26
|
+
ringFill: nn,
|
|
27
|
+
ringValue: rn,
|
|
28
|
+
spinning: an,
|
|
29
|
+
"pg-spin": "_pg-spin_1uzzo_1"
|
|
30
|
+
}, $ = (m, _, u) => Math.min(u, Math.max(_, m)), sn = I(function({
|
|
31
|
+
value: _,
|
|
32
|
+
max: u = 100,
|
|
33
|
+
variant: M = "linear",
|
|
34
|
+
size: p = "md",
|
|
35
|
+
color: F = "accent",
|
|
36
|
+
label: c,
|
|
37
|
+
showValue: z = !1,
|
|
38
|
+
buffer: v,
|
|
39
|
+
striped: P = !1,
|
|
40
|
+
animated: f = !1,
|
|
41
|
+
thresholds: i,
|
|
42
|
+
className: y,
|
|
43
|
+
style: V,
|
|
44
|
+
...N
|
|
45
|
+
}, x) {
|
|
46
|
+
const b = B(), g = L(), r = _ == null, t = u > 0 ? u : 100, d = r ? 0 : $(_, 0, t), e = d / t * 100, k = v == null ? void 0 : $(v, 0, t) / t * 100, h = !r && (i == null ? void 0 : i.error) != null && e >= i.error ? "error" : !r && (i == null ? void 0 : i.warning) != null && e >= i.warning ? "warning" : F, o = r ? void 0 : typeof z == "function" ? z(d, t) : z ? `${Math.round(e)}%` : void 0, j = r ? b("common.loading") : typeof o == "string" ? o : `${Math.round(e)}%`, w = {
|
|
47
|
+
role: "progressbar",
|
|
48
|
+
"aria-valuemin": 0,
|
|
49
|
+
"aria-valuemax": t,
|
|
50
|
+
"aria-valuenow": r ? void 0 : d,
|
|
51
|
+
"aria-valuetext": j,
|
|
52
|
+
"aria-busy": r || void 0,
|
|
53
|
+
...c != null ? { "aria-labelledby": g } : { "aria-label": b("progress.label") }
|
|
54
|
+
}, T = {
|
|
55
|
+
"--tz-btn-rgb": `var(--tz-color-${h}-rgb)`,
|
|
56
|
+
...V
|
|
57
|
+
};
|
|
58
|
+
return M === "circular" ? /* @__PURE__ */ s(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
ref: x,
|
|
62
|
+
className: l(n.root, n.circular, n[p], y),
|
|
63
|
+
style: T,
|
|
64
|
+
...N,
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ s("div", { className: l(n.ring, r && n.spinning), ...w, children: [
|
|
67
|
+
/* @__PURE__ */ s("svg", { viewBox: "0 0 36 36", className: n.svg, "aria-hidden": "true", children: [
|
|
68
|
+
/* @__PURE__ */ a("circle", { className: n.ringTrack, cx: "18", cy: "18", r: "15.5", pathLength: 100 }),
|
|
69
|
+
/* @__PURE__ */ a(
|
|
70
|
+
"circle",
|
|
71
|
+
{
|
|
72
|
+
className: n.ringFill,
|
|
73
|
+
cx: "18",
|
|
74
|
+
cy: "18",
|
|
75
|
+
r: "15.5",
|
|
76
|
+
pathLength: 100,
|
|
77
|
+
strokeDasharray: r ? "28 72" : `${e} ${100 - e}`
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
o != null && /* @__PURE__ */ a("span", { className: n.ringValue, children: o })
|
|
82
|
+
] }),
|
|
83
|
+
c != null && /* @__PURE__ */ a("span", { id: g, className: n.caption, children: c })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
) : /* @__PURE__ */ s(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
ref: x,
|
|
90
|
+
className: l(n.root, n.linear, n[p], y),
|
|
91
|
+
style: T,
|
|
92
|
+
...N,
|
|
93
|
+
children: [
|
|
94
|
+
(c != null || o != null) && /* @__PURE__ */ s("div", { className: n.header, children: [
|
|
95
|
+
c != null ? /* @__PURE__ */ a("span", { id: g, className: n.caption, children: c }) : /* @__PURE__ */ a("span", {}),
|
|
96
|
+
o != null && /* @__PURE__ */ a("span", { className: n.value, children: o })
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ s("div", { className: l(n.track, r && n.indeterminate), ...w, children: [
|
|
99
|
+
k != null && !r && /* @__PURE__ */ a("div", { className: n.buffer, style: { width: `${k}%` } }),
|
|
100
|
+
/* @__PURE__ */ a(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
className: l(
|
|
104
|
+
n.fill,
|
|
105
|
+
(P || f) && n.striped,
|
|
106
|
+
f && n.animated
|
|
107
|
+
),
|
|
108
|
+
style: r ? void 0 : { width: `${e}%` }
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] })
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
sn as P
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=Progress-pTbaOSDd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress-pTbaOSDd.js","sources":["../src/components/Progress/Progress.tsx"],"sourcesContent":["import { forwardRef, useId, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport styles from './Progress.module.css'\n\nexport type ProgressVariant = 'linear' | 'circular'\nexport type ProgressSize = 'sm' | 'md' | 'lg'\n\n/** Percentages (0–100) at which the color switches automatically — quota UX. */\nexport interface ProgressThresholds {\n /** From this percentage on, the bar turns `warning`. */\n warning?: number\n /** From this percentage on, the bar turns `error`. */\n error?: number\n}\n\nexport interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /** Current value, `0`–`max`. Omit it for an **indeterminate** progress (a moving bar / spinning arc). */\n value?: number\n /** The value that means \"done\". Defaults to `100`. */\n max?: number\n /** `linear` (default) — a bar; `circular` — a ring. */\n variant?: ProgressVariant\n /** Linear: bar thickness 4 / 6 / 8 px. Circular: ring 32 / 48 / 64 px. Defaults to `md`. */\n size?: ProgressSize\n /** Theme color of the fill. Defaults to `accent`. */\n color?: ThemeColor\n /** A caption — above the bar (left) for linear, under the ring for circular. Labels the progressbar. */\n label?: ReactNode\n /**\n * Show the value: `true` → the percentage (\"42%\"); a function → your own text, e.g.\n * `(v, max) => `${v} GB of ${max} GB``. Linear: right of the caption; circular: inside the ring.\n */\n showValue?: boolean | ((value: number, max: number) => ReactNode)\n /** A second, lighter bar behind the fill (buffered / pending amount), `0`–`max`. Linear only. */\n buffer?: number\n /** Diagonal stripes on the fill. Linear only. */\n striped?: boolean\n /** Animate the stripes (implies `striped`). Linear only. Off under `prefers-reduced-motion`. */\n animated?: boolean\n /** Switch the color automatically by percentage (e.g. `{ warning: 80, error: 95 }` for a quota). */\n thresholds?: ProgressThresholds\n}\n\nconst clamp = (n: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, n))\n\n/**\n * A progress indicator — **linear** (a bar) or **circular** (a ring) — for uploads, wizard steps, quotas and\n * background jobs. Determinate with `value` / `max`, or **indeterminate** without `value` (a moving bar / a\n * spinning arc). An optional caption (`label`) and value readout (`showValue` — the percentage or your own\n * formatter), a lighter `buffer` bar, `striped` / `animated` fills, and `thresholds` that turn the fill\n * `warning` / `error` as it fills up. Tinted by `color` through the shared `--tz-btn-rgb` pattern; the track is\n * `primary-shade200`, the bar is pill-rounded (so the global `square` shape flattens it). A11y:\n * `role=\"progressbar\"` with `aria-valuemin/max/now` + `aria-valuetext`, labelled by the caption (or a\n * localized \"Progress\"); indeterminate drops `aria-valuenow` and sets `aria-busy`. Motion stops under\n * `prefers-reduced-motion`. Token-only. `forwardRef` to the root `<div>`.\n */\nexport const Progress = forwardRef<HTMLDivElement, ProgressProps>(function Progress(\n {\n value,\n max = 100,\n variant = 'linear',\n size = 'md',\n color = 'accent',\n label,\n showValue = false,\n buffer,\n striped = false,\n animated = false,\n thresholds,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n const labelId = useId()\n const indeterminate = value == null\n const safeMax = max > 0 ? max : 100\n const current = indeterminate ? 0 : clamp(value, 0, safeMax)\n const pct = (current / safeMax) * 100\n const bufferPct = buffer == null ? undefined : (clamp(buffer, 0, safeMax) / safeMax) * 100\n\n // quota UX: the fill turns warning / error as it crosses the thresholds (error wins)\n const resolvedColor: ThemeColor =\n !indeterminate && thresholds?.error != null && pct >= thresholds.error\n ? 'error'\n : !indeterminate && thresholds?.warning != null && pct >= thresholds.warning\n ? 'warning'\n : color\n\n const valueText = indeterminate\n ? undefined\n : typeof showValue === 'function'\n ? showValue(current, safeMax)\n : showValue\n ? `${Math.round(pct)}%`\n : undefined\n const ariaValueText = indeterminate\n ? t('common.loading')\n : typeof valueText === 'string'\n ? valueText\n : `${Math.round(pct)}%`\n\n const a11y = {\n role: 'progressbar',\n 'aria-valuemin': 0,\n 'aria-valuemax': safeMax,\n 'aria-valuenow': indeterminate ? undefined : current,\n 'aria-valuetext': ariaValueText,\n 'aria-busy': indeterminate || undefined,\n ...(label != null ? { 'aria-labelledby': labelId } : { 'aria-label': t('progress.label') }),\n } as const\n\n const rootStyle = {\n '--tz-btn-rgb': `var(--tz-color-${resolvedColor}-rgb)`,\n ...style,\n } as CSSProperties\n\n if (variant === 'circular') {\n // pathLength=100 makes the dash math a plain percentage\n return (\n <div\n ref={ref}\n className={clsx(styles.root, styles.circular, styles[size], className)}\n style={rootStyle}\n {...props}\n >\n <div className={clsx(styles.ring, indeterminate && styles.spinning)} {...a11y}>\n <svg viewBox=\"0 0 36 36\" className={styles.svg} aria-hidden=\"true\">\n <circle className={styles.ringTrack} cx=\"18\" cy=\"18\" r=\"15.5\" pathLength={100} />\n <circle\n className={styles.ringFill}\n cx=\"18\"\n cy=\"18\"\n r=\"15.5\"\n pathLength={100}\n strokeDasharray={indeterminate ? '28 72' : `${pct} ${100 - pct}`}\n />\n </svg>\n {valueText != null && <span className={styles.ringValue}>{valueText}</span>}\n </div>\n {label != null && (\n <span id={labelId} className={styles.caption}>\n {label}\n </span>\n )}\n </div>\n )\n }\n\n return (\n <div\n ref={ref}\n className={clsx(styles.root, styles.linear, styles[size], className)}\n style={rootStyle}\n {...props}\n >\n {(label != null || valueText != null) && (\n <div className={styles.header}>\n {label != null ? (\n <span id={labelId} className={styles.caption}>\n {label}\n </span>\n ) : (\n <span />\n )}\n {valueText != null && <span className={styles.value}>{valueText}</span>}\n </div>\n )}\n <div className={clsx(styles.track, indeterminate && styles.indeterminate)} {...a11y}>\n {bufferPct != null && !indeterminate && (\n <div className={styles.buffer} style={{ width: `${bufferPct}%` }} />\n )}\n <div\n className={clsx(\n styles.fill,\n (striped || animated) && styles.striped,\n animated && styles.animated,\n )}\n style={indeterminate ? undefined : { width: `${pct}%` }}\n />\n </div>\n </div>\n )\n})\n"],"names":["clamp","n","lo","hi","Progress","forwardRef","value","max","variant","size","color","label","showValue","buffer","striped","animated","thresholds","className","style","props","ref","t","useT","labelId","useId","indeterminate","safeMax","current","pct","bufferPct","resolvedColor","valueText","ariaValueText","a11y","rootStyle","jsxs","clsx","styles","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CMA,IAAQ,CAACC,GAAWC,GAAYC,MAAe,KAAK,IAAIA,GAAI,KAAK,IAAID,GAAID,CAAC,CAAC,GAapEG,KAAWC,EAA0C,SAChE;AAAA,EACE,OAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,QAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAIC,EAAA,GACJC,IAAUC,EAAA,GACVC,IAAgBnB,KAAS,MACzBoB,IAAUnB,IAAM,IAAIA,IAAM,KAC1BoB,IAAUF,IAAgB,IAAIzB,EAAMM,GAAO,GAAGoB,CAAO,GACrDE,IAAOD,IAAUD,IAAW,KAC5BG,IAAYhB,KAAU,OAAO,SAAab,EAAMa,GAAQ,GAAGa,CAAO,IAAIA,IAAW,KAGjFI,IACJ,CAACL,MAAiBT,KAAA,gBAAAA,EAAY,UAAS,QAAQY,KAAOZ,EAAW,QAC7D,UACA,CAACS,MAAiBT,KAAA,gBAAAA,EAAY,YAAW,QAAQY,KAAOZ,EAAW,UACjE,YACAN,GAEFqB,IAAYN,IACd,SACA,OAAOb,KAAc,aACnBA,EAAUe,GAASD,CAAO,IAC1Bd,IACE,GAAG,KAAK,MAAMgB,CAAG,CAAC,MAClB,QACFI,IAAgBP,IAClBJ,EAAE,gBAAgB,IAClB,OAAOU,KAAc,WACnBA,IACA,GAAG,KAAK,MAAMH,C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
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var j=Object.create;var m=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var V=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!P.call(e,o)&&o!==r&&m(e,o,{get:()=>t[o],enumerable:!(a=R(t,o))||a.enumerable});return e};var k=(e,t,r)=>(r=e!=null?j(N(e)):{},V(t||!e||!e.__esModule?m(r,"default",{value:e,enumerable:!0}):r,e));const i=require("react/jsx-runtime"),z=require("react"),G=require("clsx"),f=require("./useOptionalPeer-9Fkx5Leb.cjs"),M=require("./Skeleton-DK0lAjS9.cjs"),O=require("./Typography-B6ASPrzT.cjs"),T="_root_15ibt_1",H="_framed_15ibt_12",$="_code_15ibt_30",A="_caption_15ibt_35",s={root:T,framed:H,code:$,caption:A},B=f.optionalPeer("qrcode.react","QrCode",()=>import("qrcode.react")),D=z.forwardRef(function({value:t,size:r=180,level:a,color:o="text",margin:g=2,image:c,caption:l,framed:p=!0,className:v,style:_,"aria-label":x="QR code",...q},C){const{module:d,failed:b}=f.useOptionalPeer(B),u=d==null?void 0:d.QRCodeSVG,y=a??(c?"H":"M"),Q=c!=null?(()=>{const n=typeof c=="string"?{src:c}:c,h=Math.round(r*.22);return{src:n.src,width:n.width??h,height:n.height??h,excavate:n.excavate??!0}})():void 0,S=o==="text"?void 0:{"--tz-qr-fg":`var(--tz-color-${o})`};return i.jsxs("div",{ref:C,role:"img","aria-label":x,className:G.clsx(s.root,p&&s.framed,v),style:{...S,..._},...q,children:[u?i.jsx(u,{className:s.code,value:t,size:r,level:y,marginSize:g,fgColor:"var(--tz-qr-fg)",bgColor:"var(--tz-qr-bg)",imageSettings:Q,"aria-hidden":!0}):i.jsx(M.Skeleton,{variant:"rect",width:r,height:r,animation:b?!1:"shimmer",className:s.code}),l!=null&&i.jsx(O.Typography,{variant:"caption",color:"muted",className:s.caption,children:l})]})});exports.QrCode=D;
|
|
2
|
+
//# sourceMappingURL=QrCode-BQ1eUiAJ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QrCode-BQ1eUiAJ.cjs","sources":["../src/components/QrCode/QrCode.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport type * as QrLibModule from 'qrcode.react'\nimport { optionalPeer, useOptionalPeer } from '../../hooks/useOptionalPeer'\nimport { Skeleton } from '../Skeleton'\nimport type { ThemeColor } from '../../theme'\nimport { Typography } from '../Typography'\nimport styles from './QrCode.module.css'\n\nexport type QrCodeLevel = 'L' | 'M' | 'Q' | 'H'\n\nexport interface QrCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /** The encoded text (URL, `otpauth://…` URI, plain string). Required. */\n value: string\n /** Rendered edge length in px. Default `180`. */\n size?: number\n /** Error-correction level. Default `'M'` (`'H'` when `image` is set, so the logo can cover the middle). */\n level?: QrCodeLevel\n /** Module (foreground) tint — a theme token. Default `'text'` (so it follows light/dark). */\n color?: ThemeColor | 'text'\n /** Quiet zone in modules. Default `2`. */\n margin?: number\n /**\n * Optional centre image (a brand mark), as a URL or `{ src, width?, height?, excavate? }`.\n * `excavate` clears the modules under it (default `true`). Sizes default to ~22% of `size`.\n */\n image?: string | { src: string; width?: number; height?: number; excavate?: boolean }\n /** Caption rendered under the code (muted, centred) — e.g. \"Scan with your authenticator app\". */\n caption?: ReactNode\n /**\n * Wrap the code in a soft `surface` frame with padding and radius, so it sits cleanly on the\n * page `background`. Default `true`. Pass `false` for a bare SVG.\n */\n framed?: boolean\n /** Accessible name. Default `\"QR code\"`. The `value` is never exposed as text by this component. */\n 'aria-label'?: string\n}\n\n/**\n * A QR code, rendered as a crisp **SVG** — wraps the optional peer **`qrcode.react`** (`npm i\n * qrcode.react`) so apps don't pull in their own encoder. The modules take a theme `color` token\n * (default `text`) via the `--tz-qr-fg` var; `framed` (default) wraps the code in a soft, elevated card.\n *\n * **Scannability:** a framed code always sits on a **white** card in both light and dark mode, and its\n * default modules stay **dark** in both — a QR must be dark-on-light to read reliably, so the frame is\n * kept white even in dark mode (a deliberate literal-color exception, like `CodeBlock`'s dark surface).\n * A custom `color` is honored as-is (pick one dark enough to scan). The wrapper is `role=\"img\"` with an\n * `aria-label`; the SVG itself is `aria-hidden`, so the encoded `value` is never read out as text.\n */\n/** @internal — exported for tests */\nexport const qrPeer = optionalPeer<typeof QrLibModule>(\n 'qrcode.react',\n 'QrCode',\n () => import('qrcode.react'),\n)\n\nexport const QrCode = forwardRef<HTMLDivElement, QrCodeProps>(function QrCode(\n {\n value,\n size = 180,\n level,\n color = 'text',\n margin = 2,\n image,\n caption,\n framed = true,\n className,\n style,\n 'aria-label': ariaLabel = 'QR code',\n ...props\n },\n ref,\n) {\n // `qrcode.react` is an optional peer, loaded lazily (never imported statically — apps without it must\n // still build + run from the barrel). Until it's ready a same-size skeleton holds the spot; if it isn't\n // installed the spot stays empty and an install hint is logged.\n const { module: qrLib, failed } = useOptionalPeer(qrPeer)\n const QRCodeSVG = qrLib?.QRCodeSVG\n\n // 'H' error correction by default when a centre image is present, so the logo can cover the middle\n // without breaking the code; otherwise 'M'. An explicit `level` always wins.\n const resolvedLevel: QrCodeLevel = level ?? (image ? 'H' : 'M')\n\n const imageSettings =\n image != null\n ? (() => {\n const img = typeof image === 'string' ? { src: image } : image\n const dim = Math.round(size * 0.22)\n return {\n src: img.src,\n width: img.width ?? dim,\n height: img.height ?? dim,\n excavate: img.excavate ?? true,\n }\n })()\n : undefined\n\n // The foreground (modules) follows the `color` token via `--tz-qr-fg`. The default `text` is left to\n // CSS (so `.framed` can force dark modules on the white card in dark mode); a custom token is pinned\n // inline, so it wins over that CSS fallback and is rendered exactly as asked.\n const fgVar = color === 'text' ? undefined : { '--tz-qr-fg': `var(--tz-color-${color})` }\n\n return (\n <div\n ref={ref}\n role=\"img\"\n aria-label={ariaLabel}\n className={clsx(styles.root, framed && styles.framed, className)}\n style={{ ...fgVar, ...style } as CSSProperties}\n {...props}\n >\n {QRCodeSVG ? (\n <QRCodeSVG\n className={styles.code}\n value={value}\n size={size}\n level={resolvedLevel}\n marginSize={margin}\n // colors flow through CSS vars so `.framed` can guarantee contrast per theme (see the module)\n fgColor=\"var(--tz-qr-fg)\"\n bgColor=\"var(--tz-qr-bg)\"\n imageSettings={imageSettings}\n aria-hidden\n />\n ) : (\n <Skeleton\n variant=\"rect\"\n width={size}\n height={size}\n animation={failed ? false : 'shimmer'}\n className={styles.code}\n />\n )}\n {caption != null && (\n <Typography variant=\"caption\" color=\"muted\" className={styles.caption}>\n {caption}\n </Typography>\n )}\n </div>\n )\n})\n"],"names":["qrPeer","optionalPeer","QrCode","forwardRef","value","size","level","color","margin","image","caption","framed","className","style","ariaLabel","props","ref","qrLib","failed","useOptionalPeer","QRCodeSVG","resolvedLevel","imageSettings","img","dim","fgVar","jsxs","clsx","styles","jsx","Skeleton","Typography"],"mappings":"+wBAkDaA,EAASC,EAAAA,aACpB,eACA,SACA,IAAM,OAAO,cAAc,CAC7B,EAEaC,EAASC,EAAAA,WAAwC,SAC5D,CACE,MAAAC,EACA,KAAAC,EAAO,IACP,MAAAC,EACA,MAAAC,EAAQ,OACR,OAAAC,EAAS,EACT,MAAAC,EACA,QAAAC,EACA,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,EACA,aAAcC,EAAY,UAC1B,GAAGC,CACL,EACAC,EACA,CAIA,KAAM,CAAE,OAAQC,EAAO,OAAAC,CAAA,EAAWC,EAAAA,gBAAgBnB,CAAM,EAClDoB,EAAYH,GAAA,YAAAA,EAAO,UAInBI,EAA6Bf,IAAUG,EAAQ,IAAM,KAErDa,EACJb,GAAS,MACJ,IAAM,CACL,MAAMc,EAAM,OAAOd,GAAU,SAAW,CAAE,IAAKA,GAAUA,EACnDe,EAAM,KAAK,MAAMnB,EAAO,GAAI,EAClC,MAAO,CACL,IAAKkB,EAAI,IACT,MAAOA,EAAI,OAASC,EACpB,OAAQD,EAAI,QAAUC,EACtB,SAAUD,EAAI,UAAY,EAAA,CAE9B,KACA,OAKAE,EAAQlB,IAAU,OAAS,OAAY,CAAE,aAAc,kBAAkBA,CAAK,GAAA,EAEpF,OACEmB,EAAAA,KAAC,MAAA,CACC,IAAAV,EACA,KAAK,MACL,aAAYF,EACZ,UAAWa,EAAAA,KAAKC,EAAO,KAAMjB,GAAUiB,EAAO,OAAQhB,CAAS,EAC/D,MAAO,CAAE,GAAGa,EAAO,GAAGZ,CAAA,EACrB,GAAGE,EAEH,SAAA,CAAAK,EACCS,EAAAA,IAACT,EAAA,CACC,UAAWQ,EAAO,KAClB,MAAAxB,EACA,KAAAC,EACA,MAAOgB,EACP,WAAYb,EAEZ,QAAQ,kBACR,QAAQ,kBACR,cAAAc,EACA,cAAW,EAAA,CAAA,EAGbO,EAAAA,IAACC,EAAAA,SAAA,CACC,QAAQ,OACR,MAAOzB,EACP,OAAQA,EACR,UAAWa,EAAS,GAAQ,UAC5B,UAAWU,EAAO,IAAA,CAAA,EAGrBlB,GAAW,MACVmB,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,UAAU,MAAM,QAAQ,UAAWH,EAAO,QAC3D,SAAAlB,CAAA,CACH,CAAA,CAAA,CAAA,CAIR,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs as S, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { clsx as q } from "clsx";
|
|
4
|
+
import { u as w, o as N } from "./useOptionalPeer-49f3XcO5.js";
|
|
5
|
+
import { S as R } from "./Skeleton-_-uGax2j.js";
|
|
6
|
+
import { T as P } from "./Typography-CJv5AnRP.js";
|
|
7
|
+
const V = "_root_15ibt_1", j = "_framed_15ibt_12", z = "_code_15ibt_30", G = "_caption_15ibt_35", t = {
|
|
8
|
+
root: V,
|
|
9
|
+
framed: j,
|
|
10
|
+
code: z,
|
|
11
|
+
caption: G
|
|
12
|
+
}, M = N(
|
|
13
|
+
"qrcode.react",
|
|
14
|
+
"QrCode",
|
|
15
|
+
() => import("qrcode.react")
|
|
16
|
+
), D = y(function({
|
|
17
|
+
value: l,
|
|
18
|
+
size: r = 180,
|
|
19
|
+
level: m,
|
|
20
|
+
color: s = "text",
|
|
21
|
+
margin: f = 2,
|
|
22
|
+
image: o,
|
|
23
|
+
caption: i,
|
|
24
|
+
framed: p = !0,
|
|
25
|
+
className: h,
|
|
26
|
+
style: u,
|
|
27
|
+
"aria-label": v = "QR code",
|
|
28
|
+
...g
|
|
29
|
+
}, _) {
|
|
30
|
+
const { module: a, failed: x } = w(M), n = a == null ? void 0 : a.QRCodeSVG, b = m ?? (o ? "H" : "M"), C = o != null ? (() => {
|
|
31
|
+
const e = typeof o == "string" ? { src: o } : o, d = Math.round(r * 0.22);
|
|
32
|
+
return {
|
|
33
|
+
src: e.src,
|
|
34
|
+
width: e.width ?? d,
|
|
35
|
+
height: e.height ?? d,
|
|
36
|
+
excavate: e.excavate ?? !0
|
|
37
|
+
};
|
|
38
|
+
})() : void 0, Q = s === "text" ? void 0 : { "--tz-qr-fg": `var(--tz-color-${s})` };
|
|
39
|
+
return /* @__PURE__ */ S(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
ref: _,
|
|
43
|
+
role: "img",
|
|
44
|
+
"aria-label": v,
|
|
45
|
+
className: q(t.root, p && t.framed, h),
|
|
46
|
+
style: { ...Q, ...u },
|
|
47
|
+
...g,
|
|
48
|
+
children: [
|
|
49
|
+
n ? /* @__PURE__ */ c(
|
|
50
|
+
n,
|
|
51
|
+
{
|
|
52
|
+
className: t.code,
|
|
53
|
+
value: l,
|
|
54
|
+
size: r,
|
|
55
|
+
level: b,
|
|
56
|
+
marginSize: f,
|
|
57
|
+
fgColor: "var(--tz-qr-fg)",
|
|
58
|
+
bgColor: "var(--tz-qr-bg)",
|
|
59
|
+
imageSettings: C,
|
|
60
|
+
"aria-hidden": !0
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ c(
|
|
63
|
+
R,
|
|
64
|
+
{
|
|
65
|
+
variant: "rect",
|
|
66
|
+
width: r,
|
|
67
|
+
height: r,
|
|
68
|
+
animation: x ? !1 : "shimmer",
|
|
69
|
+
className: t.code
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
i != null && /* @__PURE__ */ c(P, { variant: "caption", color: "muted", className: t.caption, children: i })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
D as Q
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=QrCode-osD23Vkt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QrCode-osD23Vkt.js","sources":["../src/components/QrCode/QrCode.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport type * as QrLibModule from 'qrcode.react'\nimport { optionalPeer, useOptionalPeer } from '../../hooks/useOptionalPeer'\nimport { Skeleton } from '../Skeleton'\nimport type { ThemeColor } from '../../theme'\nimport { Typography } from '../Typography'\nimport styles from './QrCode.module.css'\n\nexport type QrCodeLevel = 'L' | 'M' | 'Q' | 'H'\n\nexport interface QrCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /** The encoded text (URL, `otpauth://…` URI, plain string). Required. */\n value: string\n /** Rendered edge length in px. Default `180`. */\n size?: number\n /** Error-correction level. Default `'M'` (`'H'` when `image` is set, so the logo can cover the middle). */\n level?: QrCodeLevel\n /** Module (foreground) tint — a theme token. Default `'text'` (so it follows light/dark). */\n color?: ThemeColor | 'text'\n /** Quiet zone in modules. Default `2`. */\n margin?: number\n /**\n * Optional centre image (a brand mark), as a URL or `{ src, width?, height?, excavate? }`.\n * `excavate` clears the modules under it (default `true`). Sizes default to ~22% of `size`.\n */\n image?: string | { src: string; width?: number; height?: number; excavate?: boolean }\n /** Caption rendered under the code (muted, centred) — e.g. \"Scan with your authenticator app\". */\n caption?: ReactNode\n /**\n * Wrap the code in a soft `surface` frame with padding and radius, so it sits cleanly on the\n * page `background`. Default `true`. Pass `false` for a bare SVG.\n */\n framed?: boolean\n /** Accessible name. Default `\"QR code\"`. The `value` is never exposed as text by this component. */\n 'aria-label'?: string\n}\n\n/**\n * A QR code, rendered as a crisp **SVG** — wraps the optional peer **`qrcode.react`** (`npm i\n * qrcode.react`) so apps don't pull in their own encoder. The modules take a theme `color` token\n * (default `text`) via the `--tz-qr-fg` var; `framed` (default) wraps the code in a soft, elevated card.\n *\n * **Scannability:** a framed code always sits on a **white** card in both light and dark mode, and its\n * default modules stay **dark** in both — a QR must be dark-on-light to read reliably, so the frame is\n * kept white even in dark mode (a deliberate literal-color exception, like `CodeBlock`'s dark surface).\n * A custom `color` is honored as-is (pick one dark enough to scan). The wrapper is `role=\"img\"` with an\n * `aria-label`; the SVG itself is `aria-hidden`, so the encoded `value` is never read out as text.\n */\n/** @internal — exported for tests */\nexport const qrPeer = optionalPeer<typeof QrLibModule>(\n 'qrcode.react',\n 'QrCode',\n () => import('qrcode.react'),\n)\n\nexport const QrCode = forwardRef<HTMLDivElement, QrCodeProps>(function QrCode(\n {\n value,\n size = 180,\n level,\n color = 'text',\n margin = 2,\n image,\n caption,\n framed = true,\n className,\n style,\n 'aria-label': ariaLabel = 'QR code',\n ...props\n },\n ref,\n) {\n // `qrcode.react` is an optional peer, loaded lazily (never imported statically — apps without it must\n // still build + run from the barrel). Until it's ready a same-size skeleton holds the spot; if it isn't\n // installed the spot stays empty and an install hint is logged.\n const { module: qrLib, failed } = useOptionalPeer(qrPeer)\n const QRCodeSVG = qrLib?.QRCodeSVG\n\n // 'H' error correction by default when a centre image is present, so the logo can cover the middle\n // without breaking the code; otherwise 'M'. An explicit `level` always wins.\n const resolvedLevel: QrCodeLevel = level ?? (image ? 'H' : 'M')\n\n const imageSettings =\n image != null\n ? (() => {\n const img = typeof image === 'string' ? { src: image } : image\n const dim = Math.round(size * 0.22)\n return {\n src: img.src,\n width: img.width ?? dim,\n height: img.height ?? dim,\n excavate: img.excavate ?? true,\n }\n })()\n : undefined\n\n // The foreground (modules) follows the `color` token via `--tz-qr-fg`. The default `text` is left to\n // CSS (so `.framed` can force dark modules on the white card in dark mode); a custom token is pinned\n // inline, so it wins over that CSS fallback and is rendered exactly as asked.\n const fgVar = color === 'text' ? undefined : { '--tz-qr-fg': `var(--tz-color-${color})` }\n\n return (\n <div\n ref={ref}\n role=\"img\"\n aria-label={ariaLabel}\n className={clsx(styles.root, framed && styles.framed, className)}\n style={{ ...fgVar, ...style } as CSSProperties}\n {...props}\n >\n {QRCodeSVG ? (\n <QRCodeSVG\n className={styles.code}\n value={value}\n size={size}\n level={resolvedLevel}\n marginSize={margin}\n // colors flow through CSS vars so `.framed` can guarantee contrast per theme (see the module)\n fgColor=\"var(--tz-qr-fg)\"\n bgColor=\"var(--tz-qr-bg)\"\n imageSettings={imageSettings}\n aria-hidden\n />\n ) : (\n <Skeleton\n variant=\"rect\"\n width={size}\n height={size}\n animation={failed ? false : 'shimmer'}\n className={styles.code}\n />\n )}\n {caption != null && (\n <Typography variant=\"caption\" color=\"muted\" className={styles.caption}>\n {caption}\n </Typography>\n )}\n </div>\n )\n})\n"],"names":["qrPeer","optionalPeer","QrCode","forwardRef","value","size","level","color","margin","image","caption","framed","className","style","ariaLabel","props","ref","qrLib","failed","useOptionalPeer","QRCodeSVG","resolvedLevel","imageSettings","img","dim","fgVar","jsxs","clsx","styles","jsx","Skeleton","Typography"],"mappings":";;;;;;;;;;;GAkDaA,IAASC;AAAA,EACpB;AAAA,EACA;AAAA,EACA,MAAM,OAAO,cAAc;AAC7B,GAEaC,IAASC,EAAwC,SAC5D;AAAA,EACE,OAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC,IA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,OAAOzB;AAAA,YACP,QAAQA;AAAA,YACR,WAAWa,IAAS,KAAQ;AAAA,YAC5B,WAAWU,EAAO;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrBlB,KAAW,QACV,gBAAAmB,EAACE,GAAA,EAAW,SAAQ,WAAU,OAAM,SAAQ,WAAWH,EAAO,SAC3D,UAAAlB,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { a } from "./ErrorBoundary-CsDHKYB4.js";
|
|
4
|
+
const c = i(function({ error: r, fallback: o, description: t, compact: e = !0, ...f }, n) {
|
|
5
|
+
return r == null || r === !1 ? null : /* @__PURE__ */ u(
|
|
6
|
+
a,
|
|
7
|
+
{
|
|
8
|
+
ref: n,
|
|
9
|
+
error: r,
|
|
10
|
+
description: t ?? o,
|
|
11
|
+
compact: e,
|
|
12
|
+
...f
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
c as Q
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=QueryError-Bu_MNGek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryError-Bu_MNGek.js","sources":["../src/components/ErrorState/QueryError.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from 'react'\nimport { ErrorState, type ErrorStateProps } from './ErrorState'\n\nexport interface QueryErrorProps extends ErrorStateProps {\n /** The query's error (`query.error`). `null` / `undefined` → renders nothing. */\n error: unknown\n /**\n * The user-facing sentence (\"Could not load players.\"). Shown instead of the raw message, which then\n * only appears in the (dev) details panel. Same as `description`, which wins when both are set.\n */\n fallback?: ReactNode\n}\n\n/**\n * The react-query-style one-liner: `<QueryError error={users.error} onRetry={users.refetch}\n * fallback=\"Could not load players.\" />`. Renders nothing while `error` is empty, otherwise an\n * `ErrorState` — **compact by default** (it usually sits where the data would, inside a card or table\n * area; pass `compact={false}` for the hero). Everything else passes through to `ErrorState`.\n */\nexport const QueryError = forwardRef<HTMLDivElement, QueryErrorProps>(function QueryError(\n { error, fallback, description, compact = true, ...props },\n ref,\n) {\n if (error == null || error === false) return null\n return (\n <ErrorState\n ref={ref}\n error={error}\n description={description ?? fallback}\n compact={compact}\n {...props}\n />\n )\n})\n"],"names":["QueryError","forwardRef","error","fallback","description","compact","props","ref","jsx","ErrorState"],"mappings":";;;AAmBO,MAAMA,IAAaC,EAA4C,SACpE,EAAE,OAAAC,GAAO,UAAAC,GAAU,aAAAC,GAAa,SAAAC,IAAU,IAAM,GAAGC,EAAA,GACnDC,GACA;AACA,SAAIL,KAAS,QAAQA,MAAU,KAAc,OAE3C,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,OAAAL;AAAA,MACA,aAAaE,KAAeD;AAAA,MAC5B,SAAAE;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),i=require("react"),c=require("./ErrorBoundary-CYSOAQlB.cjs"),a=i.forwardRef(function({error:r,fallback:e,description:t,compact:u=!0,...n},o){return r==null||r===!1?null:s.jsx(c.ErrorState,{ref:o,error:r,description:t??e,compact:u,...n})});exports.QueryError=a;
|
|
2
|
+
//# sourceMappingURL=QueryError-C01oichG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryError-C01oichG.cjs","sources":["../src/components/ErrorState/QueryError.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from 'react'\nimport { ErrorState, type ErrorStateProps } from './ErrorState'\n\nexport interface QueryErrorProps extends ErrorStateProps {\n /** The query's error (`query.error`). `null` / `undefined` → renders nothing. */\n error: unknown\n /**\n * The user-facing sentence (\"Could not load players.\"). Shown instead of the raw message, which then\n * only appears in the (dev) details panel. Same as `description`, which wins when both are set.\n */\n fallback?: ReactNode\n}\n\n/**\n * The react-query-style one-liner: `<QueryError error={users.error} onRetry={users.refetch}\n * fallback=\"Could not load players.\" />`. Renders nothing while `error` is empty, otherwise an\n * `ErrorState` — **compact by default** (it usually sits where the data would, inside a card or table\n * area; pass `compact={false}` for the hero). Everything else passes through to `ErrorState`.\n */\nexport const QueryError = forwardRef<HTMLDivElement, QueryErrorProps>(function QueryError(\n { error, fallback, description, compact = true, ...props },\n ref,\n) {\n if (error == null || error === false) return null\n return (\n <ErrorState\n ref={ref}\n error={error}\n description={description ?? fallback}\n compact={compact}\n {...props}\n />\n )\n})\n"],"names":["QueryError","forwardRef","error","fallback","description","compact","props","ref","jsx","ErrorState"],"mappings":"+GAmBaA,EAAaC,EAAAA,WAA4C,SACpE,CAAE,MAAAC,EAAO,SAAAC,EAAU,YAAAC,EAAa,QAAAC,EAAU,GAAM,GAAGC,CAAA,EACnDC,EACA,CACA,OAAIL,GAAS,MAAQA,IAAU,GAAc,KAE3CM,EAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,MAAAL,EACA,YAAaE,GAAeD,EAC5B,QAAAE,EACC,GAAGC,CAAA,CAAA,CAGV,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),a=require("react"),m=require("clsx"),E=require("./formContext-bTWrqdEV.cjs"),F=require("./Typography-B6ASPrzT.cjs"),S=a.createContext(null);function T(){return a.useContext(S)}const D="_field_oev9b_2",P="_row_oev9b_9",$="_disabled_oev9b_21",A="_input_oev9b_27",H="_circle_oev9b_41",J="_dot_oev9b_63",K="_error_oev9b_77",M="_label_oev9b_81",O="_required_oev9b_86",Q="_sm_oev9b_92",U="_md_oev9b_96",W="_lg_oev9b_100",X="_group_oev9b_116",Y="_groupLabel_oev9b_123",Z="_options_oev9b_128",ee="_horizontal_oev9b_134",o={field:D,row:P,disabled:$,input:A,circle:H,dot:J,error:K,label:M,required:O,sm:Q,md:U,lg:W,group:X,groupLabel:Y,options:Z,horizontal:ee},V=a.forwardRef(function({value:n,label:d,color:h,size:u,error:r,checked:c,onChange:_,name:p,disabled:j,id:N,className:R,style:q,...z},y){const g=a.useId(),C=N??g,e=T(),l=h??(e==null?void 0:e.color)??"accent",b=u??(e==null?void 0:e.size)??"md",i=r??(e==null?void 0:e.error)??!1,v=j??(e==null?void 0:e.disabled)??!1,x=p??(e==null?void 0:e.name),[w,G]=a.useState(!1),I=e?e.value===n:c!==void 0?c:w,f=L=>{if(e){e.onChange(n);return}c===void 0&&G(L.target.checked),_==null||_(L.target.checked)};return s.jsx("div",{className:m.clsx(o.field,i&&o.error,v&&o.disabled,R),style:{"--tz-btn-rgb":`var(--tz-color-${l}-rgb)`,...q},children:s.jsxs("label",{className:m.clsx(o.row,o[b]),children:[s.jsx("input",{ref:y,id:C,name:x,type:"radio",className:o.input,value:n,checked:I,onChange:f,disabled:v,"aria-invalid":i||void 0,...z}),s.jsx("span",{className:o.circle,"aria-hidden":"true",children:s.jsx("span",{className:o.dot})}),d!=null&&s.jsx("span",{className:o.label,children:d})]})})}),oe=a.forwardRef(function({label:n,value:d,defaultValue:h,onChange:u,name:r,options:c,orientation:_="vertical",size:p="md",color:j="accent",error:N,required:R=!1,disabled:q=!1,children:z,className:y,style:g,...C},e){const l=E.useFormContext(),b=!!(l&&r),i=l&&r?l.field(r):void 0,v=d!==void 0?d:b?l.values[r]:void 0,x=v!==void 0,[w,G]=a.useState(h),I=x?v:w,f=N??(i==null?void 0:i.error)??!1,B={name:r,value:I,onChange:t=>{x||G(t),b&&l.setValue(r,t),u==null||u(t)},size:p,color:j,disabled:q,error:f};return s.jsxs("div",{ref:e,role:"radiogroup","aria-invalid":f||void 0,className:m.clsx(o.group,y),style:g,...C,children:[n!=null&&s.jsxs("span",{className:o.groupLabel,children:[s.jsx(F.Typography,{as:"span",variant:"bodySmall",color:"muted",children:n}),R&&s.jsx("span",{className:o.required,"aria-hidden":"true",children:"*"})]}),s.jsx("div",{className:m.clsx(o.options,_==="horizontal"&&o.horizontal),children:s.jsx(S.Provider,{value:B,children:c?c.map(t=>s.jsx(V,{value:t.value,label:t.label,disabled:t.disabled},t.value)):z})})]})});exports.Radio=V;exports.RadioGroup=oe;
|
|
2
|
+
//# sourceMappingURL=RadioGroup-BcFBdFhh.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup-Byy-eSY3.cjs","sources":["../src/components/Radio/radioContext.ts","../src/components/Radio/Radio.tsx","../src/components/Radio/RadioGroup.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { ThemeColor } from '../../theme'\nimport type { RadioSize } from './Radio'\n\n/** Shared state a `<RadioGroup>` hands down to its `<Radio>` children via context. */\nexport interface RadioGroupContextValue {\n /** Shared input `name` (the radios in a group must share one). */\n name?: string\n /** The group's currently-selected value. */\n value?: string\n /** Select a value — called by a child `<Radio>` on change. */\n onChange: (value: string) => void\n size?: RadioSize\n color?: ThemeColor\n disabled?: boolean\n error?: boolean\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue | null>(null)\n\n/** Read the surrounding `<RadioGroup>` so a `<Radio>` can wire itself in (or `null` when standalone). */\nexport function useRadioGroupContext(): RadioGroupContextValue | null {\n return useContext(RadioGroupContext)\n}\n","import {\n forwardRef,\n useId,\n useState,\n type ChangeEvent,\n type CSSProperties,\n type InputHTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport type { ThemeColor } from '../../theme'\nimport { useRadioGroupContext } from './radioContext'\nimport styles from './Radio.module.css'\n\nexport type RadioSize = 'sm' | 'md' | 'lg'\n\nexport interface RadioProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size' | 'color' | 'type' | 'onChange' | 'value'\n> {\n /** This option's value — selected when it matches the surrounding `RadioGroup`'s value. */\n value: string\n /** Text shown to the right of the control. */\n label?: ReactNode\n /** Theme palette token for the selected fill. Defaults to `accent` (inherits the group's `color`). */\n color?: ThemeColor\n /** Preset size — circle dimensions and label font. Inherits the group's `size` when omitted. */\n size?: RadioSize\n /** Marks the control invalid — reddens the ring. Inherits the group's `error`. */\n error?: boolean\n /** Controlled selected state for standalone use (inside a `RadioGroup` the group drives this). */\n checked?: boolean\n /** Fires with the next selected state (standalone use). */\n onChange?: (checked: boolean) => void\n}\n\n/**\n * A single radio button with a label. The native `<input type=\"radio\">` is visually hidden but fully\n * accessible; a styled circle shows the state, filling with `color` and an inner dot when selected.\n * Designed to live inside a `<RadioGroup>` (which supplies the shared `name`, selection and\n * `size`/`color`/`disabled`/`error` via context), but also works standalone (`checked` + `onChange`).\n * Styling uses `--tz-*` tokens only.\n */\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(function Radio(\n {\n value,\n label,\n color,\n size,\n error,\n checked,\n onChange,\n name,\n disabled,\n id: idProp,\n className,\n style,\n ...props\n },\n ref,\n) {\n const reactId = useId()\n const id = idProp ?? reactId\n const group = useRadioGroupContext()\n\n const resolvedColor = color ?? group?.color ?? 'accent'\n const resolvedSize = size ?? group?.size ?? 'md'\n const resolvedError = error ?? group?.error ?? false\n const resolvedDisabled = disabled ?? group?.disabled ?? false\n const resolvedName = name ?? group?.name\n\n // In a group the selection comes from context; standalone it's controlled (`checked`) or local.\n const [internal, setInternal] = useState(false)\n const isChecked = group ? group.value === value : checked !== undefined ? checked : internal\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n if (group) {\n group.onChange(value)\n return\n }\n if (checked === undefined) setInternal(event.target.checked)\n onChange?.(event.target.checked)\n }\n\n return (\n <div\n className={clsx(\n styles.field,\n resolvedError && styles.error,\n resolvedDisabled && styles.disabled,\n className,\n )}\n style={{ '--tz-btn-rgb': `var(--tz-color-${resolvedColor}-rgb)`, ...style } as CSSProperties}\n >\n <label className={clsx(styles.row, styles[resolvedSize])}>\n <input\n ref={ref}\n id={id}\n name={resolvedName}\n type=\"radio\"\n className={styles.input}\n value={value}\n checked={isChecked}\n onChange={handleChange}\n disabled={resolvedDisabled}\n aria-invalid={resolvedError || undefined}\n {...props}\n />\n <span className={styles.circle} aria-hidden=\"true\">\n <span className={styles.dot} />\n </span>\n {label != null && <span className={styles.label}>{label}</span>}\n </label>\n </div>\n )\n})\n","import {\n forwardRef,\n useState,\n type CSSProperties,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { useFormContext } from '../../form/formContext'\nimport type { ThemeColor } from '../../theme'\nimport { Typography } from '../Typography'\nimport { Radio, type RadioSize } from './Radio'\nimport { RadioGroupContext, type RadioGroupContextValue } from './radioContext'\nimport styles from './Radio.module.css'\n\nexport type RadioOrientation = 'vertical' | 'horizontal'\n\n/** A single option for the data-driven `options` prop. */\nexport interface RadioOption {\n value: string\n label?: ReactNode\n disabled?: boolean\n}\n\nexport interface RadioGroupProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'onChange' | 'defaultValue'\n> {\n /** Group label rendered above the options. */\n label?: ReactNode\n /** Controlled selected value. */\n value?: string\n /** Initial value for uncontrolled use. */\n defaultValue?: string\n /** Fires with the newly-selected value. */\n onChange?: (value: string) => void\n /** Shared input `name` for the radios (also the `<Form>` binding key). */\n name?: string\n /** Data-driven options — an alternative to passing `<Radio>` children. */\n options?: RadioOption[]\n /** Stack direction of the options. Defaults to `vertical`. */\n orientation?: RadioOrientation\n /** Preset size for every radio. Defaults to `md`. */\n size?: RadioSize\n /** Theme palette token for the selected fill. Defaults to `accent`. */\n color?: ThemeColor\n /** Marks the group invalid — reddens the radio rings (no message text, like `Checkbox`). */\n error?: boolean\n /** Adds a red asterisk after the label. */\n required?: boolean\n /** Disables every radio in the group. */\n disabled?: boolean\n /** `<Radio>` children (used when `options` is not given). */\n children?: ReactNode\n}\n\n/**\n * Groups radio buttons so exactly one is selected. Supplies the shared `name`, selection and\n * `size`/`color`/`disabled`/`error` to its `<Radio>` children via context — pass them as `children`\n * or, for the common case, via the data-driven `options` prop. Controlled (`value` + `onChange`) or\n * uncontrolled (`defaultValue`), and binds to a surrounding `<Form>` by `name` (its form value is a\n * `string`; validate with e.g. `z.string().min(1)`). `error` reddens the radio rings (no message text,\n * like `Checkbox`). `role=\"radiogroup\"`; styling uses `--tz-*` tokens.\n */\nexport const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(function RadioGroup(\n {\n label,\n value,\n defaultValue,\n onChange,\n name,\n options,\n orientation = 'vertical',\n size = 'md',\n color = 'accent',\n error,\n required = false,\n disabled = false,\n children,\n className,\n style,\n ...props\n },\n ref,\n) {\n // Auto-bind to a surrounding <Form> by `name` — the form value is the selected string.\n const form = useFormContext()\n const isFormBound = Boolean(form && name)\n const bound = form && name ? form.field(name) : undefined\n\n const externalValue: string | undefined =\n value !== undefined\n ? value\n : isFormBound\n ? (form!.values[name!] as string | undefined)\n : undefined\n const isControlled = externalValue !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const currentValue = isControlled ? externalValue : internal\n\n const resolvedError = error ?? bound?.error ?? false\n\n const handleChange = (next: string) => {\n if (!isControlled) setInternal(next)\n if (isFormBound) form!.setValue(name!, next)\n onChange?.(next)\n }\n\n const ctx: RadioGroupContextValue = {\n name,\n value: currentValue,\n onChange: handleChange,\n size,\n color,\n disabled,\n error: resolvedError,\n }\n\n return (\n <div\n ref={ref}\n role=\"radiogroup\"\n aria-invalid={resolvedError || undefined}\n className={clsx(styles.group, className)}\n style={style as CSSProperties}\n {...props}\n >\n {label != null && (\n <span className={styles.groupLabel}>\n <Typography as=\"span\" variant=\"bodySmall\" color=\"muted\">\n {label}\n </Typography>\n {required && (\n <span className={styles.required} aria-hidden=\"true\">\n *\n </span>\n )}\n </span>\n )}\n\n <div className={clsx(styles.options, orientation === 'horizontal' && styles.horizontal)}>\n <RadioGroupContext.Provider value={ctx}>\n {options\n ? options.map((option) => (\n <Radio\n key={option.value}\n value={option.value}\n label={option.label}\n disabled={option.disabled}\n />\n ))\n : children}\n </RadioGroupContext.Provider>\n </div>\n </div>\n )\n})\n"],"names":["RadioGroupContext","createContext","useRadioGroupContext","useContext","Radio","forwardRef","value","label","color","size","error","checked","onChange","name","disabled","idProp","className","style","props","ref","reactId","useId","id","group","resolvedColor","resolvedSize","resolvedError","resolvedDisabled","resolvedName","internal","setInternal","useState","isChecked","handleChange","event","jsx","clsx","styles","jsxs","RadioGroup","defaultValue","options","orientation","required","children","form","useFormContext","isFormBound","bound","externalValue","isControlled","currentValue","ctx","next","Typography","option"],"mappings":"sKAkBaA,EAAoBC,EAAAA,cAA6C,IAAI,EAG3E,SAASC,GAAsD,CACpE,OAAOC,EAAAA,WAAWH,CAAiB,CACrC,2dCoBaI,EAAQC,EAAAA,WAAyC,SAC5D,CACE,MAAAC,EACA,MAAAC,EACA,MAAAC,EACA,KAAAC,EACA,MAAAC,EACA,QAAAC,EACA,SAAAC,EACA,KAAAC,EACA,SAAAC,EACA,GAAIC,EACJ,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAUC,EAAAA,MAAA,EACVC,EAAKP,GAAUK,EACfG,EAAQrB,EAAA,EAERsB,EAAgBhB,IAASe,GAAA,YAAAA,EAAO,QAAS,SACzCE,EAAehB,IAAQc,GAAA,YAAAA,EAAO,OAAQ,KACtCG,EAAgBhB,IAASa,GAAA,YAAAA,EAAO,QAAS,GACzCI,EAAmBb,IAAYS,GAAA,YAAAA,EAAO,WAAY,GAClDK,EAAef,IAAQU,GAAA,YAAAA,EAAO,MAG9B,CAACM,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAYT,EAAQA,EAAM,QAAUjB,EAAQK,IAAY,OAAYA,EAAUkB,EAE9EI,EAAgBC,GAAyC,CAC7D,GAAIX,EAAO,CACTA,EAAM,SAASjB,CAAK,EACpB,MACF,CACIK,IAAY,QAAWmB,EAAYI,EAAM,OAAO,OAAO,EAC3DtB,GAAA,MAAAA,EAAWsB,EAAM,OAAO,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IAAkB,OACjC,CAACpB,EAAUC,CAAW,EAAIC,EAAAA,SAA6BS,CAAY,EACnEW,EAAeD,EAAeD,EAAgBpB,EAE9CH,EAAgBhB,IAASsC,GAAA,YAAAA,EAAO,QAAS,GAQzCI,EAA8B,CAClC,KAAAvC,EACA,MAAOsC,EACP,SAToBE,GAAiB,CAChCH,GAAcpB,EAAYuB,CAAI,EAC/BN,GAAaF,EAAM,SAAShC,EAAOwC,CAAI,EAC3CzC,GAAA,MAAAA,EAAWyC,EACb,EAME,KAAA5C,EACA,MAAAD,EACA,SAAAM,EACA,MAAOY,CAAA,EAGT,OACEY,EAAAA,KAAC,MAAA,CACC,IAAAnB,EACA,KAAK,aACL,eAAcO,GAAiB,OAC/B,UAAWU,EAAAA,KAAKC,EAAO,MAAOrB,CAAS,EACvC,MAAAC,EACC,GAAGC,EAEH,SAAA,CAAAX,GAAS,MACR+B,EAAAA,KAAC,OAAA,CAAK,UAAWD,EAAO,WACtB,SAAA,CAAAF,EAAAA,IAACmB,EAAAA,YAAW,GAAG,OAAO,QAAQ,YAAY,MAAM,QAC7C,SAAA/C,CAAA,CACH,EACCoC,SACE,OAAA,CAAK,UAAWN,EAAO,SAAU,cAAY,OAAO,SAAA,GAAA,CAErD,CAAA,EAEJ,EAGFF,EAAAA,IAAC,OAAI,UAAWC,OAAKC,EAAO,QAASK,IAAgB,cAAgBL,EAAO,UAAU,EACpF,SAAAF,EAAAA,IAACnC,EAAkB,SAAlB,CAA2B,MAAOoD,EAChC,SAAAX,EACGA,EAAQ,IAAKc,GACXpB,EAAAA,IAAC/B,EAAA,CAEC,MAAOmD,EAAO,MACd,MAAOA,EAAO,MACd,SAAUA,EAAO,QAAA,EAHZA,EAAO,KAAA,CAKf,EACDX,CAAA,CACN,CAAA,CACF,CAAA,CAAA,CAAA,CAGN,CAAC"}
|
|
1
|
+
{"version":3,"file":"RadioGroup-BcFBdFhh.cjs","sources":["../src/components/Radio/radioContext.ts","../src/components/Radio/Radio.tsx","../src/components/Radio/RadioGroup.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { ThemeColor } from '../../theme'\nimport type { RadioSize } from './Radio'\n\n/** Shared state a `<RadioGroup>` hands down to its `<Radio>` children via context. */\nexport interface RadioGroupContextValue {\n /** Shared input `name` (the radios in a group must share one). */\n name?: string\n /** The group's currently-selected value. */\n value?: string\n /** Select a value — called by a child `<Radio>` on change. */\n onChange: (value: string) => void\n size?: RadioSize\n color?: ThemeColor\n disabled?: boolean\n error?: boolean\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue | null>(null)\n\n/** Read the surrounding `<RadioGroup>` so a `<Radio>` can wire itself in (or `null` when standalone). */\nexport function useRadioGroupContext(): RadioGroupContextValue | null {\n return useContext(RadioGroupContext)\n}\n","import {\n forwardRef,\n useId,\n useState,\n type ChangeEvent,\n type CSSProperties,\n type InputHTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport type { ThemeColor } from '../../theme'\nimport { useRadioGroupContext } from './radioContext'\nimport styles from './Radio.module.css'\n\nexport type RadioSize = 'sm' | 'md' | 'lg'\n\nexport interface RadioProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size' | 'color' | 'type' | 'onChange' | 'value'\n> {\n /** This option's value — selected when it matches the surrounding `RadioGroup`'s value. */\n value: string\n /** Text shown to the right of the control. */\n label?: ReactNode\n /** Theme palette token for the selected fill. Defaults to `accent` (inherits the group's `color`). */\n color?: ThemeColor\n /** Preset size — circle dimensions and label font. Inherits the group's `size` when omitted. */\n size?: RadioSize\n /** Marks the control invalid — reddens the ring. Inherits the group's `error`. */\n error?: boolean\n /** Controlled selected state for standalone use (inside a `RadioGroup` the group drives this). */\n checked?: boolean\n /** Fires with the next selected state (standalone use). */\n onChange?: (checked: boolean) => void\n}\n\n/**\n * A single radio button with a label. The native `<input type=\"radio\">` is visually hidden but fully\n * accessible; a styled circle shows the state, filling with `color` and an inner dot when selected.\n * Designed to live inside a `<RadioGroup>` (which supplies the shared `name`, selection and\n * `size`/`color`/`disabled`/`error` via context), but also works standalone (`checked` + `onChange`).\n * Styling uses `--tz-*` tokens only.\n */\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(function Radio(\n {\n value,\n label,\n color,\n size,\n error,\n checked,\n onChange,\n name,\n disabled,\n id: idProp,\n className,\n style,\n ...props\n },\n ref,\n) {\n const reactId = useId()\n const id = idProp ?? reactId\n const group = useRadioGroupContext()\n\n const resolvedColor = color ?? group?.color ?? 'accent'\n const resolvedSize = size ?? group?.size ?? 'md'\n const resolvedError = error ?? group?.error ?? false\n const resolvedDisabled = disabled ?? group?.disabled ?? false\n const resolvedName = name ?? group?.name\n\n // In a group the selection comes from context; standalone it's controlled (`checked`) or local.\n const [internal, setInternal] = useState(false)\n const isChecked = group ? group.value === value : checked !== undefined ? checked : internal\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n if (group) {\n group.onChange(value)\n return\n }\n if (checked === undefined) setInternal(event.target.checked)\n onChange?.(event.target.checked)\n }\n\n return (\n <div\n className={clsx(\n styles.field,\n resolvedError && styles.error,\n resolvedDisabled && styles.disabled,\n className,\n )}\n style={{ '--tz-btn-rgb': `var(--tz-color-${resolvedColor}-rgb)`, ...style } as CSSProperties}\n >\n <label className={clsx(styles.row, styles[resolvedSize])}>\n <input\n ref={ref}\n id={id}\n name={resolvedName}\n type=\"radio\"\n className={styles.input}\n value={value}\n checked={isChecked}\n onChange={handleChange}\n disabled={resolvedDisabled}\n aria-invalid={resolvedError || undefined}\n {...props}\n />\n <span className={styles.circle} aria-hidden=\"true\">\n <span className={styles.dot} />\n </span>\n {label != null && <span className={styles.label}>{label}</span>}\n </label>\n </div>\n )\n})\n","import {\n forwardRef,\n useState,\n type CSSProperties,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { useFormContext } from '../../form/formContext'\nimport type { ThemeColor } from '../../theme'\nimport { Typography } from '../Typography'\nimport { Radio, type RadioSize } from './Radio'\nimport { RadioGroupContext, type RadioGroupContextValue } from './radioContext'\nimport styles from './Radio.module.css'\n\nexport type RadioOrientation = 'vertical' | 'horizontal'\n\n/** A single option for the data-driven `options` prop. */\nexport interface RadioOption {\n value: string\n label?: ReactNode\n disabled?: boolean\n}\n\nexport interface RadioGroupProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'onChange' | 'defaultValue'\n> {\n /** Group label rendered above the options. */\n label?: ReactNode\n /** Controlled selected value. */\n value?: string\n /** Initial value for uncontrolled use. */\n defaultValue?: string\n /** Fires with the newly-selected value. */\n onChange?: (value: string) => void\n /** Shared input `name` for the radios (also the `<Form>` binding key). */\n name?: string\n /** Data-driven options — an alternative to passing `<Radio>` children. */\n options?: RadioOption[]\n /** Stack direction of the options. Defaults to `vertical`. */\n orientation?: RadioOrientation\n /** Preset size for every radio. Defaults to `md`. */\n size?: RadioSize\n /** Theme palette token for the selected fill. Defaults to `accent`. */\n color?: ThemeColor\n /** Marks the group invalid — reddens the radio rings (no message text, like `Checkbox`). */\n error?: boolean\n /** Adds a red asterisk after the label. */\n required?: boolean\n /** Disables every radio in the group. */\n disabled?: boolean\n /** `<Radio>` children (used when `options` is not given). */\n children?: ReactNode\n}\n\n/**\n * Groups radio buttons so exactly one is selected. Supplies the shared `name`, selection and\n * `size`/`color`/`disabled`/`error` to its `<Radio>` children via context — pass them as `children`\n * or, for the common case, via the data-driven `options` prop. Controlled (`value` + `onChange`) or\n * uncontrolled (`defaultValue`), and binds to a surrounding `<Form>` by `name` (its form value is a\n * `string`; validate with e.g. `z.string().min(1)`). `error` reddens the radio rings (no message text,\n * like `Checkbox`). `role=\"radiogroup\"`; styling uses `--tz-*` tokens.\n */\nexport const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(function RadioGroup(\n {\n label,\n value,\n defaultValue,\n onChange,\n name,\n options,\n orientation = 'vertical',\n size = 'md',\n color = 'accent',\n error,\n required = false,\n disabled = false,\n children,\n className,\n style,\n ...props\n },\n ref,\n) {\n // Auto-bind to a surrounding <Form> by `name` — the form value is the selected string.\n const form = useFormContext()\n const isFormBound = Boolean(form && name)\n const bound = form && name ? form.field(name) : undefined\n\n const externalValue: string | undefined =\n value !== undefined\n ? value\n : isFormBound\n ? (form!.values[name!] as string | undefined)\n : undefined\n const isControlled = externalValue !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const currentValue = isControlled ? externalValue : internal\n\n const resolvedError = error ?? bound?.error ?? false\n\n const handleChange = (next: string) => {\n if (!isControlled) setInternal(next)\n if (isFormBound) form!.setValue(name!, next)\n onChange?.(next)\n }\n\n const ctx: RadioGroupContextValue = {\n name,\n value: currentValue,\n onChange: handleChange,\n size,\n color,\n disabled,\n error: resolvedError,\n }\n\n return (\n <div\n ref={ref}\n role=\"radiogroup\"\n aria-invalid={resolvedError || undefined}\n className={clsx(styles.group, className)}\n style={style as CSSProperties}\n {...props}\n >\n {label != null && (\n <span className={styles.groupLabel}>\n <Typography as=\"span\" variant=\"bodySmall\" color=\"muted\">\n {label}\n </Typography>\n {required && (\n <span className={styles.required} aria-hidden=\"true\">\n *\n </span>\n )}\n </span>\n )}\n\n <div className={clsx(styles.options, orientation === 'horizontal' && styles.horizontal)}>\n <RadioGroupContext.Provider value={ctx}>\n {options\n ? options.map((option) => (\n <Radio\n key={option.value}\n value={option.value}\n label={option.label}\n disabled={option.disabled}\n />\n ))\n : children}\n </RadioGroupContext.Provider>\n </div>\n </div>\n )\n})\n"],"names":["RadioGroupContext","createContext","useRadioGroupContext","useContext","Radio","forwardRef","value","label","color","size","error","checked","onChange","name","disabled","idProp","className","style","props","ref","reactId","useId","id","group","resolvedColor","resolvedSize","resolvedError","resolvedDisabled","resolvedName","internal","setInternal","useState","isChecked","handleChange","event","jsx","clsx","styles","jsxs","RadioGroup","defaultValue","options","orientation","required","children","form","useFormContext","isFormBound","bound","externalValue","isControlled","currentValue","ctx","next","Typography","option"],"mappings":"sKAkBaA,EAAoBC,EAAAA,cAA6C,IAAI,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