@techzyapp/ui-library 1.0.25 → 1.0.28
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-BTvmassR.js +55 -0
- package/dist/AdminRoot-BTvmassR.js.map +1 -0
- package/dist/AdminRoot-DM-cZCpN.cjs +2 -0
- package/dist/AdminRoot-DM-cZCpN.cjs.map +1 -0
- package/dist/{Alert-udX1ybuC.cjs → Alert-CFm6MU0u.cjs} +2 -2
- package/dist/{Alert-udX1ybuC.cjs.map → Alert-CFm6MU0u.cjs.map} +1 -1
- package/dist/{Alert-DXmzM_rh.js → Alert-v-lelDih.js} +3 -3
- package/dist/{Alert-DXmzM_rh.js.map → Alert-v-lelDih.js.map} +1 -1
- package/dist/{AuthLayout-CP9qu6Bv.js → AuthLayout-DOFYw_z5.js} +3 -3
- package/dist/{AuthLayout-CP9qu6Bv.js.map → AuthLayout-DOFYw_z5.js.map} +1 -1
- package/dist/{AuthLayout-BRUxDgzs.cjs → AuthLayout-QAtW2GAT.cjs} +2 -2
- package/dist/{AuthLayout-BRUxDgzs.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-uW0SD5P4.cjs → AvatarGroup-CHesdo-M.cjs} +2 -2
- package/dist/{AvatarGroup-uW0SD5P4.cjs.map → AvatarGroup-CHesdo-M.cjs.map} +1 -1
- package/dist/{AvatarGroup-YaNasLMS.js → AvatarGroup-CwlYqDCI.js} +2 -2
- package/dist/{AvatarGroup-YaNasLMS.js.map → AvatarGroup-CwlYqDCI.js.map} +1 -1
- package/dist/Badge-BmFgusOa.js +50 -0
- package/dist/{Badge-DSWigoGC.js.map → Badge-BmFgusOa.js.map} +1 -1
- package/dist/Badge-DVbe1rAI.cjs +2 -0
- package/dist/{Badge-BQpr2Jee.cjs.map → Badge-DVbe1rAI.cjs.map} +1 -1
- package/dist/{Breadcrumbs-CsYTiX2h.cjs → Breadcrumbs-3wHPNa0P.cjs} +2 -2
- package/dist/{Breadcrumbs-CsYTiX2h.cjs.map → Breadcrumbs-3wHPNa0P.cjs.map} +1 -1
- package/dist/{Breadcrumbs-DQHHeLId.js → Breadcrumbs-Cgd-u3aK.js} +3 -3
- package/dist/{Breadcrumbs-DQHHeLId.js.map → Breadcrumbs-Cgd-u3aK.js.map} +1 -1
- package/dist/Button-BLW9yV8W.js +72 -0
- package/dist/{Button-DBs8xnA5.js.map → Button-BLW9yV8W.js.map} +1 -1
- package/dist/Button-KRGjJdMV.cjs +2 -0
- package/dist/{Button-CXmDOzPk.cjs.map → Button-KRGjJdMV.cjs.map} +1 -1
- package/dist/{Calendar-B2nMXk4C.cjs → Calendar-CoTCOOUu.cjs} +2 -2
- package/dist/{Calendar-B2nMXk4C.cjs.map → Calendar-CoTCOOUu.cjs.map} +1 -1
- package/dist/{Calendar-CtteUt82.js → Calendar-sLA-xa0B.js} +4 -4
- package/dist/{Calendar-CtteUt82.js.map → Calendar-sLA-xa0B.js.map} +1 -1
- package/dist/Card-6fiSEC0z.js +121 -0
- package/dist/Card-6fiSEC0z.js.map +1 -0
- package/dist/Card-zTkvreQu.cjs +2 -0
- package/dist/Card-zTkvreQu.cjs.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-DdKhcstm.js → Chip-C-5Z5wsC.js} +31 -31
- package/dist/{Chip-DdKhcstm.js.map → Chip-C-5Z5wsC.js.map} +1 -1
- package/dist/Chip-CqOqfafx.cjs +2 -0
- package/dist/{Chip-gUH_7nQc.cjs.map → Chip-CqOqfafx.cjs.map} +1 -1
- package/dist/ChoiceCardGroup-BSagRbPI.cjs +2 -0
- package/dist/{ChoiceCardGroup-d0VVTUi5.cjs.map → ChoiceCardGroup-BSagRbPI.cjs.map} +1 -1
- package/dist/ChoiceCardGroup-CEniY_HJ.js +181 -0
- package/dist/{ChoiceCardGroup-DBohUnRj.js.map → ChoiceCardGroup-CEniY_HJ.js.map} +1 -1
- package/dist/{CodeBlock-C6tQtbHU.cjs → CodeBlock-DFiHDZXh.cjs} +2 -2
- package/dist/{CodeBlock-C6tQtbHU.cjs.map → CodeBlock-DFiHDZXh.cjs.map} +1 -1
- package/dist/{CodeBlock-DD_d3-sM.js → CodeBlock-rPaqO7yD.js} +3 -3
- package/dist/{CodeBlock-DD_d3-sM.js.map → CodeBlock-rPaqO7yD.js.map} +1 -1
- package/dist/ColorPicker-Bqypsy5E.cjs +2 -0
- package/dist/ColorPicker-Bqypsy5E.cjs.map +1 -0
- package/dist/{ColorPicker-Dw6Qk0iy.js → ColorPicker-DXDAXvlA.js} +36 -27
- package/dist/ColorPicker-DXDAXvlA.js.map +1 -0
- package/dist/ColorPickerPanel-6lQC1URc.js +322 -0
- package/dist/ColorPickerPanel-6lQC1URc.js.map +1 -0
- package/dist/ColorPickerPanel-C9ARc_uD.cjs +2 -0
- package/dist/ColorPickerPanel-C9ARc_uD.cjs.map +1 -0
- package/dist/ColorRamp-B9OWxCOK.cjs +2 -0
- package/dist/ColorRamp-B9OWxCOK.cjs.map +1 -0
- package/dist/ColorRamp-DQ8wkgvF.js +126 -0
- package/dist/ColorRamp-DQ8wkgvF.js.map +1 -0
- package/dist/{ConfigProvider-Bszl3Wr3.cjs → ConfigProvider-BElY0HuV.cjs} +2 -2
- package/dist/ConfigProvider-BElY0HuV.cjs.map +1 -0
- package/dist/{ConfigProvider-DR9YMy9U.js → ConfigProvider-B_RSn9bb.js} +2 -2
- package/dist/ConfigProvider-B_RSn9bb.js.map +1 -0
- package/dist/CopyButton-B5aicGl3.cjs +2 -0
- package/dist/{CopyButton-Ct-8AmmX.cjs.map → CopyButton-B5aicGl3.cjs.map} +1 -1
- package/dist/CopyButton-BplPYm8i.js +43 -0
- package/dist/{CopyButton-DJ1PSJZU.js.map → CopyButton-BplPYm8i.js.map} +1 -1
- package/dist/DashedButton-B7xodc3N.cjs +2 -0
- package/dist/{DashedButton-3C4IZuo4.cjs.map → DashedButton-B7xodc3N.cjs.map} +1 -1
- package/dist/DashedButton-iM7kzopW.js +59 -0
- package/dist/{DashedButton-BXZAyMtw.js.map → DashedButton-iM7kzopW.js.map} +1 -1
- package/dist/{DatePicker-BxEydgfu.cjs → DatePicker-Cdl2JYBd.cjs} +2 -2
- package/dist/{DatePicker-BxEydgfu.cjs.map → DatePicker-Cdl2JYBd.cjs.map} +1 -1
- package/dist/{DatePicker-CJioG5M7.js → DatePicker-U5TJ9FYM.js} +7 -7
- package/dist/{DatePicker-CJioG5M7.js.map → DatePicker-U5TJ9FYM.js.map} +1 -1
- package/dist/DatePicker.module-BDtTsg8M.cjs +2 -0
- package/dist/{DatePicker.module-tE-tGNBd.cjs.map → DatePicker.module-BDtTsg8M.cjs.map} +1 -1
- package/dist/DatePicker.module-CMMQyEhG.js +138 -0
- package/dist/{DatePicker.module-BZDftL4g.js.map → DatePicker.module-CMMQyEhG.js.map} +1 -1
- package/dist/{DateTimePicker-COEj2Z0F.cjs → DateTimePicker-DUFtddxJ.cjs} +2 -2
- package/dist/{DateTimePicker-COEj2Z0F.cjs.map → DateTimePicker-DUFtddxJ.cjs.map} +1 -1
- package/dist/{DateTimePicker-e2zj2bhS.js → DateTimePicker-laJsZYJX.js} +10 -10
- package/dist/{DateTimePicker-e2zj2bhS.js.map → DateTimePicker-laJsZYJX.js.map} +1 -1
- package/dist/DescriptionList-BCvOX8fg.cjs +2 -0
- package/dist/DescriptionList-BCvOX8fg.cjs.map +1 -0
- package/dist/DescriptionList-Y9jF_4L0.js +176 -0
- package/dist/DescriptionList-Y9jF_4L0.js.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-BtwuzX9Z.js +58 -0
- package/dist/EmptyState-BtwuzX9Z.js.map +1 -0
- package/dist/EmptyState-CO_NRZ6w.cjs +2 -0
- package/dist/EmptyState-CO_NRZ6w.cjs.map +1 -0
- package/dist/ErrorBoundary-DJ6R1M9k.js +126 -0
- package/dist/ErrorBoundary-DJ6R1M9k.js.map +1 -0
- package/dist/ErrorBoundary-unvC1vZQ.cjs +2 -0
- package/dist/ErrorBoundary-unvC1vZQ.cjs.map +1 -0
- package/dist/FileCard-C3a2yDhK.js +149 -0
- package/dist/FileCard-C3a2yDhK.js.map +1 -0
- package/dist/FileCard-DKjDQRzZ.cjs +2 -0
- package/dist/FileCard-DKjDQRzZ.cjs.map +1 -0
- package/dist/FileUploader-CuOHWkiG.js +707 -0
- package/dist/FileUploader-CuOHWkiG.js.map +1 -0
- package/dist/FileUploader-VIOg03pl.cjs +2 -0
- package/dist/FileUploader-VIOg03pl.cjs.map +1 -0
- package/dist/{Flag-CB4YyPj3.cjs → Flag-aOQncoEZ.cjs} +2 -2
- package/dist/{Flag-CB4YyPj3.cjs.map → Flag-aOQncoEZ.cjs.map} +1 -1
- package/dist/{Flag-yA1y5XzR.js → Flag-kpUfmrwC.js} +2 -2
- package/dist/{Flag-yA1y5XzR.js.map → Flag-kpUfmrwC.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-0lskYnpx.cjs → FullscreenToggle-BSwxQEaG.cjs} +2 -2
- package/dist/{FullscreenToggle-0lskYnpx.cjs.map → FullscreenToggle-BSwxQEaG.cjs.map} +1 -1
- package/dist/{FullscreenToggle-jSLruiKt.js → FullscreenToggle-CMifmPD3.js} +3 -3
- package/dist/{FullscreenToggle-jSLruiKt.js.map → FullscreenToggle-CMifmPD3.js.map} +1 -1
- package/dist/IconButton-A2B0bqC-.cjs +2 -0
- package/dist/{IconButton-BN-bZxEi.cjs.map → IconButton-A2B0bqC-.cjs.map} +1 -1
- package/dist/IconButton-Dq17Fekm.js +68 -0
- package/dist/{IconButton-BEGWfcVc.js.map → IconButton-Dq17Fekm.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-CwyoKoWY.js +28 -0
- package/dist/{Loader-BZIa8hwv.js.map → Loader-CwyoKoWY.js.map} +1 -1
- package/dist/Loader-D9nteBXt.cjs +2 -0
- package/dist/{Loader-B5YqzEYy.cjs.map → Loader-D9nteBXt.cjs.map} +1 -1
- package/dist/MobileFrame-8FSsYA_w.js +91 -0
- package/dist/MobileFrame-8FSsYA_w.js.map +1 -0
- package/dist/MobileFrame-Dsfgd_4k.cjs +2 -0
- package/dist/MobileFrame-Dsfgd_4k.cjs.map +1 -0
- package/dist/Modal-CQDcYS-Y.cjs +2 -0
- package/dist/Modal-CQDcYS-Y.cjs.map +1 -0
- package/dist/Modal-cz6JIsZn.js +196 -0
- package/dist/Modal-cz6JIsZn.js.map +1 -0
- package/dist/MultiSelect-BIwE6wb7.cjs +2 -0
- package/dist/MultiSelect-BIwE6wb7.cjs.map +1 -0
- package/dist/MultiSelect-C6l0LpIs.js +219 -0
- package/dist/MultiSelect-C6l0LpIs.js.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-2yM0mmyj.js → NumberField-BpUTV_Qn.js} +5 -5
- package/dist/{NumberField-2yM0mmyj.js.map → NumberField-BpUTV_Qn.js.map} +1 -1
- package/dist/{NumberField-CEt95jcC.cjs → NumberField-IyhO4OpJ.cjs} +2 -2
- package/dist/{NumberField-CEt95jcC.cjs.map → NumberField-IyhO4OpJ.cjs.map} +1 -1
- package/dist/{OtpField-CkliY82J.js → OtpField-BoLxbGtY.js} +4 -4
- package/dist/{OtpField-CkliY82J.js.map → OtpField-BoLxbGtY.js.map} +1 -1
- package/dist/{OtpField-on-K0_fM.cjs → OtpField-HMrxkdiy.cjs} +2 -2
- package/dist/{OtpField-on-K0_fM.cjs.map → OtpField-HMrxkdiy.cjs.map} +1 -1
- package/dist/{PageLayout-DGHu7Vm3.cjs → PageLayout-DtWG-6dn.cjs} +2 -2
- package/dist/{PageLayout-DGHu7Vm3.cjs.map → PageLayout-DtWG-6dn.cjs.map} +1 -1
- package/dist/{PageLayout-DzPh_G6H.js → PageLayout-G8F1WgC-.js} +2 -2
- package/dist/{PageLayout-DzPh_G6H.js.map → PageLayout-G8F1WgC-.js.map} +1 -1
- package/dist/{PageNotFound-CCFfPHgA.js → PageNotFound-CeKIMZ55.js} +9 -9
- package/dist/PageNotFound-CeKIMZ55.js.map +1 -0
- package/dist/PageNotFound-DG8xXPL3.cjs +2 -0
- package/dist/PageNotFound-DG8xXPL3.cjs.map +1 -0
- package/dist/Pagination-Br8P3KwE.cjs +2 -0
- package/dist/{Pagination-BdVebW2L.cjs.map → Pagination-Br8P3KwE.cjs.map} +1 -1
- package/dist/Pagination-CE1uKrR4.js +139 -0
- package/dist/{Pagination-CmskZjcz.js.map → Pagination-CE1uKrR4.js.map} +1 -1
- package/dist/PaletteField-BBPbkDcp.js +54 -0
- package/dist/PaletteField-BBPbkDcp.js.map +1 -0
- package/dist/PaletteField-DwvSn6V6.cjs +2 -0
- package/dist/PaletteField-DwvSn6V6.cjs.map +1 -0
- package/dist/PhoneField-B-L0xAtD.js +372 -0
- package/dist/PhoneField-B-L0xAtD.js.map +1 -0
- package/dist/PhoneField-BclMbl7L.cjs +2 -0
- package/dist/PhoneField-BclMbl7L.cjs.map +1 -0
- package/dist/Popconfirm-BgpvCBy1.js +113 -0
- package/dist/Popconfirm-BgpvCBy1.js.map +1 -0
- package/dist/Popconfirm-DD8F8SXn.cjs +2 -0
- package/dist/Popconfirm-DD8F8SXn.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-L5koRRJp.js +119 -0
- package/dist/Progress-L5koRRJp.js.map +1 -0
- package/dist/Progress-_aZ8XOJr.cjs +2 -0
- package/dist/Progress-_aZ8XOJr.cjs.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-BMH8X69O.cjs +2 -0
- package/dist/QueryError-BMH8X69O.cjs.map +1 -0
- package/dist/QueryError-tBuIQRgv.js +19 -0
- package/dist/QueryError-tBuIQRgv.js.map +1 -0
- package/dist/RadioGroup-BcFBdFhh.cjs +2 -0
- package/dist/{RadioGroup-C8u7eNBS.cjs.map → RadioGroup-BcFBdFhh.cjs.map} +1 -1
- package/dist/RadioGroup-dVx_hMCY.js +141 -0
- package/dist/{RadioGroup-DbodUJW8.js.map → RadioGroup-dVx_hMCY.js.map} +1 -1
- package/dist/RemoveDialog-C9_UzFBf.js +109 -0
- package/dist/RemoveDialog-C9_UzFBf.js.map +1 -0
- package/dist/RemoveDialog-DBKYnTYU.cjs +2 -0
- package/dist/RemoveDialog-DBKYnTYU.cjs.map +1 -0
- package/dist/RichTextEditor-DTz7Qcn_.cjs +2 -0
- package/dist/RichTextEditor-DTz7Qcn_.cjs.map +1 -0
- package/dist/{RichTextEditor-Bm8FFbcR.js → RichTextEditor-fXcbUjTl.js} +13 -13
- package/dist/RichTextEditor-fXcbUjTl.js.map +1 -0
- package/dist/RootLayout-DG2dXhXn.cjs +2 -0
- package/dist/{RootLayout-kssj9exn.cjs.map → RootLayout-DG2dXhXn.cjs.map} +1 -1
- package/dist/RootLayout-p8ArA6wA.js +515 -0
- package/dist/{RootLayout-Cf7Rr9Iz.js.map → RootLayout-p8ArA6wA.js.map} +1 -1
- package/dist/Select-BAR_aVSz.js +199 -0
- package/dist/Select-BAR_aVSz.js.map +1 -0
- package/dist/Select-BuVfUiw-.cjs +2 -0
- package/dist/Select-BuVfUiw-.cjs.map +1 -0
- package/dist/{Sidebar-YH-DoNG9.js → Sidebar-CsWcjSTx.js} +193 -183
- package/dist/Sidebar-CsWcjSTx.js.map +1 -0
- package/dist/Sidebar-NI5HGGYF.cjs +2 -0
- package/dist/Sidebar-NI5HGGYF.cjs.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-Cu1FhxR2.cjs +2 -0
- package/dist/{Slider-dxYVXRev.cjs.map → Slider-Cu1FhxR2.cjs.map} +1 -1
- package/dist/Slider-DoQJWgGU.js +184 -0
- package/dist/{Slider-oGXd5e9X.js.map → Slider-DoQJWgGU.js.map} +1 -1
- package/dist/{SpeedDial-9_Yk8AGx.cjs → SpeedDial-C_rZkHmF.cjs} +2 -2
- package/dist/{SpeedDial-9_Yk8AGx.cjs.map → SpeedDial-C_rZkHmF.cjs.map} +1 -1
- package/dist/{SpeedDial-DWNuC6f8.js → SpeedDial-DF-ILheU.js} +2 -2
- package/dist/{SpeedDial-DWNuC6f8.js.map → SpeedDial-DF-ILheU.js.map} +1 -1
- package/dist/{Stepper-CuqFpamY.js → Stepper-B39Ax_w6.js} +70 -70
- package/dist/{Stepper-CuqFpamY.js.map → Stepper-B39Ax_w6.js.map} +1 -1
- package/dist/Stepper-CT7n113R.cjs +2 -0
- package/dist/{Stepper-B1z_u650.cjs.map → Stepper-CT7n113R.cjs.map} +1 -1
- package/dist/{SwatchPicker-CCJltwHI.cjs → SwatchPicker-BWXqgsEy.cjs} +2 -2
- package/dist/{SwatchPicker-CCJltwHI.cjs.map → SwatchPicker-BWXqgsEy.cjs.map} +1 -1
- package/dist/{SwatchPicker-CqyWngFJ.js → SwatchPicker-Bpxk0IOe.js} +3 -3
- package/dist/{SwatchPicker-CqyWngFJ.js.map → SwatchPicker-Bpxk0IOe.js.map} +1 -1
- package/dist/Switch-DSs2Y0IR.cjs +2 -0
- package/dist/{Switch-DRkZ6kHJ.cjs.map → Switch-DSs2Y0IR.cjs.map} +1 -1
- package/dist/Switch-Jh2Ch8GO.js +85 -0
- package/dist/{Switch-DMPJ0fhB.js.map → Switch-Jh2Ch8GO.js.map} +1 -1
- package/dist/Table-CH_oiEP3.js +1170 -0
- package/dist/Table-CH_oiEP3.js.map +1 -0
- package/dist/Table-DD_uysnY.cjs +2 -0
- package/dist/Table-DD_uysnY.cjs.map +1 -0
- package/dist/Tabs-By86Cmpw.js +190 -0
- package/dist/{Tabs-ytbBzAxG.js.map → Tabs-By86Cmpw.js.map} +1 -1
- package/dist/Tabs-C1N9FgAq.cjs +2 -0
- package/dist/{Tabs-BiKDy_fv.cjs.map → Tabs-C1N9FgAq.cjs.map} +1 -1
- package/dist/{TagsField-CEt_PC5y.js → TagsField-BiOyAadf.js} +5 -5
- package/dist/{TagsField-CEt_PC5y.js.map → TagsField-BiOyAadf.js.map} +1 -1
- package/dist/{TagsField-DpDbf0ru.cjs → TagsField-RX-x45-j.cjs} +2 -2
- package/dist/{TagsField-DpDbf0ru.cjs.map → TagsField-RX-x45-j.cjs.map} +1 -1
- package/dist/{TextField-Df_kGy2l.cjs → TextField-CdbanZuk.cjs} +2 -2
- package/dist/{TextField-Df_kGy2l.cjs.map → TextField-CdbanZuk.cjs.map} +1 -1
- package/dist/{TextField-BWdmF-HE.js → TextField-CkronCRC.js} +5 -5
- package/dist/{TextField-BWdmF-HE.js.map → TextField-CkronCRC.js.map} +1 -1
- package/dist/TextField.module-6gYcR9TL.js +27 -0
- package/dist/TextField.module-6gYcR9TL.js.map +1 -0
- package/dist/TextField.module-DsNCo8vN.cjs +2 -0
- package/dist/TextField.module-DsNCo8vN.cjs.map +1 -0
- package/dist/{ThemeToggle-CgxF6oUu.js → ThemeToggle-BYUEH6be.js} +3 -3
- package/dist/{ThemeToggle-CgxF6oUu.js.map → ThemeToggle-BYUEH6be.js.map} +1 -1
- package/dist/{ThemeToggle-BJdXhmfc.cjs → ThemeToggle-C4QhDd76.cjs} +2 -2
- package/dist/{ThemeToggle-BJdXhmfc.cjs.map → ThemeToggle-C4QhDd76.cjs.map} +1 -1
- package/dist/{TimeColumns-DxVN0V8l.cjs → TimeColumns-Cl0_IRf0.cjs} +2 -2
- package/dist/{TimeColumns-DxVN0V8l.cjs.map → TimeColumns-Cl0_IRf0.cjs.map} +1 -1
- package/dist/{TimeColumns-n-fz50mr.js → TimeColumns-yzjScNU8.js} +3 -3
- package/dist/{TimeColumns-n-fz50mr.js.map → TimeColumns-yzjScNU8.js.map} +1 -1
- package/dist/{TimePicker-DvoemiGz.cjs → TimePicker-CJGVGETl.cjs} +2 -2
- package/dist/{TimePicker-DvoemiGz.cjs.map → TimePicker-CJGVGETl.cjs.map} +1 -1
- package/dist/{TimePicker-Bopxx3zU.js → TimePicker-CoIdMv1S.js} +8 -8
- package/dist/{TimePicker-Bopxx3zU.js.map → TimePicker-CoIdMv1S.js.map} +1 -1
- package/dist/Timeline-CKEosWka.cjs +2 -0
- package/dist/{Timeline-ONU_3gi3.cjs.map → Timeline-CKEosWka.cjs.map} +1 -1
- package/dist/Timeline-ufVXmpMY.js +71 -0
- package/dist/{Timeline-D3kzt1dy.js.map → Timeline-ufVXmpMY.js.map} +1 -1
- package/dist/{Toaster-BxIY2H4V.js → Toaster-Dhz2mYq_.js} +2 -2
- package/dist/{Toaster-BxIY2H4V.js.map → Toaster-Dhz2mYq_.js.map} +1 -1
- package/dist/{Toaster-DZSzFse_.cjs → Toaster-lv5cJhib.cjs} +2 -2
- package/dist/{Toaster-DZSzFse_.cjs.map → Toaster-lv5cJhib.cjs.map} +1 -1
- package/dist/{TranslatedFields-BtDLkQy7.cjs → TranslatedFields-BCJ86Tqp.cjs} +2 -2
- package/dist/{TranslatedFields-BtDLkQy7.cjs.map → TranslatedFields-BCJ86Tqp.cjs.map} +1 -1
- package/dist/{TranslatedFields-DmR8LKSG.js → TranslatedFields-BtNUAyrY.js} +5 -5
- package/dist/{TranslatedFields-DmR8LKSG.js.map → TranslatedFields-BtNUAyrY.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-B-eNyZuT.js +78 -0
- package/dist/UserCard-B-eNyZuT.js.map +1 -0
- package/dist/UserCard-CiQUrZjb.cjs +2 -0
- package/dist/UserCard-CiQUrZjb.cjs.map +1 -0
- package/dist/app/AdminRoot.d.cts +10 -3
- package/dist/app/AdminRoot.d.ts +10 -3
- package/dist/color-CgR8ybWZ.cjs +2 -0
- package/dist/color-CgR8ybWZ.cjs.map +1 -0
- package/dist/color-EQJ2DrcQ.js +24 -0
- package/dist/color-EQJ2DrcQ.js.map +1 -0
- 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/Badge/index.cjs +1 -1
- package/dist/components/Badge/index.js +1 -1
- 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/ColorPicker.d.cts +5 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPickerPanel.d.cts +6 -1
- package/dist/components/ColorPicker/ColorPickerPanel.d.ts +6 -1
- package/dist/components/ColorPicker/colorUtils.d.cts +3 -12
- package/dist/components/ColorPicker/colorUtils.d.ts +3 -12
- package/dist/components/ColorPicker/index.cjs +1 -1
- package/dist/components/ColorPicker/index.js +1 -1
- package/dist/components/ColorRamp/ColorRamp.d.cts +36 -0
- package/dist/components/ColorRamp/ColorRamp.d.ts +36 -0
- package/dist/components/ColorRamp/index.cjs +2 -0
- package/dist/components/ColorRamp/index.cjs.map +1 -0
- package/dist/components/ColorRamp/index.d.cts +3 -0
- package/dist/components/ColorRamp/index.d.ts +3 -0
- package/dist/components/ColorRamp/index.js +6 -0
- package/dist/components/ColorRamp/index.js.map +1 -0
- package/dist/components/CopyButton/index.cjs +1 -1
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DashedButton/index.cjs +1 -1
- package/dist/components/DashedButton/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 +36 -0
- package/dist/components/ErrorState/ErrorState.d.ts +36 -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 +14 -0
- package/dist/components/ErrorState/errorMessage.d.ts +14 -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 +11 -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/MobileFrame/MobileFrame.d.cts +45 -0
- package/dist/components/MobileFrame/MobileFrame.d.ts +45 -0
- package/dist/components/MobileFrame/frames.d.cts +27 -0
- package/dist/components/MobileFrame/frames.d.ts +27 -0
- package/dist/components/MobileFrame/index.cjs +2 -0
- package/dist/components/MobileFrame/index.cjs.map +1 -0
- package/dist/components/MobileFrame/index.d.cts +4 -0
- package/dist/components/MobileFrame/index.d.ts +4 -0
- package/dist/components/MobileFrame/index.js +8 -0
- package/dist/components/MobileFrame/index.js.map +1 -0
- 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/PaletteField.d.cts +30 -0
- package/dist/components/PaletteField/PaletteField.d.ts +30 -0
- package/dist/components/PaletteField/index.cjs +2 -0
- package/dist/components/PaletteField/index.cjs.map +1 -0
- package/dist/components/PaletteField/index.d.cts +2 -0
- package/dist/components/PaletteField/index.d.ts +2 -0
- package/dist/components/PaletteField/index.js +6 -0
- package/dist/components/PaletteField/index.js.map +1 -0
- 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/Timeline/index.cjs +1 -1
- package/dist/components/Timeline/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 +9 -0
- package/dist/components/index.d.ts +9 -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 -146
- package/dist/entries/components.js.map +1 -1
- package/dist/entries/helpers.cjs +1 -1
- package/dist/entries/helpers.d.cts +2 -0
- package/dist/entries/helpers.d.ts +2 -0
- package/dist/entries/helpers.js +18 -8
- package/dist/entries/helpers.js.map +1 -1
- 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/helpers/color.d.cts +17 -0
- package/dist/helpers/color.d.ts +17 -0
- package/dist/helpers/palette.d.cts +68 -0
- package/dist/helpers/palette.d.ts +68 -0
- package/dist/hooks/useOptionalPeer.d.cts +21 -0
- package/dist/hooks/useOptionalPeer.d.ts +21 -0
- package/dist/i18n/messages.d.cts +24 -0
- package/dist/i18n/messages.d.ts +24 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +16 -12
- package/dist/index.js +224 -189
- package/dist/index.js.map +1 -1
- package/dist/{messages-ogohLC5P.js → messages-BF2ft7yD.js} +201 -33
- package/dist/messages-BF2ft7yD.js.map +1 -0
- package/dist/messages-ihnE1jVG.cjs +36 -0
- package/dist/messages-ihnE1jVG.cjs.map +1 -0
- package/dist/palette-B031dM4E.js +70 -0
- package/dist/palette-B031dM4E.js.map +1 -0
- package/dist/palette-BycMHbED.cjs +2 -0
- package/dist/palette-BycMHbED.cjs.map +1 -0
- package/dist/theme/ConfigProvider.d.cts +8 -8
- package/dist/theme/ConfigProvider.d.ts +8 -8
- package/dist/useOptionMenu-C0xSaZ4t.cjs +2 -0
- package/dist/useOptionMenu-C0xSaZ4t.cjs.map +1 -0
- package/dist/useOptionMenu-Cq_eHdab.js +286 -0
- package/dist/useOptionMenu-Cq_eHdab.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 +6 -1
- package/dist/AdminRoot-BkPPRkyQ.cjs +0 -2
- package/dist/AdminRoot-BkPPRkyQ.cjs.map +0 -1
- package/dist/AdminRoot-CgvtgUpW.js +0 -50
- package/dist/AdminRoot-CgvtgUpW.js.map +0 -1
- package/dist/Avatar-Dgf04PBC.cjs +0 -2
- package/dist/Avatar-Dgf04PBC.cjs.map +0 -1
- package/dist/Avatar-Q50J8wdN.js +0 -60
- package/dist/Avatar-Q50J8wdN.js.map +0 -1
- package/dist/Badge-BQpr2Jee.cjs +0 -2
- package/dist/Badge-DSWigoGC.js +0 -50
- package/dist/Button-CXmDOzPk.cjs +0 -2
- package/dist/Button-DBs8xnA5.js +0 -72
- package/dist/Card-DGF22HbS.cjs +0 -2
- package/dist/Card-DGF22HbS.cjs.map +0 -1
- package/dist/Card-DYKnWt-L.js +0 -118
- package/dist/Card-DYKnWt-L.js.map +0 -1
- package/dist/Checkbox-ZYOSBYRt.js +0 -98
- package/dist/Checkbox-fzJCwe0j.cjs +0 -2
- package/dist/Chip-gUH_7nQc.cjs +0 -2
- package/dist/ChoiceCardGroup-DBohUnRj.js +0 -181
- package/dist/ChoiceCardGroup-d0VVTUi5.cjs +0 -2
- package/dist/ColorPicker-DtzFwNWk.cjs +0 -2
- package/dist/ColorPicker-DtzFwNWk.cjs.map +0 -1
- package/dist/ColorPicker-Dw6Qk0iy.js.map +0 -1
- package/dist/ColorPickerPanel--wBX-m7J.cjs +0 -2
- package/dist/ColorPickerPanel--wBX-m7J.cjs.map +0 -1
- package/dist/ColorPickerPanel-Dp7bnnVf.js +0 -336
- package/dist/ColorPickerPanel-Dp7bnnVf.js.map +0 -1
- package/dist/ConfigProvider-Bszl3Wr3.cjs.map +0 -1
- package/dist/ConfigProvider-DR9YMy9U.js.map +0 -1
- package/dist/CopyButton-Ct-8AmmX.cjs +0 -2
- package/dist/CopyButton-DJ1PSJZU.js +0 -31
- package/dist/DashedButton-3C4IZuo4.cjs +0 -2
- package/dist/DashedButton-BXZAyMtw.js +0 -59
- package/dist/DatePicker.module-BZDftL4g.js +0 -138
- package/dist/DatePicker.module-tE-tGNBd.cjs +0 -2
- package/dist/EmptyState-BTd7aVgu.js +0 -38
- package/dist/EmptyState-BTd7aVgu.js.map +0 -1
- package/dist/EmptyState-Bv4XXnD1.cjs +0 -2
- package/dist/EmptyState-Bv4XXnD1.cjs.map +0 -1
- package/dist/FileCard-DW5Ur8Aj.cjs +0 -2
- package/dist/FileCard-DW5Ur8Aj.cjs.map +0 -1
- package/dist/FileCard-DY8N9Lzz.js +0 -148
- package/dist/FileCard-DY8N9Lzz.js.map +0 -1
- package/dist/FileUploader-B7VfhcR7.cjs +0 -2
- package/dist/FileUploader-B7VfhcR7.cjs.map +0 -1
- package/dist/FileUploader-BYF5FvUc.js +0 -684
- package/dist/FileUploader-BYF5FvUc.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/IconButton-BEGWfcVc.js +0 -68
- package/dist/IconButton-BN-bZxEi.cjs +0 -2
- 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/Loader-B5YqzEYy.cjs +0 -2
- package/dist/Loader-BZIa8hwv.js +0 -29
- package/dist/Modal-0V-REVV-.cjs +0 -2
- package/dist/Modal-0V-REVV-.cjs.map +0 -1
- package/dist/Modal-B7yoFC3o.js +0 -195
- package/dist/Modal-B7yoFC3o.js.map +0 -1
- package/dist/MultiSelect-C8xuXaoR.js +0 -350
- package/dist/MultiSelect-C8xuXaoR.js.map +0 -1
- package/dist/MultiSelect-gj9Ymeh2.cjs +0 -2
- package/dist/MultiSelect-gj9Ymeh2.cjs.map +0 -1
- package/dist/PageNotFound-B8_eIT8p.cjs +0 -2
- package/dist/PageNotFound-B8_eIT8p.cjs.map +0 -1
- package/dist/PageNotFound-CCFfPHgA.js.map +0 -1
- package/dist/Pagination-BdVebW2L.cjs +0 -2
- package/dist/Pagination-CmskZjcz.js +0 -139
- 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-C8u7eNBS.cjs +0 -2
- package/dist/RadioGroup-DbodUJW8.js +0 -141
- package/dist/RemoveDialog-CV75B0aN.js +0 -47
- package/dist/RemoveDialog-CV75B0aN.js.map +0 -1
- package/dist/RemoveDialog-DmOk0ezc.cjs +0 -2
- package/dist/RemoveDialog-DmOk0ezc.cjs.map +0 -1
- package/dist/RichTextEditor-Bm8FFbcR.js.map +0 -1
- package/dist/RichTextEditor-uXddgtlk.cjs +0 -2
- package/dist/RichTextEditor-uXddgtlk.cjs.map +0 -1
- package/dist/RootLayout-Cf7Rr9Iz.js +0 -515
- package/dist/RootLayout-kssj9exn.cjs +0 -2
- package/dist/Select-7vEGJCvA.cjs +0 -2
- package/dist/Select-7vEGJCvA.cjs.map +0 -1
- package/dist/Select-CdX3Ks7y.js +0 -338
- package/dist/Select-CdX3Ks7y.js.map +0 -1
- package/dist/Sidebar-DcKIEfhy.cjs +0 -2
- package/dist/Sidebar-DcKIEfhy.cjs.map +0 -1
- package/dist/Sidebar-YH-DoNG9.js.map +0 -1
- package/dist/Slider-dxYVXRev.cjs +0 -2
- package/dist/Slider-oGXd5e9X.js +0 -184
- package/dist/Stepper-B1z_u650.cjs +0 -2
- package/dist/Switch-DMPJ0fhB.js +0 -85
- package/dist/Switch-DRkZ6kHJ.cjs +0 -2
- package/dist/Table-BPit83Pn.cjs +0 -2
- package/dist/Table-BPit83Pn.cjs.map +0 -1
- package/dist/Table-Drdhfm99.js +0 -1090
- package/dist/Table-Drdhfm99.js.map +0 -1
- package/dist/Tabs-BiKDy_fv.cjs +0 -2
- package/dist/Tabs-ytbBzAxG.js +0 -190
- package/dist/TextField.module-QePvGeJ3.js +0 -27
- package/dist/TextField.module-QePvGeJ3.js.map +0 -1
- package/dist/TextField.module-m-UllwzG.cjs +0 -2
- package/dist/TextField.module-m-UllwzG.cjs.map +0 -1
- package/dist/Timeline-D3kzt1dy.js +0 -71
- package/dist/Timeline-ONU_3gi3.cjs +0 -2
- 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-C1yFvVIc.cjs +0 -2
- package/dist/UserCard-C1yFvVIc.cjs.map +0 -1
- package/dist/UserCard-J8Bpbh3x.js +0 -74
- package/dist/UserCard-J8Bpbh3x.js.map +0 -1
- package/dist/messages-DKT0SRM0.cjs +0 -36
- package/dist/messages-DKT0SRM0.cjs.map +0 -1
- package/dist/messages-ogohLC5P.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-
|
|
1
|
+
{"version":3,"file":"Loader-D9nteBXt.cjs","sources":["../src/components/Loader/Loader.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport styles from './Loader.module.css'\n\nexport type LoaderSize = 'sm' | 'md' | 'lg'\n\nexport interface LoaderProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {\n /** Preset size — matches the Icon sizes: `sm` 14px · `md` 18px · `lg` 22px. Defaults to `md`. */\n size?: LoaderSize\n /** Theme palette token used to color the spinner. Omit to inherit the surrounding text color (`currentColor`). */\n color?: ThemeColor\n}\n\n/**\n * A circular spinner. Works standalone as a loading indicator or inside a\n * `Button`, where it inherits the button color via `currentColor` unless an\n * explicit `color` is given.\n */\nexport const Loader = forwardRef<HTMLSpanElement, LoaderProps>(function Loader(\n { size = 'md', color, className, style, ...props },\n ref,\n) {\n const t = useT()\n return (\n <span\n ref={ref}\n role=\"status\"\n aria-label={t('loader.label')}\n {...props}\n className={clsx(styles.loader, styles[size], className)}\n style={color ? ({ color: `var(--tz-color-${color})`, ...style } as CSSProperties) : style}\n />\n )\n})\n"],"names":["Loader","forwardRef","size","color","className","style","props","ref","t","useT","jsx","clsx","styles"],"mappings":"gRAmBaA,EAASC,EAAAA,WAAyC,SAC7D,CAAE,KAAAC,EAAO,KAAM,MAAAC,EAAO,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAA,EAC3CC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EACV,OACEC,EAAAA,IAAC,OAAA,CACC,IAAAH,EACA,KAAK,SACL,aAAYC,EAAE,cAAc,EAC3B,GAAGF,EACJ,UAAWK,EAAAA,KAAKC,EAAO,OAAQA,EAAOV,CAAI,EAAGE,CAAS,EACtD,MAAOD,EAAS,CAAE,MAAO,kBAAkBA,CAAK,IAAK,GAAGE,GAA4BA,CAAA,CAAA,CAG1F,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as M, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useRef as x, useCallback as _, useLayoutEffect as P } from "react";
|
|
3
|
+
import { clsx as G } from "clsx";
|
|
4
|
+
const B = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='72.5mm'%20height='150mm'%20viewBox='0%200%2072.499999%20150'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%3e%3cmask%20id='screenCutout'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72.5'%20height='150'%3e%3crect%20x='0'%20y='0'%20width='72.5'%20height='150'%20fill='%23fff'/%3e%3cpath%20d='m%2013.312882,2.4648914%20c%20-5.8047685,0%20-10.4003983,4.5956227%20-10.4003983,10.4003996%20V%20137.13471%20c%200,5.80477%204.5956298,10.4004%2010.4003983,10.4004%20h%2045.87472%20c%205.80478,0%2010.400398,-4.59563%2010.400398,-10.4004%20V%2012.865291%20C%2069.588,7.0605141%2064.992382,2.4648914%2059.187602,2.4648914%20Z'%20fill='%23000'/%3e%3cpath%20d='M%2028.818913,4.80325%20h%2014.862142%20c%201.66928,0%203.013252,1.343978%203.013252,3.0132527%200,1.6692748%20-1.343972,3.0132533%20-3.013252,3.0132533%20H%2028.818913%20c%20-1.66927,0%20-3.012736,-1.3439785%20-3.012736,-3.0132533%200,-1.6692747%201.343466,-3.0132527%203.012736,-3.0132527%20z'%20fill='%23fff'/%3e%3c/mask%3e%3clinearGradient%20id='linearGradient31'%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.02;'%20offset='0'%20id='stop31'%20/%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.1;'%20offset='1'%20id='stop32'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient25'%3e%3cstop%20style='stop-color:%23b697ff;stop-opacity:1;'%20offset='0'%20id='stop26'%20/%3e%3cstop%20style='stop-color:%233600ae;stop-opacity:1;'%20offset='0.56404012'%20id='stop28'%20/%3e%3cstop%20style='stop-color:%23000000;stop-opacity:0;'%20offset='1'%20id='stop27'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient24'%3e%3cstop%20style='stop-color:%2339394e;stop-opacity:1;'%20offset='0'%20id='stop24'%20/%3e%3cstop%20style='stop-color:%231e1e21;stop-opacity:1;'%20offset='1'%20id='stop25'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient12'%3e%3cstop%20style='stop-color:%23686171;stop-opacity:1;'%20offset='0'%20id='stop13'%20/%3e%3cstop%20style='stop-color:%23575360;stop-opacity:1;'%20offset='1'%20id='stop14'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient9'%3e%3cstop%20style='stop-color:%23867e90;stop-opacity:1;'%20offset='0'%20id='stop9'%20/%3e%3cstop%20style='stop-color:%23c5c4d1;stop-opacity:1;'%20offset='0.17473139'%20id='stop12'%20/%3e%3cstop%20style='stop-color:%238d8698;stop-opacity:1'%20offset='0.64714581'%20id='stop11'%20/%3e%3cstop%20style='stop-color:%237a7184;stop-opacity:1;'%20offset='1'%20id='stop10'%20/%3e%3c/linearGradient%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath1'%3e%3crect%20style='fill:%239320d4;stroke-width:2.90343;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect2'%20width='207.90259'%20height='430.15308'%20x='66.161987'%20y='-144.36761'%20/%3e%3c/clipPath%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient10'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.528318,-10.430529)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient14'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.41007042,-0.16084956)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient15'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient16'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient17'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient18'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient19'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient20'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient24'%20id='radialGradient25'%20cx='43.681053'%20cy='7.4308386'%20fx='43.681053'%20fy='7.4308386'%20r='0.92431802'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1.3383789e-6)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-5.200404,-14.350692)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27-6'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-93.631878,-14.350692)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient31'%20id='linearGradient32'%20x1='36.25'%20y1='0.97257996'%20x2='36.25'%20y2='1.5374033'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(0,0.00403118)'%20/%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter32'%20x='-0.006718275'%20y='-0.0031835449'%20width='1.0134365'%20height='1.0063671'%3e%3cfeGaussianBlur%20stdDeviation='0.19764468'%20id='feGaussianBlur32'%20/%3e%3c/filter%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter33'%20x='-0.0091814284'%20y='-0.0043248752'%20width='1.0183629'%20height='1.0086498'%3e%3cfeGaussianBlur%20stdDeviation='0.26705965'%20id='feGaussianBlur33'%20/%3e%3c/filter%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath34'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect35'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='layer2'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g14'%3e%3crect%20style='fill:url(%23linearGradient14);fill-opacity:1;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6'%20width='7.6419992'%20height='6.9724154'%20x='-6.8847655e-10'%20y='30.692017'%20ry='0.30878335'%20/%3e%3crect%20style='fill:url(%23linearGradient10);fill-opacity:1;stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6-2'%20width='7.230288'%20height='6.7202911'%20x='0.061756074'%20y='30.818081'%20ry='0.29761767'%20/%3e%3c/g%3e%3cg%20id='g17'%20transform='translate(-0.24638151)'%3e%3cpath%20id='rect6-27'%20style='fill:url(%23linearGradient15);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9'%20style='fill:url(%23linearGradient16);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-8'%20transform='matrix(-1,0,0,1,72.745556,3.8223925)'%3e%3cpath%20id='rect6-27-6'%20style='fill:url(%23linearGradient19);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2017.177374%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-5'%20style='fill:url(%23linearGradient20);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2016.947582%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-1'%20transform='translate(-0.24638151,14.230005)'%3e%3cpath%20id='rect6-27-3'%20style='fill:url(%23linearGradient17);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-8'%20style='fill:url(%23linearGradient18);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer9'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect32'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/g%3e%3cg%20id='layer7'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g34'%20clip-path='url(%23clipPath34)'%3e%3cpath%20id='rect32-7'%20style='display:inline;mix-blend-mode:normal;fill:%239486a7;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter32)'%20d='m%2013.312381,0.50015231%20c%20-6.8593976,0%20-12.3651366,5.50573999%20-12.3651366,12.36513969%20V%20137.13471%20c%200,6.85939%205.505739,12.36514%2012.3651366,12.36514%20h%2045.875234%20c%206.8594,0%2012.36514,-5.50575%2012.36514,-12.36514%20V%2012.865292%20c%200,-6.8593997%20-5.50574,-12.36513969%20-12.36514,-12.36513969%20z'%20/%3e%3cpath%20id='rect32-4'%20style='display:inline;mix-blend-mode:normal;fill:%23f1eef4;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter33)'%20d='m%2013.312383,0.90038112%20c%20-6.6447174,0%20-11.9667114,5.32043998%20-11.9667114,11.96515988%20V%20137.13495%20c%200,6.64471%205.321994,11.96466%2011.9667114,11.96466%20h%2045.875234%20c%206.64472,0%2011.96671,-5.31995%2011.96671,-11.96466%20V%2012.865541%20c%200,-6.6447199%20-5.32199,-11.96515988%20-11.96671,-11.96515988%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer8'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect34'%20style='fill:%23e7e3ec;fill-opacity:1;stroke:none;stroke-width:13.7539;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.465686;paint-order:stroke%20fill%20markers'%20d='M%2056.059111,0%20V%2015.527734%20H%200.44648437%20v%201.055233%20H%2072.053483%20V%2015.527734%20H%2057.114343%20V%200%20Z%20M%200.44648437,133.41718%20v%201.05523%20H%2015.385624%20v%2015.52774%20h%201.055233%20v%20-15.52774%20h%2055.612626%20v%20-1.05523%20z'%20/%3e%3c/g%3e%3cg%20id='layer6'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect32-73'%20style='display:inline;fill:%23000000;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2013.312378,0.97661114%20c%20-6.603655,0%20-11.888676,5.28502136%20-11.888676,11.88868086%20V%20137.13471%20c%200,6.60365%205.285021,11.88868%2011.888676,11.88868%20h%2045.87524%20c%206.60366,0%2011.88868,-5.28503%2011.88868,-11.88868%20V%2012.865292%20c%200,-6.6036595%20-5.28502,-11.88868086%20-11.88868,-11.88868086%20z'%20/%3e%3cpath%20id='path31'%20style='fill:url(%23linearGradient32);stroke:none;stroke-width:1.784;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2029.068268,0.97661114%20c%200.09826,0%200.286648,0.56482346%200.400492,0.56482346%20h%2013.56248%20c%200.113844,0%200.302237,-0.56482346%200.400492,-0.56482346%20z'%20/%3e%3c/g%3e%3cg%20id='layer5'%20style='display:inline'%3e%3cpath%20id='path21'%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.184059;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2043.681055,5.0436198%20a%202.7730749,2.7730756%200%200%200%20-2.772958,2.7729573%202.7730749,2.7730756%200%200%200%202.772958,2.7729579%202.7730749,2.7730756%200%200%200%202.772957,-2.7729579%202.7730749,2.7730756%200%200%200%20-2.772957,-2.7729573%20z%20m%200,1.0407633%20a%201.7323073,1.7323078%200%200%201%201.732194,1.732194%201.7323073,1.7323078%200%200%201%20-1.732194,1.7321941%201.7323073,1.7323078%200%200%201%20-1.732194,-1.7321941%201.7323073,1.7323078%200%200%201%201.732194,-1.732194%20z'%20/%3e%3cpath%20id='path21-0'%20style='fill:%23050505;fill-opacity:1;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke%20fill%20markers'%20d='m%20-28.818913,5.0436198%20a%202.7730749,2.7730756%200%200%201%202.772958,2.7729573%202.7730749,2.7730756%200%200%201%20-2.772958,2.7729579%20h%20-7.292578%20a%202.7730749,2.7730756%200%200%201%20-2.772957,-2.7729579%202.7730749,2.7730756%200%200%201%202.772957,-2.7729573%20z%20m%205.17e-4,0.8919352%20h%20-7.293095%20c%20-1.049389,4.46e-5%20-1.880461,0.8316326%20-1.880505,1.8810221%204.4e-5,1.0493897%200.831116,1.8804608%201.880505,1.8805054%20h%207.293095%20c%201.049389,-4.42e-5%201.880977,-0.8311154%201.881022,-1.8805054%20-4.5e-5,-1.0493897%20-0.831633,-1.8809779%20-1.881022,-1.8810221%20z'%20transform='scale(-1,1)'%20/%3e%3ccircle%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.241269;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path22'%20cx='43.681053'%20cy='7.8165774'%20r='1.5452632'%20/%3e%3ccircle%20style='fill:url(%23radialGradient25);fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path23'%20cx='43.681053'%20cy='7.8165774'%20r='0.92431802'%20/%3e%3ccircle%20style='fill:%23000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-4'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27-6);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-42'%20cx='-44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='matrix(-0.96592583,-0.25881905,-0.25881905,0.96592583,0,0)'%20/%3e%3c/g%3e%3c/svg%3e", R = {
|
|
5
|
+
src: B,
|
|
6
|
+
viewBox: { width: 72.5, height: 150 },
|
|
7
|
+
aperture: { x: 2.9125, y: 2.4649, width: 66.6755, height: 145.0702, radius: 10.2004 },
|
|
8
|
+
label: "iPhone"
|
|
9
|
+
}, $ = "_device_6tm0e_6", C = "_screen_6tm0e_19", F = "_hideScrollbars_6tm0e_35", N = "_frame_6tm0e_43", d = {
|
|
10
|
+
device: $,
|
|
11
|
+
screen: C,
|
|
12
|
+
hideScrollbars: F,
|
|
13
|
+
frame: N
|
|
14
|
+
}, E = (f, i) => f * i.viewBox.width / i.aperture.width, A = T(function({
|
|
15
|
+
children: i,
|
|
16
|
+
screenWidth: n = 440,
|
|
17
|
+
frame: o = R,
|
|
18
|
+
screenBackground: w = "var(--tz-color-surface)",
|
|
19
|
+
alt: v,
|
|
20
|
+
screenClassName: U,
|
|
21
|
+
screenStyle: j,
|
|
22
|
+
onScaleChange: k,
|
|
23
|
+
hideScrollbars: b = !0,
|
|
24
|
+
className: z,
|
|
25
|
+
style: H,
|
|
26
|
+
...O
|
|
27
|
+
}, t) {
|
|
28
|
+
const y = x(null), S = _(
|
|
29
|
+
(e) => {
|
|
30
|
+
y.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
31
|
+
},
|
|
32
|
+
[t]
|
|
33
|
+
), { viewBox: a, aperture: r } = o, p = E(n, o), V = {
|
|
34
|
+
"--mf-aspect": `${a.width} / ${a.height}`,
|
|
35
|
+
"--mf-max-width": `${p}px`,
|
|
36
|
+
"--mf-screen-left": `${r.x / a.width * 100}%`,
|
|
37
|
+
"--mf-screen-top": `${r.y / a.height * 100}%`,
|
|
38
|
+
"--mf-screen-width": `${n}px`,
|
|
39
|
+
"--mf-screen-height": `${n * r.height / r.width}px`,
|
|
40
|
+
"--mf-screen-radius": `${n * r.radius / r.width}px`,
|
|
41
|
+
"--mf-screen-bg": w
|
|
42
|
+
}, s = x(k);
|
|
43
|
+
return s.current = k, P(() => {
|
|
44
|
+
const e = y.current;
|
|
45
|
+
if (!e || typeof ResizeObserver > "u") return;
|
|
46
|
+
const h = (l) => {
|
|
47
|
+
var m;
|
|
48
|
+
if (!(l > 0)) return;
|
|
49
|
+
const c = l / p;
|
|
50
|
+
e.style.setProperty("--mf-scale", String(c)), (m = s.current) == null || m.call(s, c);
|
|
51
|
+
};
|
|
52
|
+
h(e.getBoundingClientRect().width);
|
|
53
|
+
const u = new ResizeObserver((l) => {
|
|
54
|
+
for (const c of l) h(c.contentRect.width);
|
|
55
|
+
});
|
|
56
|
+
return u.observe(e), () => u.disconnect();
|
|
57
|
+
}, [p]), /* @__PURE__ */ M(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
ref: S,
|
|
61
|
+
className: G(d.device, z),
|
|
62
|
+
style: { ...V, ...H },
|
|
63
|
+
...O,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ g(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: G(d.screen, b && d.hideScrollbars, U),
|
|
69
|
+
style: j,
|
|
70
|
+
children: i
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ g(
|
|
74
|
+
"img",
|
|
75
|
+
{
|
|
76
|
+
className: d.frame,
|
|
77
|
+
src: o.src,
|
|
78
|
+
alt: v ?? `${o.label} preview`,
|
|
79
|
+
draggable: !1
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
R as I,
|
|
88
|
+
A as M,
|
|
89
|
+
E as f
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=MobileFrame-8FSsYA_w.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileFrame-8FSsYA_w.js","sources":["../src/components/MobileFrame/assets/iphone.svg","../src/components/MobileFrame/frames.ts","../src/components/MobileFrame/MobileFrame.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='72.5mm'%20height='150mm'%20viewBox='0%200%2072.499999%20150'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%3e%3cmask%20id='screenCutout'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72.5'%20height='150'%3e%3crect%20x='0'%20y='0'%20width='72.5'%20height='150'%20fill='%23fff'/%3e%3cpath%20d='m%2013.312882,2.4648914%20c%20-5.8047685,0%20-10.4003983,4.5956227%20-10.4003983,10.4003996%20V%20137.13471%20c%200,5.80477%204.5956298,10.4004%2010.4003983,10.4004%20h%2045.87472%20c%205.80478,0%2010.400398,-4.59563%2010.400398,-10.4004%20V%2012.865291%20C%2069.588,7.0605141%2064.992382,2.4648914%2059.187602,2.4648914%20Z'%20fill='%23000'/%3e%3cpath%20d='M%2028.818913,4.80325%20h%2014.862142%20c%201.66928,0%203.013252,1.343978%203.013252,3.0132527%200,1.6692748%20-1.343972,3.0132533%20-3.013252,3.0132533%20H%2028.818913%20c%20-1.66927,0%20-3.012736,-1.3439785%20-3.012736,-3.0132533%200,-1.6692747%201.343466,-3.0132527%203.012736,-3.0132527%20z'%20fill='%23fff'/%3e%3c/mask%3e%3clinearGradient%20id='linearGradient31'%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.02;'%20offset='0'%20id='stop31'%20/%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.1;'%20offset='1'%20id='stop32'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient25'%3e%3cstop%20style='stop-color:%23b697ff;stop-opacity:1;'%20offset='0'%20id='stop26'%20/%3e%3cstop%20style='stop-color:%233600ae;stop-opacity:1;'%20offset='0.56404012'%20id='stop28'%20/%3e%3cstop%20style='stop-color:%23000000;stop-opacity:0;'%20offset='1'%20id='stop27'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient24'%3e%3cstop%20style='stop-color:%2339394e;stop-opacity:1;'%20offset='0'%20id='stop24'%20/%3e%3cstop%20style='stop-color:%231e1e21;stop-opacity:1;'%20offset='1'%20id='stop25'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient12'%3e%3cstop%20style='stop-color:%23686171;stop-opacity:1;'%20offset='0'%20id='stop13'%20/%3e%3cstop%20style='stop-color:%23575360;stop-opacity:1;'%20offset='1'%20id='stop14'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient9'%3e%3cstop%20style='stop-color:%23867e90;stop-opacity:1;'%20offset='0'%20id='stop9'%20/%3e%3cstop%20style='stop-color:%23c5c4d1;stop-opacity:1;'%20offset='0.17473139'%20id='stop12'%20/%3e%3cstop%20style='stop-color:%238d8698;stop-opacity:1'%20offset='0.64714581'%20id='stop11'%20/%3e%3cstop%20style='stop-color:%237a7184;stop-opacity:1;'%20offset='1'%20id='stop10'%20/%3e%3c/linearGradient%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath1'%3e%3crect%20style='fill:%239320d4;stroke-width:2.90343;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect2'%20width='207.90259'%20height='430.15308'%20x='66.161987'%20y='-144.36761'%20/%3e%3c/clipPath%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient10'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.528318,-10.430529)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient14'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.41007042,-0.16084956)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient15'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient16'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient17'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient18'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient19'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient20'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient24'%20id='radialGradient25'%20cx='43.681053'%20cy='7.4308386'%20fx='43.681053'%20fy='7.4308386'%20r='0.92431802'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1.3383789e-6)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-5.200404,-14.350692)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27-6'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-93.631878,-14.350692)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient31'%20id='linearGradient32'%20x1='36.25'%20y1='0.97257996'%20x2='36.25'%20y2='1.5374033'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(0,0.00403118)'%20/%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter32'%20x='-0.006718275'%20y='-0.0031835449'%20width='1.0134365'%20height='1.0063671'%3e%3cfeGaussianBlur%20stdDeviation='0.19764468'%20id='feGaussianBlur32'%20/%3e%3c/filter%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter33'%20x='-0.0091814284'%20y='-0.0043248752'%20width='1.0183629'%20height='1.0086498'%3e%3cfeGaussianBlur%20stdDeviation='0.26705965'%20id='feGaussianBlur33'%20/%3e%3c/filter%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath34'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect35'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='layer2'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g14'%3e%3crect%20style='fill:url(%23linearGradient14);fill-opacity:1;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6'%20width='7.6419992'%20height='6.9724154'%20x='-6.8847655e-10'%20y='30.692017'%20ry='0.30878335'%20/%3e%3crect%20style='fill:url(%23linearGradient10);fill-opacity:1;stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6-2'%20width='7.230288'%20height='6.7202911'%20x='0.061756074'%20y='30.818081'%20ry='0.29761767'%20/%3e%3c/g%3e%3cg%20id='g17'%20transform='translate(-0.24638151)'%3e%3cpath%20id='rect6-27'%20style='fill:url(%23linearGradient15);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9'%20style='fill:url(%23linearGradient16);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-8'%20transform='matrix(-1,0,0,1,72.745556,3.8223925)'%3e%3cpath%20id='rect6-27-6'%20style='fill:url(%23linearGradient19);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2017.177374%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-5'%20style='fill:url(%23linearGradient20);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2016.947582%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-1'%20transform='translate(-0.24638151,14.230005)'%3e%3cpath%20id='rect6-27-3'%20style='fill:url(%23linearGradient17);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-8'%20style='fill:url(%23linearGradient18);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer9'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect32'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/g%3e%3cg%20id='layer7'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g34'%20clip-path='url(%23clipPath34)'%3e%3cpath%20id='rect32-7'%20style='display:inline;mix-blend-mode:normal;fill:%239486a7;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter32)'%20d='m%2013.312381,0.50015231%20c%20-6.8593976,0%20-12.3651366,5.50573999%20-12.3651366,12.36513969%20V%20137.13471%20c%200,6.85939%205.505739,12.36514%2012.3651366,12.36514%20h%2045.875234%20c%206.8594,0%2012.36514,-5.50575%2012.36514,-12.36514%20V%2012.865292%20c%200,-6.8593997%20-5.50574,-12.36513969%20-12.36514,-12.36513969%20z'%20/%3e%3cpath%20id='rect32-4'%20style='display:inline;mix-blend-mode:normal;fill:%23f1eef4;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter33)'%20d='m%2013.312383,0.90038112%20c%20-6.6447174,0%20-11.9667114,5.32043998%20-11.9667114,11.96515988%20V%20137.13495%20c%200,6.64471%205.321994,11.96466%2011.9667114,11.96466%20h%2045.875234%20c%206.64472,0%2011.96671,-5.31995%2011.96671,-11.96466%20V%2012.865541%20c%200,-6.6447199%20-5.32199,-11.96515988%20-11.96671,-11.96515988%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer8'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect34'%20style='fill:%23e7e3ec;fill-opacity:1;stroke:none;stroke-width:13.7539;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.465686;paint-order:stroke%20fill%20markers'%20d='M%2056.059111,0%20V%2015.527734%20H%200.44648437%20v%201.055233%20H%2072.053483%20V%2015.527734%20H%2057.114343%20V%200%20Z%20M%200.44648437,133.41718%20v%201.05523%20H%2015.385624%20v%2015.52774%20h%201.055233%20v%20-15.52774%20h%2055.612626%20v%20-1.05523%20z'%20/%3e%3c/g%3e%3cg%20id='layer6'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect32-73'%20style='display:inline;fill:%23000000;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2013.312378,0.97661114%20c%20-6.603655,0%20-11.888676,5.28502136%20-11.888676,11.88868086%20V%20137.13471%20c%200,6.60365%205.285021,11.88868%2011.888676,11.88868%20h%2045.87524%20c%206.60366,0%2011.88868,-5.28503%2011.88868,-11.88868%20V%2012.865292%20c%200,-6.6036595%20-5.28502,-11.88868086%20-11.88868,-11.88868086%20z'%20/%3e%3cpath%20id='path31'%20style='fill:url(%23linearGradient32);stroke:none;stroke-width:1.784;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2029.068268,0.97661114%20c%200.09826,0%200.286648,0.56482346%200.400492,0.56482346%20h%2013.56248%20c%200.113844,0%200.302237,-0.56482346%200.400492,-0.56482346%20z'%20/%3e%3c/g%3e%3cg%20id='layer5'%20style='display:inline'%3e%3cpath%20id='path21'%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.184059;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2043.681055,5.0436198%20a%202.7730749,2.7730756%200%200%200%20-2.772958,2.7729573%202.7730749,2.7730756%200%200%200%202.772958,2.7729579%202.7730749,2.7730756%200%200%200%202.772957,-2.7729579%202.7730749,2.7730756%200%200%200%20-2.772957,-2.7729573%20z%20m%200,1.0407633%20a%201.7323073,1.7323078%200%200%201%201.732194,1.732194%201.7323073,1.7323078%200%200%201%20-1.732194,1.7321941%201.7323073,1.7323078%200%200%201%20-1.732194,-1.7321941%201.7323073,1.7323078%200%200%201%201.732194,-1.732194%20z'%20/%3e%3cpath%20id='path21-0'%20style='fill:%23050505;fill-opacity:1;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke%20fill%20markers'%20d='m%20-28.818913,5.0436198%20a%202.7730749,2.7730756%200%200%201%202.772958,2.7729573%202.7730749,2.7730756%200%200%201%20-2.772958,2.7729579%20h%20-7.292578%20a%202.7730749,2.7730756%200%200%201%20-2.772957,-2.7729579%202.7730749,2.7730756%200%200%201%202.772957,-2.7729573%20z%20m%205.17e-4,0.8919352%20h%20-7.293095%20c%20-1.049389,4.46e-5%20-1.880461,0.8316326%20-1.880505,1.8810221%204.4e-5,1.0493897%200.831116,1.8804608%201.880505,1.8805054%20h%207.293095%20c%201.049389,-4.42e-5%201.880977,-0.8311154%201.881022,-1.8805054%20-4.5e-5,-1.0493897%20-0.831633,-1.8809779%20-1.881022,-1.8810221%20z'%20transform='scale(-1,1)'%20/%3e%3ccircle%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.241269;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path22'%20cx='43.681053'%20cy='7.8165774'%20r='1.5452632'%20/%3e%3ccircle%20style='fill:url(%23radialGradient25);fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path23'%20cx='43.681053'%20cy='7.8165774'%20r='0.92431802'%20/%3e%3ccircle%20style='fill:%23000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-4'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27-6);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-42'%20cx='-44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='matrix(-0.96592583,-0.25881905,-0.25881905,0.96592583,0,0)'%20/%3e%3c/g%3e%3c/svg%3e\"","import iphone from './assets/iphone.svg'\n\n/** A phone frame: the artwork plus the exact screen aperture cut into it, in the artwork's own units. */\nexport interface MobileFrameSpec {\n /** The frame artwork, rendered as `<img>` (never inlined — see the component doc). */\n src: string\n /** viewBox size of the artwork. */\n viewBox: { width: number; height: number }\n /** The screen aperture inside that viewBox, same units. `radius` is the rendered screen corner. */\n aperture: { x: number; y: number; width: number; height: number; radius: number }\n /** Default accessible name of the artwork. */\n label: string\n}\n\n/**\n * The iPhone frame (Inkscape artwork, 72.5 × 150 units — the source is in mm; aspect 1 / 2.069). The\n * aperture is the `screenCutout` mask path: x 2.9125 → 69.5880, y 2.4649 → 147.5351. Its true corner\n * radius is **10.4004**; the rendered screen uses **10.2004** so the screen's anti-aliased edge sits just\n * inside the bezel with no light leak at the corners (the value the consumer tuned at 1× and 0.5×).\n */\nexport const IPHONE_FRAME: MobileFrameSpec = {\n src: iphone,\n viewBox: { width: 72.5, height: 150 },\n aperture: { x: 2.9125, y: 2.4649, width: 66.6755, height: 145.0702, radius: 10.2004 },\n label: 'iPhone',\n}\n","import {\n forwardRef,\n useCallback,\n useLayoutEffect,\n useRef,\n type CSSProperties,\n type ForwardedRef,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { IPHONE_FRAME, type MobileFrameSpec } from './frames'\nimport styles from './MobileFrame.module.css'\n\nexport interface MobileFrameProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {\n /** What the phone shows. Laid out at exactly `screenWidth` CSS px, then scaled with the frame. */\n children?: ReactNode\n /** The screen's layout width in CSS px — the \"true device width\" the content sees (default `440`). */\n screenWidth?: number\n /** Which frame (default `IPHONE_FRAME`). */\n frame?: MobileFrameSpec\n /** Fill behind the children (a CSS color / var). Default `var(--tz-color-surface)`. */\n screenBackground?: string\n /** Accessible name for the artwork (default `frame.label` + \" preview\"). */\n alt?: string\n /** Class for the screen element (the scaled `screenWidth` box), e.g. to give it a font or theme vars. */\n screenClassName?: string\n /** Style for the screen element. */\n screenStyle?: CSSProperties\n /** Fires with the current scale factor whenever the frame is re-measured. */\n onScaleChange?: (scale: number) => void\n /**\n * Hide the scrollbars of every scroller inside the screen (default `true`) — a real phone has no\n * permanent scrollbar gutter, so a desktop bar drawn inside the frame breaks the illusion. Scrolling\n * (wheel / touch) still works. `false` shows them again (e.g. while debugging layout).\n */\n hideScrollbars?: boolean\n}\n\n/** The frame's rendered width at which the screen is exactly `screenWidth` px (scale 1). */\nexport const frameWidthFor = (screenWidth: number, frame: MobileFrameSpec): number =>\n (screenWidth * frame.viewBox.width) / frame.aperture.width\n\n/**\n * A phone mockup that renders any content at a **true device width**. The frame artwork is an `<img>`\n * (never inlined — its Inkscape ids are document-global, so two inlined copies would overwrite each\n * other's gradients); the **screen** is positioned exactly in the artwork's aperture, **laid out at a\n * fixed `screenWidth` CSS px** like a real device, and **scaled** (`transform: scale`) to whatever width\n * the frame gets — so children see a viewport that is exactly `screenWidth` px wide (media queries, `%`\n * widths and `vw` do **not** follow the visual size; use container queries on the screen if needed),\n * while the visual size follows the frame. The root fills its container up to the width at which the\n * screen is a true `screenWidth` (≈478px for the iPhone at 440), and shrinks with it below that — two\n * phones in a `Row` share the row and shrink together. The one measurement (`ResizeObserver` on the root)\n * writes `--mf-scale` straight onto the DOM node (no React state, no re-render of the preview) and\n * reports it via `onScaleChange`. Every CSS number is derived from the `frame` spec as inline custom\n * properties — the stylesheet only reads vars. The component knows nothing about the previewed app's\n * light / dark theme: wrap it in your own provider (**outside** `MobileFrame`, or the var is undefined on\n * the screen element) and pass `screenBackground=\"var(--your-canvas)\"`.\n */\nexport const MobileFrame = forwardRef<HTMLDivElement, MobileFrameProps>(function MobileFrame(\n {\n children,\n screenWidth = 440,\n frame = IPHONE_FRAME,\n screenBackground = 'var(--tz-color-surface)',\n alt,\n screenClassName,\n screenStyle,\n onScaleChange,\n hideScrollbars = true,\n className,\n style,\n ...props\n },\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRoot = useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) ref.current = node\n },\n [ref],\n )\n\n const { viewBox, aperture } = frame\n const frameWidth = frameWidthFor(screenWidth, frame)\n // geometry as data — derived once from the spec, never typed twice\n const geometry = {\n '--mf-aspect': `${viewBox.width} / ${viewBox.height}`,\n '--mf-max-width': `${frameWidth}px`,\n '--mf-screen-left': `${(aperture.x / viewBox.width) * 100}%`,\n '--mf-screen-top': `${(aperture.y / viewBox.height) * 100}%`,\n '--mf-screen-width': `${screenWidth}px`,\n '--mf-screen-height': `${(screenWidth * aperture.height) / aperture.width}px`,\n '--mf-screen-radius': `${(screenWidth * aperture.radius) / aperture.width}px`,\n '--mf-screen-bg': screenBackground,\n } as CSSProperties\n\n // the ONE measurement CSS can't do (divide two lengths into a unitless factor): rendered width →\n // scale. Written to the node directly so a resize never re-renders the previewed app. SSR-safe.\n const onScaleChangeRef = useRef(onScaleChange)\n onScaleChangeRef.current = onScaleChange\n useLayoutEffect(() => {\n const el = rootRef.current\n if (!el || typeof ResizeObserver === 'undefined') return\n const apply = (width: number) => {\n if (!(width > 0)) return\n const scale = width / frameWidth\n el.style.setProperty('--mf-scale', String(scale))\n onScaleChangeRef.current?.(scale)\n }\n apply(el.getBoundingClientRect().width)\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) apply(entry.contentRect.width)\n })\n observer.observe(el)\n return () => observer.disconnect()\n }, [frameWidth])\n\n return (\n <div\n ref={setRoot}\n className={clsx(styles.device, className)}\n style={{ ...geometry, ...style }}\n {...props}\n >\n {/* screen first, so the frame (Dynamic Island, bezel corners) paints over the content */}\n <div\n className={clsx(styles.screen, hideScrollbars && styles.hideScrollbars, screenClassName)}\n style={screenStyle}\n >\n {children}\n </div>\n <img\n className={styles.frame}\n src={frame.src}\n alt={alt ?? `${frame.label} preview`}\n draggable={false}\n />\n </div>\n )\n})\n"],"names":["iphone","IPHONE_FRAME","frameWidthFor","screenWidth","frame","MobileFrame","forwardRef","children","screenBackground","alt","screenClassName","screenStyle","onScaleChange","hideScrollbars","className","style","props","ref","rootRef","useRef","setRoot","useCallback","node","viewBox","aperture","frameWidth","geometry","onScaleChangeRef","useLayoutEffect","el","apply","width","scale","_a","observer","entries","entry","jsxs","clsx","styles","jsx"],"mappings":";;;AAAA,MAAAA,IAAe,guiBCoBFC,IAAgC;AAAA,EAC3C,KAAKD;AAAA,EACL,SAAS,EAAE,OAAO,MAAM,QAAQ,IAAA;AAAA,EAChC,UAAU,EAAE,GAAG,QAAQ,GAAG,QAAQ,OAAO,SAAS,QAAQ,UAAU,QAAQ,QAAA;AAAA,EAC5E,OAAO;AACT;;;;;GCeaE,IAAgB,CAACC,GAAqBC,MAChDD,IAAcC,EAAM,QAAQ,QAASA,EAAM,SAAS,OAkB1CC,IAAcC,EAA6C,SACtE;AAAA,EACE,UAAAC;AAAA,EACA,aAAAJ,IAAc;AAAA,EACd,OAAAC,IAAQH;AAAA,EACR,kBAAAO,IAAmB;AAAA,EACnB,KAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAUC,EAA8B,IAAI,GAC5CC,IAAUC;AAAA,IACd,CAACC,MAAgC;AAC/B,MAAAJ,EAAQ,UAAUI,GACd,OAAOL,KAAQ,aAAYA,EAAIK,CAAI,IAC9BL,QAAS,UAAUK;AAAA,IAC9B;AAAA,IACA,CAACL,CAAG;AAAA,EAAA,GAGA,EAAE,SAAAM,GAAS,UAAAC,EAAA,IAAapB,GACxBqB,IAAavB,EAAcC,GAAaC,CAAK,GAE7CsB,IAAW;AAAA,IACf,eAAe,GAAGH,EAAQ,KAAK,MAAMA,EAAQ,MAAM;AAAA,IACnD,kBAAkB,GAAGE,CAAU;AAAA,IAC/B,oBAAoB,GAAID,EAAS,IAAID,EAAQ,QAAS,GAAG;AAAA,IACzD,mBAAmB,GAAIC,EAAS,IAAID,EAAQ,SAAU,GAAG;AAAA,IACzD,qBAAqB,GAAGpB,CAAW;AAAA,IACnC,sBAAsB,GAAIA,IAAcqB,EAAS,SAAUA,EAAS,KAAK;AAAA,IACzE,sBAAsB,GAAIrB,IAAcqB,EAAS,SAAUA,EAAS,KAAK;AAAA,IACzE,kBAAkBhB;AAAA,EAAA,GAKdmB,IAAmBR,EAAOP,CAAa;AAC7C,SAAAe,EAAiB,UAAUf,GAC3BgB,EAAgB,MAAM;AACpB,UAAMC,IAAKX,EAAQ;AACnB,QAAI,CAACW,KAAM,OAAO,iBAAmB,IAAa;AAClD,UAAMC,IAAQ,CAACC,MAAkB;;AAC/B,UAAI,EAAEA,IAAQ,GAAI;AAClB,YAAMC,IAAQD,IAAQN;AACtB,MAAAI,EAAG,MAAM,YAAY,cAAc,OAAOG,CAAK,CAAC,IAChDC,IAAAN,EAAiB,YAAjB,QAAAM,EAAA,KAAAN,GAA2BK;AAAA,IAC7B;AACA,IAAAF,EAAMD,EAAG,sBAAA,EAAwB,KAAK;AACtC,UAAMK,IAAW,IAAI,eAAe,CAACC,MAAY;AAC/C,iBAAWC,KAASD,EAAS,CAAAL,EAAMM,EAAM,YAAY,KAAK;AAAA,IAC5D,CAAC;AACD,WAAAF,EAAS,QAAQL,CAAE,GACZ,MAAMK,EAAS,WAAA;AAAA,EACxB,GAAG,CAACT,CAAU,CAAC,GAGb,gBAAAY;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKjB;AAAA,MACL,WAAWkB,EAAKC,EAAO,QAAQzB,CAAS;AAAA,MACxC,OAAO,EAAE,GAAGY,GAAU,GAAGX,EAAA;AAAA,MACxB,GAAGC;AAAA,MAGJ,UAAA;AAAA,QAAA,gBAAAwB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWF,EAAKC,EAAO,QAAQ1B,KAAkB0B,EAAO,gBAAgB7B,CAAe;AAAA,YACvF,OAAOC;AAAA,YAEN,UAAAJ;AAAA,UAAA;AAAA,QAAA;AAAA,QAEH,gBAAAiC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,EAAO;AAAA,YAClB,KAAKnC,EAAM;AAAA,YACX,KAAKK,KAAO,GAAGL,EAAM,KAAK;AAAA,YAC1B,WAAW;AAAA,UAAA;AAAA,QAAA;AAAA,MACb;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const k=require("react/jsx-runtime"),i=require("react"),G=require("clsx"),P="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='72.5mm'%20height='150mm'%20viewBox='0%200%2072.499999%20150'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%3e%3cmask%20id='screenCutout'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72.5'%20height='150'%3e%3crect%20x='0'%20y='0'%20width='72.5'%20height='150'%20fill='%23fff'/%3e%3cpath%20d='m%2013.312882,2.4648914%20c%20-5.8047685,0%20-10.4003983,4.5956227%20-10.4003983,10.4003996%20V%20137.13471%20c%200,5.80477%204.5956298,10.4004%2010.4003983,10.4004%20h%2045.87472%20c%205.80478,0%2010.400398,-4.59563%2010.400398,-10.4004%20V%2012.865291%20C%2069.588,7.0605141%2064.992382,2.4648914%2059.187602,2.4648914%20Z'%20fill='%23000'/%3e%3cpath%20d='M%2028.818913,4.80325%20h%2014.862142%20c%201.66928,0%203.013252,1.343978%203.013252,3.0132527%200,1.6692748%20-1.343972,3.0132533%20-3.013252,3.0132533%20H%2028.818913%20c%20-1.66927,0%20-3.012736,-1.3439785%20-3.012736,-3.0132533%200,-1.6692747%201.343466,-3.0132527%203.012736,-3.0132527%20z'%20fill='%23fff'/%3e%3c/mask%3e%3clinearGradient%20id='linearGradient31'%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.02;'%20offset='0'%20id='stop31'%20/%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.1;'%20offset='1'%20id='stop32'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient25'%3e%3cstop%20style='stop-color:%23b697ff;stop-opacity:1;'%20offset='0'%20id='stop26'%20/%3e%3cstop%20style='stop-color:%233600ae;stop-opacity:1;'%20offset='0.56404012'%20id='stop28'%20/%3e%3cstop%20style='stop-color:%23000000;stop-opacity:0;'%20offset='1'%20id='stop27'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient24'%3e%3cstop%20style='stop-color:%2339394e;stop-opacity:1;'%20offset='0'%20id='stop24'%20/%3e%3cstop%20style='stop-color:%231e1e21;stop-opacity:1;'%20offset='1'%20id='stop25'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient12'%3e%3cstop%20style='stop-color:%23686171;stop-opacity:1;'%20offset='0'%20id='stop13'%20/%3e%3cstop%20style='stop-color:%23575360;stop-opacity:1;'%20offset='1'%20id='stop14'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient9'%3e%3cstop%20style='stop-color:%23867e90;stop-opacity:1;'%20offset='0'%20id='stop9'%20/%3e%3cstop%20style='stop-color:%23c5c4d1;stop-opacity:1;'%20offset='0.17473139'%20id='stop12'%20/%3e%3cstop%20style='stop-color:%238d8698;stop-opacity:1'%20offset='0.64714581'%20id='stop11'%20/%3e%3cstop%20style='stop-color:%237a7184;stop-opacity:1;'%20offset='1'%20id='stop10'%20/%3e%3c/linearGradient%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath1'%3e%3crect%20style='fill:%239320d4;stroke-width:2.90343;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect2'%20width='207.90259'%20height='430.15308'%20x='66.161987'%20y='-144.36761'%20/%3e%3c/clipPath%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient10'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.528318,-10.430529)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient14'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.41007042,-0.16084956)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient15'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient16'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient17'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient18'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient19'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient20'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient24'%20id='radialGradient25'%20cx='43.681053'%20cy='7.4308386'%20fx='43.681053'%20fy='7.4308386'%20r='0.92431802'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1.3383789e-6)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-5.200404,-14.350692)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27-6'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-93.631878,-14.350692)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient31'%20id='linearGradient32'%20x1='36.25'%20y1='0.97257996'%20x2='36.25'%20y2='1.5374033'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(0,0.00403118)'%20/%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter32'%20x='-0.006718275'%20y='-0.0031835449'%20width='1.0134365'%20height='1.0063671'%3e%3cfeGaussianBlur%20stdDeviation='0.19764468'%20id='feGaussianBlur32'%20/%3e%3c/filter%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter33'%20x='-0.0091814284'%20y='-0.0043248752'%20width='1.0183629'%20height='1.0086498'%3e%3cfeGaussianBlur%20stdDeviation='0.26705965'%20id='feGaussianBlur33'%20/%3e%3c/filter%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath34'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect35'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='layer2'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g14'%3e%3crect%20style='fill:url(%23linearGradient14);fill-opacity:1;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6'%20width='7.6419992'%20height='6.9724154'%20x='-6.8847655e-10'%20y='30.692017'%20ry='0.30878335'%20/%3e%3crect%20style='fill:url(%23linearGradient10);fill-opacity:1;stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6-2'%20width='7.230288'%20height='6.7202911'%20x='0.061756074'%20y='30.818081'%20ry='0.29761767'%20/%3e%3c/g%3e%3cg%20id='g17'%20transform='translate(-0.24638151)'%3e%3cpath%20id='rect6-27'%20style='fill:url(%23linearGradient15);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9'%20style='fill:url(%23linearGradient16);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-8'%20transform='matrix(-1,0,0,1,72.745556,3.8223925)'%3e%3cpath%20id='rect6-27-6'%20style='fill:url(%23linearGradient19);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2017.177374%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-5'%20style='fill:url(%23linearGradient20);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2016.947582%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-1'%20transform='translate(-0.24638151,14.230005)'%3e%3cpath%20id='rect6-27-3'%20style='fill:url(%23linearGradient17);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-8'%20style='fill:url(%23linearGradient18);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer9'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect32'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/g%3e%3cg%20id='layer7'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g34'%20clip-path='url(%23clipPath34)'%3e%3cpath%20id='rect32-7'%20style='display:inline;mix-blend-mode:normal;fill:%239486a7;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter32)'%20d='m%2013.312381,0.50015231%20c%20-6.8593976,0%20-12.3651366,5.50573999%20-12.3651366,12.36513969%20V%20137.13471%20c%200,6.85939%205.505739,12.36514%2012.3651366,12.36514%20h%2045.875234%20c%206.8594,0%2012.36514,-5.50575%2012.36514,-12.36514%20V%2012.865292%20c%200,-6.8593997%20-5.50574,-12.36513969%20-12.36514,-12.36513969%20z'%20/%3e%3cpath%20id='rect32-4'%20style='display:inline;mix-blend-mode:normal;fill:%23f1eef4;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter33)'%20d='m%2013.312383,0.90038112%20c%20-6.6447174,0%20-11.9667114,5.32043998%20-11.9667114,11.96515988%20V%20137.13495%20c%200,6.64471%205.321994,11.96466%2011.9667114,11.96466%20h%2045.875234%20c%206.64472,0%2011.96671,-5.31995%2011.96671,-11.96466%20V%2012.865541%20c%200,-6.6447199%20-5.32199,-11.96515988%20-11.96671,-11.96515988%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer8'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect34'%20style='fill:%23e7e3ec;fill-opacity:1;stroke:none;stroke-width:13.7539;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.465686;paint-order:stroke%20fill%20markers'%20d='M%2056.059111,0%20V%2015.527734%20H%200.44648437%20v%201.055233%20H%2072.053483%20V%2015.527734%20H%2057.114343%20V%200%20Z%20M%200.44648437,133.41718%20v%201.05523%20H%2015.385624%20v%2015.52774%20h%201.055233%20v%20-15.52774%20h%2055.612626%20v%20-1.05523%20z'%20/%3e%3c/g%3e%3cg%20id='layer6'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect32-73'%20style='display:inline;fill:%23000000;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2013.312378,0.97661114%20c%20-6.603655,0%20-11.888676,5.28502136%20-11.888676,11.88868086%20V%20137.13471%20c%200,6.60365%205.285021,11.88868%2011.888676,11.88868%20h%2045.87524%20c%206.60366,0%2011.88868,-5.28503%2011.88868,-11.88868%20V%2012.865292%20c%200,-6.6036595%20-5.28502,-11.88868086%20-11.88868,-11.88868086%20z'%20/%3e%3cpath%20id='path31'%20style='fill:url(%23linearGradient32);stroke:none;stroke-width:1.784;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2029.068268,0.97661114%20c%200.09826,0%200.286648,0.56482346%200.400492,0.56482346%20h%2013.56248%20c%200.113844,0%200.302237,-0.56482346%200.400492,-0.56482346%20z'%20/%3e%3c/g%3e%3cg%20id='layer5'%20style='display:inline'%3e%3cpath%20id='path21'%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.184059;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2043.681055,5.0436198%20a%202.7730749,2.7730756%200%200%200%20-2.772958,2.7729573%202.7730749,2.7730756%200%200%200%202.772958,2.7729579%202.7730749,2.7730756%200%200%200%202.772957,-2.7729579%202.7730749,2.7730756%200%200%200%20-2.772957,-2.7729573%20z%20m%200,1.0407633%20a%201.7323073,1.7323078%200%200%201%201.732194,1.732194%201.7323073,1.7323078%200%200%201%20-1.732194,1.7321941%201.7323073,1.7323078%200%200%201%20-1.732194,-1.7321941%201.7323073,1.7323078%200%200%201%201.732194,-1.732194%20z'%20/%3e%3cpath%20id='path21-0'%20style='fill:%23050505;fill-opacity:1;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke%20fill%20markers'%20d='m%20-28.818913,5.0436198%20a%202.7730749,2.7730756%200%200%201%202.772958,2.7729573%202.7730749,2.7730756%200%200%201%20-2.772958,2.7729579%20h%20-7.292578%20a%202.7730749,2.7730756%200%200%201%20-2.772957,-2.7729579%202.7730749,2.7730756%200%200%201%202.772957,-2.7729573%20z%20m%205.17e-4,0.8919352%20h%20-7.293095%20c%20-1.049389,4.46e-5%20-1.880461,0.8316326%20-1.880505,1.8810221%204.4e-5,1.0493897%200.831116,1.8804608%201.880505,1.8805054%20h%207.293095%20c%201.049389,-4.42e-5%201.880977,-0.8311154%201.881022,-1.8805054%20-4.5e-5,-1.0493897%20-0.831633,-1.8809779%20-1.881022,-1.8810221%20z'%20transform='scale(-1,1)'%20/%3e%3ccircle%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.241269;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path22'%20cx='43.681053'%20cy='7.8165774'%20r='1.5452632'%20/%3e%3ccircle%20style='fill:url(%23radialGradient25);fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path23'%20cx='43.681053'%20cy='7.8165774'%20r='0.92431802'%20/%3e%3ccircle%20style='fill:%23000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-4'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27-6);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-42'%20cx='-44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='matrix(-0.96592583,-0.25881905,-0.25881905,0.96592583,0,0)'%20/%3e%3c/g%3e%3c/svg%3e",w={src:P,viewBox:{width:72.5,height:150},aperture:{x:2.9125,y:2.4649,width:66.6755,height:145.0702,radius:10.2004},label:"iPhone"},R="_device_6tm0e_6",T="_screen_6tm0e_19",B="_hideScrollbars_6tm0e_35",$="_frame_6tm0e_43",p={device:R,screen:T,hideScrollbars:B,frame:$},v=(y,n)=>y*n.viewBox.width/n.aperture.width,C=i.forwardRef(function({children:n,screenWidth:o=440,frame:a=w,screenBackground:U="var(--tz-color-surface)",alt:j,screenClassName:b,screenStyle:z,onScaleChange:h,hideScrollbars:H=!0,className:O,style:S,...V},t){const u=i.useRef(null),M=i.useCallback(e=>{u.current=e,typeof t=="function"?t(e):t&&(t.current=e)},[t]),{viewBox:s,aperture:r}=a,f=v(o,a),_={"--mf-aspect":`${s.width} / ${s.height}`,"--mf-max-width":`${f}px`,"--mf-screen-left":`${r.x/s.width*100}%`,"--mf-screen-top":`${r.y/s.height*100}%`,"--mf-screen-width":`${o}px`,"--mf-screen-height":`${o*r.height/r.width}px`,"--mf-screen-radius":`${o*r.radius/r.width}px`,"--mf-screen-bg":U},l=i.useRef(h);return l.current=h,i.useLayoutEffect(()=>{const e=u.current;if(!e||typeof ResizeObserver>"u")return;const m=c=>{var x;if(!(c>0))return;const d=c/f;e.style.setProperty("--mf-scale",String(d)),(x=l.current)==null||x.call(l,d)};m(e.getBoundingClientRect().width);const g=new ResizeObserver(c=>{for(const d of c)m(d.contentRect.width)});return g.observe(e),()=>g.disconnect()},[f]),k.jsxs("div",{ref:M,className:G.clsx(p.device,O),style:{..._,...S},...V,children:[k.jsx("div",{className:G.clsx(p.screen,H&&p.hideScrollbars,b),style:z,children:n}),k.jsx("img",{className:p.frame,src:a.src,alt:j??`${a.label} preview`,draggable:!1})]})});exports.IPHONE_FRAME=w;exports.MobileFrame=C;exports.frameWidthFor=v;
|
|
2
|
+
//# sourceMappingURL=MobileFrame-Dsfgd_4k.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileFrame-Dsfgd_4k.cjs","sources":["../src/components/MobileFrame/assets/iphone.svg","../src/components/MobileFrame/frames.ts","../src/components/MobileFrame/MobileFrame.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='72.5mm'%20height='150mm'%20viewBox='0%200%2072.499999%20150'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%3e%3cmask%20id='screenCutout'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72.5'%20height='150'%3e%3crect%20x='0'%20y='0'%20width='72.5'%20height='150'%20fill='%23fff'/%3e%3cpath%20d='m%2013.312882,2.4648914%20c%20-5.8047685,0%20-10.4003983,4.5956227%20-10.4003983,10.4003996%20V%20137.13471%20c%200,5.80477%204.5956298,10.4004%2010.4003983,10.4004%20h%2045.87472%20c%205.80478,0%2010.400398,-4.59563%2010.400398,-10.4004%20V%2012.865291%20C%2069.588,7.0605141%2064.992382,2.4648914%2059.187602,2.4648914%20Z'%20fill='%23000'/%3e%3cpath%20d='M%2028.818913,4.80325%20h%2014.862142%20c%201.66928,0%203.013252,1.343978%203.013252,3.0132527%200,1.6692748%20-1.343972,3.0132533%20-3.013252,3.0132533%20H%2028.818913%20c%20-1.66927,0%20-3.012736,-1.3439785%20-3.012736,-3.0132533%200,-1.6692747%201.343466,-3.0132527%203.012736,-3.0132527%20z'%20fill='%23fff'/%3e%3c/mask%3e%3clinearGradient%20id='linearGradient31'%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.02;'%20offset='0'%20id='stop31'%20/%3e%3cstop%20style='stop-color:%23ffffff;stop-opacity:0.1;'%20offset='1'%20id='stop32'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient25'%3e%3cstop%20style='stop-color:%23b697ff;stop-opacity:1;'%20offset='0'%20id='stop26'%20/%3e%3cstop%20style='stop-color:%233600ae;stop-opacity:1;'%20offset='0.56404012'%20id='stop28'%20/%3e%3cstop%20style='stop-color:%23000000;stop-opacity:0;'%20offset='1'%20id='stop27'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient24'%3e%3cstop%20style='stop-color:%2339394e;stop-opacity:1;'%20offset='0'%20id='stop24'%20/%3e%3cstop%20style='stop-color:%231e1e21;stop-opacity:1;'%20offset='1'%20id='stop25'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient12'%3e%3cstop%20style='stop-color:%23686171;stop-opacity:1;'%20offset='0'%20id='stop13'%20/%3e%3cstop%20style='stop-color:%23575360;stop-opacity:1;'%20offset='1'%20id='stop14'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='linearGradient9'%3e%3cstop%20style='stop-color:%23867e90;stop-opacity:1;'%20offset='0'%20id='stop9'%20/%3e%3cstop%20style='stop-color:%23c5c4d1;stop-opacity:1;'%20offset='0.17473139'%20id='stop12'%20/%3e%3cstop%20style='stop-color:%238d8698;stop-opacity:1'%20offset='0.64714581'%20id='stop11'%20/%3e%3cstop%20style='stop-color:%237a7184;stop-opacity:1;'%20offset='1'%20id='stop10'%20/%3e%3c/linearGradient%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath1'%3e%3crect%20style='fill:%239320d4;stroke-width:2.90343;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect2'%20width='207.90259'%20height='430.15308'%20x='66.161987'%20y='-144.36761'%20/%3e%3c/clipPath%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient10'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.528318,-10.430529)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient14'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.41007042,-0.16084956)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient15'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient16'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient17'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient18'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient12'%20id='linearGradient19'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-0.16368891,11.918822)'%20x1='1.7565179'%20y1='30.852865'%20x2='1.7565179'%20y2='37.825279'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient9'%20id='linearGradient20'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(1,0,0,1.0187233,10.7747,1.649143)'%20x1='-6.8514175'%20y1='40.490494'%20x2='-6.8514175'%20y2='47.087269'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient24'%20id='radialGradient25'%20cx='43.681053'%20cy='7.4308386'%20fx='43.681053'%20fy='7.4308386'%20r='0.92431802'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(1.3383789e-6)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-5.200404,-14.350692)'%20/%3e%3cradialGradient%20xlink:href='%23linearGradient25'%20id='radialGradient27-6'%20cx='48.734295'%20cy='7.8165774'%20fx='48.734295'%20fy='7.8165774'%20r='0.68189663'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(0.99999932,-3.3487284e-7,-2.1771224e-6,1.3555106,-93.631878,-14.350692)'%20/%3e%3clinearGradient%20xlink:href='%23linearGradient31'%20id='linearGradient32'%20x1='36.25'%20y1='0.97257996'%20x2='36.25'%20y2='1.5374033'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(0,0.00403118)'%20/%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter32'%20x='-0.006718275'%20y='-0.0031835449'%20width='1.0134365'%20height='1.0063671'%3e%3cfeGaussianBlur%20stdDeviation='0.19764468'%20id='feGaussianBlur32'%20/%3e%3c/filter%3e%3cfilter%20style='color-interpolation-filters:sRGB'%20id='filter33'%20x='-0.0091814284'%20y='-0.0043248752'%20width='1.0183629'%20height='1.0086498'%3e%3cfeGaussianBlur%20stdDeviation='0.26705965'%20id='feGaussianBlur33'%20/%3e%3c/filter%3e%3cclipPath%20clipPathUnits='userSpaceOnUse'%20id='clipPath34'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect35'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='layer2'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g14'%3e%3crect%20style='fill:url(%23linearGradient14);fill-opacity:1;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6'%20width='7.6419992'%20height='6.9724154'%20x='-6.8847655e-10'%20y='30.692017'%20ry='0.30878335'%20/%3e%3crect%20style='fill:url(%23linearGradient10);fill-opacity:1;stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20id='rect6-2'%20width='7.230288'%20height='6.7202911'%20x='0.061756074'%20y='30.818081'%20ry='0.29761767'%20/%3e%3c/g%3e%3cg%20id='g17'%20transform='translate(-0.24638151)'%3e%3cpath%20id='rect6-27'%20style='fill:url(%23linearGradient15);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9'%20style='fill:url(%23linearGradient16);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-8'%20transform='matrix(-1,0,0,1,72.745556,3.8223925)'%3e%3cpath%20id='rect6-27-6'%20style='fill:url(%23linearGradient19);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2017.177374%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-5'%20style='fill:url(%23linearGradient20);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2016.947582%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3cg%20id='g17-1'%20transform='translate(-0.24638151,14.230005)'%3e%3cpath%20id='rect6-27-3'%20style='fill:url(%23linearGradient17);stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.55516486,42.77169%20H%207.5795974%20c%200.171066,0%200.3087834,0.137718%200.3087834,0.308784%20v%2010.627089%20c%200,0.171066%20-0.1377174,0.308784%20-0.3087834,0.308784%20H%200.55516486%20c%20-0.17106598,0%20-0.30878335,-0.137718%20-0.30878335,-0.308784%20V%2043.080474%20c%200,-0.171066%200.13771737,-0.308784%200.30878335,-0.308784%20z'%20/%3e%3cpath%20id='rect6-2-9-8'%20style='fill:url(%23linearGradient18);stroke-width:0.190988;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.542522;paint-order:stroke%20fill%20markers'%20d='M%200.60575527,42.897755%20H%207.240808%20c%200.1648801,0%200.2976176,0.132737%200.2976176,0.297617%20v%2010.397297%20c%200,0.16488%20-0.1327375,0.297618%20-0.2976176,0.297618%20H%200.60575527%20c%20-0.16488019,0%20-0.29761767,-0.132738%20-0.29761767,-0.297618%20V%2043.195372%20c%200,-0.16488%200.13273748,-0.297617%200.29761767,-0.297617%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer9'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3crect%20style='display:inline;fill:%23716a7b;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='rect32'%20width='71.606865'%20height='150'%20x='0.44656754'%20y='1.4210855e-14'%20ry='12.865973'%20/%3e%3c/g%3e%3cg%20id='layer7'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cg%20id='g34'%20clip-path='url(%23clipPath34)'%3e%3cpath%20id='rect32-7'%20style='display:inline;mix-blend-mode:normal;fill:%239486a7;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter32)'%20d='m%2013.312381,0.50015231%20c%20-6.8593976,0%20-12.3651366,5.50573999%20-12.3651366,12.36513969%20V%20137.13471%20c%200,6.85939%205.505739,12.36514%2012.3651366,12.36514%20h%2045.875234%20c%206.8594,0%2012.36514,-5.50575%2012.36514,-12.36514%20V%2012.865292%20c%200,-6.8593997%20-5.50574,-12.36513969%20-12.36514,-12.36513969%20z'%20/%3e%3cpath%20id='rect32-4'%20style='display:inline;mix-blend-mode:normal;fill:%23f1eef4;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers;filter:url(%23filter33)'%20d='m%2013.312383,0.90038112%20c%20-6.6447174,0%20-11.9667114,5.32043998%20-11.9667114,11.96515988%20V%20137.13495%20c%200,6.64471%205.321994,11.96466%2011.9667114,11.96466%20h%2045.875234%20c%206.64472,0%2011.96671,-5.31995%2011.96671,-11.96466%20V%2012.865541%20c%200,-6.6447199%20-5.32199,-11.96515988%20-11.96671,-11.96515988%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='layer8'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect34'%20style='fill:%23e7e3ec;fill-opacity:1;stroke:none;stroke-width:13.7539;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.465686;paint-order:stroke%20fill%20markers'%20d='M%2056.059111,0%20V%2015.527734%20H%200.44648437%20v%201.055233%20H%2072.053483%20V%2015.527734%20H%2057.114343%20V%200%20Z%20M%200.44648437,133.41718%20v%201.05523%20H%2015.385624%20v%2015.52774%20h%201.055233%20v%20-15.52774%20h%2055.612626%20v%20-1.05523%20z'%20/%3e%3c/g%3e%3cg%20id='layer6'%20style='display:inline'%20mask='url(%23screenCutout)'%3e%3cpath%20id='rect32-73'%20style='display:inline;fill:%23000000;fill-opacity:1;stroke:none;stroke-width:21.753;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2013.312378,0.97661114%20c%20-6.603655,0%20-11.888676,5.28502136%20-11.888676,11.88868086%20V%20137.13471%20c%200,6.60365%205.285021,11.88868%2011.888676,11.88868%20h%2045.87524%20c%206.60366,0%2011.88868,-5.28503%2011.88868,-11.88868%20V%2012.865292%20c%200,-6.6036595%20-5.28502,-11.88868086%20-11.88868,-11.88868086%20z'%20/%3e%3cpath%20id='path31'%20style='fill:url(%23linearGradient32);stroke:none;stroke-width:1.784;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2029.068268,0.97661114%20c%200.09826,0%200.286648,0.56482346%200.400492,0.56482346%20h%2013.56248%20c%200.113844,0%200.302237,-0.56482346%200.400492,-0.56482346%20z'%20/%3e%3c/g%3e%3cg%20id='layer5'%20style='display:inline'%3e%3cpath%20id='path21'%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.184059;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20d='m%2043.681055,5.0436198%20a%202.7730749,2.7730756%200%200%200%20-2.772958,2.7729573%202.7730749,2.7730756%200%200%200%202.772958,2.7729579%202.7730749,2.7730756%200%200%200%202.772957,-2.7729579%202.7730749,2.7730756%200%200%200%20-2.772957,-2.7729573%20z%20m%200,1.0407633%20a%201.7323073,1.7323078%200%200%201%201.732194,1.732194%201.7323073,1.7323078%200%200%201%20-1.732194,1.7321941%201.7323073,1.7323078%200%200%201%20-1.732194,-1.7321941%201.7323073,1.7323078%200%200%201%201.732194,-1.732194%20z'%20/%3e%3cpath%20id='path21-0'%20style='fill:%23050505;fill-opacity:1;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke%20fill%20markers'%20d='m%20-28.818913,5.0436198%20a%202.7730749,2.7730756%200%200%201%202.772958,2.7729573%202.7730749,2.7730756%200%200%201%20-2.772958,2.7729579%20h%20-7.292578%20a%202.7730749,2.7730756%200%200%201%20-2.772957,-2.7729579%202.7730749,2.7730756%200%200%201%202.772957,-2.7729573%20z%20m%205.17e-4,0.8919352%20h%20-7.293095%20c%20-1.049389,4.46e-5%20-1.880461,0.8316326%20-1.880505,1.8810221%204.4e-5,1.0493897%200.831116,1.8804608%201.880505,1.8805054%20h%207.293095%20c%201.049389,-4.42e-5%201.880977,-0.8311154%201.881022,-1.8805054%20-4.5e-5,-1.0493897%20-0.831633,-1.8809779%20-1.881022,-1.8810221%20z'%20transform='scale(-1,1)'%20/%3e%3ccircle%20style='fill:%23050505;fill-opacity:1;stroke:none;stroke-width:0.241269;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path22'%20cx='43.681053'%20cy='7.8165774'%20r='1.5452632'%20/%3e%3ccircle%20style='fill:url(%23radialGradient25);fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path23'%20cx='43.681053'%20cy='7.8165774'%20r='0.92431802'%20/%3e%3ccircle%20style='fill:%23000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-4'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24'%20cx='44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='rotate(15)'%20/%3e%3ccircle%20style='fill:url(%23radialGradient27-6);fill-opacity:0.522059;stroke:none;stroke-width:0.2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;paint-order:stroke%20fill%20markers'%20id='path24-42'%20cx='-44.215736'%20cy='-3.755255'%20r='0.68189663'%20transform='matrix(-0.96592583,-0.25881905,-0.25881905,0.96592583,0,0)'%20/%3e%3c/g%3e%3c/svg%3e\"","import iphone from './assets/iphone.svg'\n\n/** A phone frame: the artwork plus the exact screen aperture cut into it, in the artwork's own units. */\nexport interface MobileFrameSpec {\n /** The frame artwork, rendered as `<img>` (never inlined — see the component doc). */\n src: string\n /** viewBox size of the artwork. */\n viewBox: { width: number; height: number }\n /** The screen aperture inside that viewBox, same units. `radius` is the rendered screen corner. */\n aperture: { x: number; y: number; width: number; height: number; radius: number }\n /** Default accessible name of the artwork. */\n label: string\n}\n\n/**\n * The iPhone frame (Inkscape artwork, 72.5 × 150 units — the source is in mm; aspect 1 / 2.069). The\n * aperture is the `screenCutout` mask path: x 2.9125 → 69.5880, y 2.4649 → 147.5351. Its true corner\n * radius is **10.4004**; the rendered screen uses **10.2004** so the screen's anti-aliased edge sits just\n * inside the bezel with no light leak at the corners (the value the consumer tuned at 1× and 0.5×).\n */\nexport const IPHONE_FRAME: MobileFrameSpec = {\n src: iphone,\n viewBox: { width: 72.5, height: 150 },\n aperture: { x: 2.9125, y: 2.4649, width: 66.6755, height: 145.0702, radius: 10.2004 },\n label: 'iPhone',\n}\n","import {\n forwardRef,\n useCallback,\n useLayoutEffect,\n useRef,\n type CSSProperties,\n type ForwardedRef,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { IPHONE_FRAME, type MobileFrameSpec } from './frames'\nimport styles from './MobileFrame.module.css'\n\nexport interface MobileFrameProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {\n /** What the phone shows. Laid out at exactly `screenWidth` CSS px, then scaled with the frame. */\n children?: ReactNode\n /** The screen's layout width in CSS px — the \"true device width\" the content sees (default `440`). */\n screenWidth?: number\n /** Which frame (default `IPHONE_FRAME`). */\n frame?: MobileFrameSpec\n /** Fill behind the children (a CSS color / var). Default `var(--tz-color-surface)`. */\n screenBackground?: string\n /** Accessible name for the artwork (default `frame.label` + \" preview\"). */\n alt?: string\n /** Class for the screen element (the scaled `screenWidth` box), e.g. to give it a font or theme vars. */\n screenClassName?: string\n /** Style for the screen element. */\n screenStyle?: CSSProperties\n /** Fires with the current scale factor whenever the frame is re-measured. */\n onScaleChange?: (scale: number) => void\n /**\n * Hide the scrollbars of every scroller inside the screen (default `true`) — a real phone has no\n * permanent scrollbar gutter, so a desktop bar drawn inside the frame breaks the illusion. Scrolling\n * (wheel / touch) still works. `false` shows them again (e.g. while debugging layout).\n */\n hideScrollbars?: boolean\n}\n\n/** The frame's rendered width at which the screen is exactly `screenWidth` px (scale 1). */\nexport const frameWidthFor = (screenWidth: number, frame: MobileFrameSpec): number =>\n (screenWidth * frame.viewBox.width) / frame.aperture.width\n\n/**\n * A phone mockup that renders any content at a **true device width**. The frame artwork is an `<img>`\n * (never inlined — its Inkscape ids are document-global, so two inlined copies would overwrite each\n * other's gradients); the **screen** is positioned exactly in the artwork's aperture, **laid out at a\n * fixed `screenWidth` CSS px** like a real device, and **scaled** (`transform: scale`) to whatever width\n * the frame gets — so children see a viewport that is exactly `screenWidth` px wide (media queries, `%`\n * widths and `vw` do **not** follow the visual size; use container queries on the screen if needed),\n * while the visual size follows the frame. The root fills its container up to the width at which the\n * screen is a true `screenWidth` (≈478px for the iPhone at 440), and shrinks with it below that — two\n * phones in a `Row` share the row and shrink together. The one measurement (`ResizeObserver` on the root)\n * writes `--mf-scale` straight onto the DOM node (no React state, no re-render of the preview) and\n * reports it via `onScaleChange`. Every CSS number is derived from the `frame` spec as inline custom\n * properties — the stylesheet only reads vars. The component knows nothing about the previewed app's\n * light / dark theme: wrap it in your own provider (**outside** `MobileFrame`, or the var is undefined on\n * the screen element) and pass `screenBackground=\"var(--your-canvas)\"`.\n */\nexport const MobileFrame = forwardRef<HTMLDivElement, MobileFrameProps>(function MobileFrame(\n {\n children,\n screenWidth = 440,\n frame = IPHONE_FRAME,\n screenBackground = 'var(--tz-color-surface)',\n alt,\n screenClassName,\n screenStyle,\n onScaleChange,\n hideScrollbars = true,\n className,\n style,\n ...props\n },\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRoot = useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) ref.current = node\n },\n [ref],\n )\n\n const { viewBox, aperture } = frame\n const frameWidth = frameWidthFor(screenWidth, frame)\n // geometry as data — derived once from the spec, never typed twice\n const geometry = {\n '--mf-aspect': `${viewBox.width} / ${viewBox.height}`,\n '--mf-max-width': `${frameWidth}px`,\n '--mf-screen-left': `${(aperture.x / viewBox.width) * 100}%`,\n '--mf-screen-top': `${(aperture.y / viewBox.height) * 100}%`,\n '--mf-screen-width': `${screenWidth}px`,\n '--mf-screen-height': `${(screenWidth * aperture.height) / aperture.width}px`,\n '--mf-screen-radius': `${(screenWidth * aperture.radius) / aperture.width}px`,\n '--mf-screen-bg': screenBackground,\n } as CSSProperties\n\n // the ONE measurement CSS can't do (divide two lengths into a unitless factor): rendered width →\n // scale. Written to the node directly so a resize never re-renders the previewed app. SSR-safe.\n const onScaleChangeRef = useRef(onScaleChange)\n onScaleChangeRef.current = onScaleChange\n useLayoutEffect(() => {\n const el = rootRef.current\n if (!el || typeof ResizeObserver === 'undefined') return\n const apply = (width: number) => {\n if (!(width > 0)) return\n const scale = width / frameWidth\n el.style.setProperty('--mf-scale', String(scale))\n onScaleChangeRef.current?.(scale)\n }\n apply(el.getBoundingClientRect().width)\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) apply(entry.contentRect.width)\n })\n observer.observe(el)\n return () => observer.disconnect()\n }, [frameWidth])\n\n return (\n <div\n ref={setRoot}\n className={clsx(styles.device, className)}\n style={{ ...geometry, ...style }}\n {...props}\n >\n {/* screen first, so the frame (Dynamic Island, bezel corners) paints over the content */}\n <div\n className={clsx(styles.screen, hideScrollbars && styles.hideScrollbars, screenClassName)}\n style={screenStyle}\n >\n {children}\n </div>\n <img\n className={styles.frame}\n src={frame.src}\n alt={alt ?? `${frame.label} preview`}\n draggable={false}\n />\n </div>\n )\n})\n"],"names":["iphone","IPHONE_FRAME","frameWidthFor","screenWidth","frame","MobileFrame","forwardRef","children","screenBackground","alt","screenClassName","screenStyle","onScaleChange","hideScrollbars","className","style","props","ref","rootRef","useRef","setRoot","useCallback","node","viewBox","aperture","frameWidth","geometry","onScaleChangeRef","useLayoutEffect","el","apply","width","scale","_a","observer","entries","entry","jsxs","clsx","styles","jsx"],"mappings":"uFAAAA,EAAe,+tiBCoBFC,EAAgC,CAC3C,IAAKD,EACL,QAAS,CAAE,MAAO,KAAM,OAAQ,GAAA,EAChC,SAAU,CAAE,EAAG,OAAQ,EAAG,OAAQ,MAAO,QAAS,OAAQ,SAAU,OAAQ,OAAA,EAC5E,MAAO,QACT,2ICeaE,EAAgB,CAACC,EAAqBC,IAChDD,EAAcC,EAAM,QAAQ,MAASA,EAAM,SAAS,MAkB1CC,EAAcC,EAAAA,WAA6C,SACtE,CACE,SAAAC,EACA,YAAAJ,EAAc,IACd,MAAAC,EAAQH,EACR,iBAAAO,EAAmB,0BACnB,IAAAC,EACA,gBAAAC,EACA,YAAAC,EACA,cAAAC,EACA,eAAAC,EAAiB,GACjB,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAUC,EAAAA,OAA8B,IAAI,EAC5CC,EAAUC,EAAAA,YACbC,GAAgC,CAC/BJ,EAAQ,QAAUI,EACd,OAAOL,GAAQ,WAAYA,EAAIK,CAAI,EAC9BL,MAAS,QAAUK,EAC9B,EACA,CAACL,CAAG,CAAA,EAGA,CAAE,QAAAM,EAAS,SAAAC,CAAA,EAAapB,EACxBqB,EAAavB,EAAcC,EAAaC,CAAK,EAE7CsB,EAAW,CACf,cAAe,GAAGH,EAAQ,KAAK,MAAMA,EAAQ,MAAM,GACnD,iBAAkB,GAAGE,CAAU,KAC/B,mBAAoB,GAAID,EAAS,EAAID,EAAQ,MAAS,GAAG,IACzD,kBAAmB,GAAIC,EAAS,EAAID,EAAQ,OAAU,GAAG,IACzD,oBAAqB,GAAGpB,CAAW,KACnC,qBAAsB,GAAIA,EAAcqB,EAAS,OAAUA,EAAS,KAAK,KACzE,qBAAsB,GAAIrB,EAAcqB,EAAS,OAAUA,EAAS,KAAK,KACzE,iBAAkBhB,CAAA,EAKdmB,EAAmBR,EAAAA,OAAOP,CAAa,EAC7C,OAAAe,EAAiB,QAAUf,EAC3BgB,EAAAA,gBAAgB,IAAM,CACpB,MAAMC,EAAKX,EAAQ,QACnB,GAAI,CAACW,GAAM,OAAO,eAAmB,IAAa,OAClD,MAAMC,EAASC,GAAkB,OAC/B,GAAI,EAAEA,EAAQ,GAAI,OAClB,MAAMC,EAAQD,EAAQN,EACtBI,EAAG,MAAM,YAAY,aAAc,OAAOG,CAAK,CAAC,GAChDC,EAAAN,EAAiB,UAAjB,MAAAM,EAAA,KAAAN,EAA2BK,EAC7B,EACAF,EAAMD,EAAG,sBAAA,EAAwB,KAAK,EACtC,MAAMK,EAAW,IAAI,eAAgBC,GAAY,CAC/C,UAAWC,KAASD,EAASL,EAAMM,EAAM,YAAY,KAAK,CAC5D,CAAC,EACD,OAAAF,EAAS,QAAQL,CAAE,EACZ,IAAMK,EAAS,WAAA,CACxB,EAAG,CAACT,CAAU,CAAC,EAGbY,EAAAA,KAAC,MAAA,CACC,IAAKjB,EACL,UAAWkB,EAAAA,KAAKC,EAAO,OAAQzB,CAAS,EACxC,MAAO,CAAE,GAAGY,EAAU,GAAGX,CAAA,EACxB,GAAGC,EAGJ,SAAA,CAAAwB,EAAAA,IAAC,MAAA,CACC,UAAWF,EAAAA,KAAKC,EAAO,OAAQ1B,GAAkB0B,EAAO,eAAgB7B,CAAe,EACvF,MAAOC,EAEN,SAAAJ,CAAA,CAAA,EAEHiC,EAAAA,IAAC,MAAA,CACC,UAAWD,EAAO,MAClB,IAAKnC,EAAM,IACX,IAAKK,GAAO,GAAGL,EAAM,KAAK,WAC1B,UAAW,EAAA,CAAA,CACb,CAAA,CAAA,CAGN,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),n=require("react"),T=require("clsx"),W=require("./names-BJnFU_5m.cjs"),$=require("./Icon-BVULqOJD.cjs"),H=require("./IconButton-A2B0bqC-.cjs"),X=require("react-dom"),Y=require("./useLockBodyScroll-CIXHZo-Q.cjs"),Z=require("./ConfigProvider-BElY0HuV.cjs"),w="_overlay_gwv2a_6",C={overlay:w},K=n.forwardRef(function({open:a,onClose:s,closeOnBackdrop:N=!0,closeOnEscape:E=!0,lockScroll:j=!0,dim:c,className:u,style:o,children:D,onKeyDown:d,onMouseDown:h,onClick:_,...R},M){const S=n.useRef(null),[A,g]=n.useState(!1);Y.useLockBodyScroll(a&&j),n.useEffect(()=>{if(!a){g(!1);return}const t=requestAnimationFrame(()=>g(!0));return()=>cancelAnimationFrame(t)},[a]);const b=t=>{t.key==="Escape"&&(t.stopPropagation(),E&&(s==null||s())),d==null||d(t)},O=t=>{S.current=t.target,h==null||h(t)},x=t=>{N&&t.target===t.currentTarget&&S.current===t.currentTarget&&(s==null||s()),_==null||_(t)};return!a||typeof document>"u"?null:X.createPortal(l.jsx("div",{ref:M,className:T.clsx(C.overlay,u),"data-open":A?"true":"false",style:c!=null?{"--tz-overlay-dim":c,...o}:o,onKeyDown:b,onMouseDown:O,onClick:x,...R,children:D}),document.body)}),ee="_overlay_1lotx_3",te="_modal_1lotx_25",le="_sm_1lotx_48",re="_md_1lotx_51",ne="_lg_1lotx_54",ae="_fullScreen_1lotx_57",se="_header_1lotx_74",ce="_headerDivided_1lotx_83",oe="_headerMain_1lotx_86",ie="_icon_1lotx_93",ue="_headerText_1lotx_96",de="_title_1lotx_103",fe="_subtitle_1lotx_115",_e="_close_1lotx_127",xe="_body_1lotx_132",me="_footer_1lotx_143",r={overlay:ee,modal:te,sm:le,md:re,lg:ne,fullScreen:ae,header:se,headerDivided:ce,headerMain:oe,icon:ie,headerText:ue,title:de,subtitle:fe,close:_e,body:xe,footer:me},he=new Set(W.ICON_NAMES),I='a[href]:not([tabindex="-1"]), button:not(:disabled):not([tabindex="-1"]), textarea:not(:disabled):not([tabindex="-1"]), input:not(:disabled):not([tabindex="-1"]), select:not(:disabled):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])',be=n.forwardRef(function({open:a,onClose:s,size:N="md",scrollBehavior:E="outside",placement:j="center",title:c,description:u,icon:o,color:D="accent",footer:d,bodyClassName:h,showCloseButton:_=!0,closeOnBackdrop:R=!0,closeOnEscape:M=!0,ariaLabel:S,className:A,style:g,children:b,...O},x){const t=Z.useT(),q=n.useRef(null),P=n.useRef(null),k=n.useRef(null),p=n.useId(),z=n.useId();n.useEffect(()=>{var f,y,v;if(!a)return;const e=document.activeElement,i=((f=P.current)==null?void 0:f.querySelector(I))??((y=k.current)==null?void 0:y.querySelector(I))??((v=q.current)==null?void 0:v.querySelector(I))??q.current;return i==null||i.focus({preventScroll:!0}),()=>{var m;e!=null&&e.isConnected&&((m=e.focus)==null||m.call(e))}},[a]);const V=e=>{q.current=e,typeof x=="function"?x(e):x&&(x.current=e)},F=e=>{if(e.key!=="Tab")return;const i=q.current;if(!i)return;const f=[...i.querySelectorAll(I)].filter(L=>L.offsetParent!==null||L===document.activeElement);if(f.length===0){e.preventDefault(),i.focus();return}const y=f[0],v=f[f.length-1],m=document.activeElement;e.shiftKey&&(m===y||m===i)?(e.preventDefault(),v.focus()):!e.shiftKey&&m===v&&(e.preventDefault(),y.focus())};if(!a)return null;const G=j!=="center",B=o==null?null:typeof o=="string"&&he.has(o)?l.jsx($.Icon,{name:o}):o,J=c!=null||u!=null||B!=null||_,Q=b!=null||d!=null;return l.jsx(K,{open:a,onClose:s,closeOnBackdrop:R,closeOnEscape:M,onKeyDown:F,className:r.overlay,"data-size":N,"data-placement":j,"data-scroll":G?"inside":E,children:l.jsxs("div",{ref:V,className:T.clsx(r.modal,r[N],A),role:"dialog","aria-modal":"true","aria-labelledby":c!=null?p:void 0,"aria-label":c==null?S:void 0,"aria-describedby":u!=null?z:void 0,tabIndex:-1,style:g,...O,children:[J&&l.jsxs("div",{className:T.clsx(r.header,Q&&r.headerDivided),children:[l.jsxs("div",{className:r.headerMain,children:[B!=null&&l.jsx(H.IconButton,{variant:"filled",size:"sm",color:D,nonClickable:!0,"aria-hidden":!0,className:r.icon,children:B}),(c!=null||u!=null)&&l.jsxs("div",{className:r.headerText,children:[c!=null&&l.jsx("div",{id:p,className:r.title,children:c}),u!=null&&l.jsx("div",{id:z,className:r.subtitle,children:u})]})]}),_&&l.jsx(H.IconButton,{variant:"filled",color:"primary",size:"sm",className:r.close,"aria-label":t("common.close"),onClick:s,children:l.jsx($.Icon,{name:"Close"})})]}),b!=null&&l.jsx("div",{ref:P,className:T.clsx(r.body,h),children:b}),d!=null&&l.jsx("div",{ref:k,className:r.footer,children:d})]})})});exports.Modal=be;exports.Overlay=K;
|
|
2
|
+
//# sourceMappingURL=Modal-CQDcYS-Y.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-CQDcYS-Y.cjs","sources":["../src/components/Overlay/Overlay.tsx","../src/components/Modal/Modal.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useRef,\n useState,\n type CSSProperties,\n type HTMLAttributes,\n type KeyboardEvent,\n type MouseEvent,\n type ReactNode,\n} from 'react'\nimport { createPortal } from 'react-dom'\nimport { clsx } from 'clsx'\nimport { useLockBodyScroll } from '../../hooks/useLockBodyScroll'\nimport styles from './Overlay.module.css'\n\nexport interface OverlayProps extends HTMLAttributes<HTMLDivElement> {\n /** Whether the overlay is mounted + shown — gates the portal and drives the fade-in. */\n open: boolean\n /** Requested dismiss — fired on a backdrop click (`closeOnBackdrop`) or Escape (`closeOnEscape`). */\n onClose?: () => void\n /** Close when the scrim itself (outside the content) is clicked. Defaults to `true`. */\n closeOnBackdrop?: boolean\n /** Close when Escape is pressed while focus is within the overlay. Defaults to `true`. */\n closeOnEscape?: boolean\n /** Lock page scroll while open. Defaults to `true`. */\n lockScroll?: boolean\n /** Scrim darkness — the black backdrop's alpha (0–1). Defaults to `0.45`. */\n dim?: number\n /** Overlay content — typically a centered dialog / box / media. */\n children?: ReactNode\n}\n\n/**\n * The shared backdrop primitive behind every dimmed, page-blocking surface (`Modal`, the FileUploader\n * lightbox). Portals a fixed full-viewport scrim to `<body>`, locks page scroll, fades in (opacity keyed\n * off a rAF `visible` flag → `data-open`), and dismisses on **backdrop-click** (gated on the pointer-down\n * AND click both landing on the scrim, so a text-selection drag ending on it doesn't close) / **Escape**\n * (swallowed via `stopPropagation` so it can't reach a React-tree ancestor overlay). Centers its children\n * by default; consumers layer their own padding / scroll / placement via `className` + `data-*` and read\n * the shared `data-open` on the scrim for their own box's enter transform. A consumer `onKeyDown` still\n * fires (after the Escape handling) so it can add e.g. a Tab focus-trap. Internal — no `index.ts`, so it's\n * never exposed as a package subpath; import it via `../Overlay/Overlay`. The ref points at the scrim div.\n */\nexport const Overlay = forwardRef<HTMLDivElement, OverlayProps>(function Overlay(\n {\n open,\n onClose,\n closeOnBackdrop = true,\n closeOnEscape = true,\n lockScroll = true,\n dim,\n className,\n style,\n children,\n onKeyDown,\n onMouseDown,\n onClick,\n ...props\n },\n ref,\n) {\n const mouseDownTarget = useRef<EventTarget | null>(null)\n const [visible, setVisible] = useState(false)\n\n useLockBodyScroll(open && lockScroll)\n\n // enter animation: flip `visible` on the frame after mount so the opacity transition runs\n useEffect(() => {\n if (!open) {\n setVisible(false)\n return\n }\n const raf = requestAnimationFrame(() => setVisible(true))\n return () => cancelAnimationFrame(raf)\n }, [open])\n\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'Escape') {\n // the overlay owns the page — swallow Escape so it can't reach a React-tree ancestor overlay (e.g.\n // an outer Modal) even when this one isn't Escape-dismissible\n event.stopPropagation()\n if (closeOnEscape) onClose?.()\n }\n onKeyDown?.(event)\n }\n // remember where the pointer went down so the click handler can tell a scrim click from a drag that\n // started inside the content and ended on the scrim (a text-selection drag)\n const handleMouseDown = (event: MouseEvent<HTMLDivElement>) => {\n mouseDownTarget.current = event.target\n onMouseDown?.(event)\n }\n const handleClick = (event: MouseEvent<HTMLDivElement>) => {\n if (\n closeOnBackdrop &&\n event.target === event.currentTarget &&\n mouseDownTarget.current === event.currentTarget\n ) {\n onClose?.()\n }\n onClick?.(event)\n }\n\n if (!open || typeof document === 'undefined') return null\n\n return createPortal(\n <div\n ref={ref}\n className={clsx(styles.overlay, className)}\n data-open={visible ? 'true' : 'false'}\n style={dim != null ? ({ '--tz-overlay-dim': dim, ...style } as CSSProperties) : style}\n onKeyDown={handleKeyDown}\n onMouseDown={handleMouseDown}\n onClick={handleClick}\n {...props}\n >\n {children}\n </div>,\n document.body,\n )\n})\n","import {\n forwardRef,\n useEffect,\n useId,\n useRef,\n type CSSProperties,\n type HTMLAttributes,\n type KeyboardEvent,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport { ICON_NAMES, type IconName } from '../../icons/names'\nimport { useT, type ThemeColor } from '../../theme'\nimport { Icon } from '../Icon'\nimport { IconButton } from '../IconButton'\nimport { Overlay } from '../Overlay/Overlay'\nimport styles from './Modal.module.css'\n\nexport type ModalSize = 'sm' | 'md' | 'lg' | 'fullScreen'\nexport type ModalScrollBehavior = 'inside' | 'outside'\nexport type ModalPlacement = 'center' | 'left' | 'right'\n\nconst ICON_NAME_SET = new Set<string>(ICON_NAMES)\n\n/** Focusable descendants used by the focus trap + initial focus. */\n// every clause excludes tabindex=\"-1\" so decorative/programmatic-only nodes (e.g. the header's\n// `nonClickable aria-hidden` IconButton) don't count as trap boundaries or initial-focus targets\nconst FOCUSABLE =\n 'a[href]:not([tabindex=\"-1\"]), button:not(:disabled):not([tabindex=\"-1\"]), textarea:not(:disabled):not([tabindex=\"-1\"]), input:not(:disabled):not([tabindex=\"-1\"]), select:not(:disabled):not([tabindex=\"-1\"]), [tabindex]:not([tabindex=\"-1\"])'\n\nexport interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> {\n /** Whether the modal is open — gates the portal and drives the enter animation. */\n open: boolean\n /** Called when a dismiss is requested (close button, backdrop click, or Escape). */\n onClose: () => void\n /** Preset width: `sm` 360 · `md` 620 · `lg` 900 px, or `fullScreen` (fills the viewport). Defaults to `md`. */\n size?: ModalSize\n /**\n * Where overflow scrolls when the content is taller than the viewport: `outside` (default — the\n * whole dialog grows and the overlay/page scrolls) or `inside` (the body scrolls while the header +\n * footer stay pinned). Ignored for side-drawer placements (`left`/`right`), which always scroll inside.\n */\n scrollBehavior?: ModalScrollBehavior\n /**\n * Where the dialog sits: `center` (default — the standard centered modal), or `left` / `right` to\n * make it a **full-height side drawer** (sheet) that slides in from that edge. A drawer takes its\n * width from `size`, fills the viewport height, and always scrolls its body inside (header + footer\n * stay pinned).\n */\n placement?: ModalPlacement\n /** Header title. When set, labels the dialog (`aria-labelledby`). */\n title?: ReactNode\n /** Muted description line under the title (e.g. a confirm prompt). */\n description?: ReactNode\n /** Leading header icon shown in a tinted box (like `Card`) — a known `IconName` or any node. */\n icon?: IconName | ReactNode\n /** Theme color that tints the leading icon box. Defaults to `accent`. */\n color?: ThemeColor\n /** Footer slot — right-aligned actions over a top divider (e.g. Cancel / Confirm buttons). */\n footer?: ReactNode\n /** Extra class on the scrollable body element — to tune its padding / layout (e.g. a compact confirm). */\n bodyClassName?: string\n /** Show the header × close button. Defaults to `true`. */\n showCloseButton?: boolean\n /** Close when the backdrop (outside the dialog) is clicked. Defaults to `true`. */\n closeOnBackdrop?: boolean\n /** Close when Escape is pressed. Defaults to `true`. */\n closeOnEscape?: boolean\n /** Accessible label — used when there's no `title`. */\n ariaLabel?: string\n /** Dialog body. */\n children?: ReactNode\n}\n\n/**\n * A centered, backdrop-dimmed overlay dialog. Portaled to `<body>`, it locks page scroll while open,\n * traps Tab focus inside, restores focus to the previously-focused element on close, and dismisses on\n * close button / backdrop click / Escape (each toggleable). Sizes are `sm`/`md`/`lg` (max-width caps)\n * or `fullScreen`; `scrollBehavior` picks inside-body vs. whole-dialog scrolling. `placement` turns it\n * into a full-height side drawer (`left`/`right`) that slides in from the edge. The header mirrors\n * `Card` — an optional tinted `icon` box + `title` + `description`. Controlled by `open` + `onClose`.\n * The forwarded ref points at the dialog element.\n *\n * @example\n * const { isOpen, open, close } = useDisclosure()\n * <Modal open={isOpen} onClose={close} title=\"Edit\" footer={<Button onClick={close}>Done</Button>}>\n * …\n * </Modal>\n */\nexport const Modal = forwardRef<HTMLDivElement, ModalProps>(function Modal(\n {\n open,\n onClose,\n size = 'md',\n scrollBehavior = 'outside',\n placement = 'center',\n title,\n description,\n icon,\n color = 'accent',\n footer,\n bodyClassName,\n showCloseButton = true,\n closeOnBackdrop = true,\n closeOnEscape = true,\n ariaLabel,\n className,\n style,\n children,\n ...props\n },\n forwardedRef,\n) {\n const t = useT()\n const panelRef = useRef<HTMLDivElement | null>(null)\n const bodyRef = useRef<HTMLDivElement | null>(null)\n const footerRef = useRef<HTMLDivElement | null>(null)\n const titleId = useId()\n const descId = useId()\n\n // portal + scrim + scroll-lock + fade-in + backdrop-dismiss are handled by the shared `<Overlay>`\n\n // focus management: move focus into the dialog on open — prefer a body field (form modals land on\n // their first input), else the first footer action (confirm dialogs land on Cancel/Confirm, not the\n // × button), else any control, else the dialog itself; restore focus to the trigger on close\n useEffect(() => {\n if (!open) return\n const previouslyFocused = document.activeElement as HTMLElement | null\n const target =\n bodyRef.current?.querySelector<HTMLElement>(FOCUSABLE) ??\n footerRef.current?.querySelector<HTMLElement>(FOCUSABLE) ??\n panelRef.current?.querySelector<HTMLElement>(FOCUSABLE) ??\n panelRef.current\n // preventScroll so opening an `outside`-scroll modal doesn't jump the overlay to a below-fold control\n target?.focus({ preventScroll: true })\n // only restore if the element is still mounted (it may have unmounted while the modal was open)\n return () => {\n if (previouslyFocused?.isConnected) previouslyFocused.focus?.()\n }\n }, [open])\n\n // merge the panel ref (positioning/focus) with the forwarded ref (consumer access)\n const setPanelRef = (node: HTMLDivElement | null) => {\n panelRef.current = node\n if (typeof forwardedRef === 'function') forwardedRef(node)\n else if (forwardedRef) forwardedRef.current = node\n }\n\n // trap Tab within the dialog so focus can't strand on the locked page behind it (Escape + backdrop\n // dismissal live in `<Overlay>`; this fires after the overlay's own handler)\n const handleTabTrap = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Tab') return\n const panel = panelRef.current\n if (!panel) return\n const focusables = [...panel.querySelectorAll<HTMLElement>(FOCUSABLE)].filter(\n (el) => el.offsetParent !== null || el === document.activeElement,\n )\n if (focusables.length === 0) {\n event.preventDefault()\n panel.focus()\n return\n }\n const first = focusables[0]\n const last = focusables[focusables.length - 1]\n const active = document.activeElement\n if (event.shiftKey && (active === first || active === panel)) {\n event.preventDefault()\n last.focus()\n } else if (!event.shiftKey && active === last) {\n event.preventDefault()\n first.focus()\n }\n }\n\n if (!open) return null\n\n // a side drawer (left/right) is always full-height with the body scrolling inside (header/footer pinned)\n const isDrawer = placement !== 'center'\n\n const renderedIcon =\n icon == null ? null : typeof icon === 'string' && ICON_NAME_SET.has(icon) ? (\n <Icon name={icon as IconName} />\n ) : (\n icon\n )\n\n const hasHeader = title != null || description != null || renderedIcon != null || showCloseButton\n // a divider sets the header apart from the body/footer, like Card\n const headerDivided = children != null || footer != null\n\n return (\n <Overlay\n open={open}\n onClose={onClose}\n closeOnBackdrop={closeOnBackdrop}\n closeOnEscape={closeOnEscape}\n onKeyDown={handleTabTrap}\n className={styles.overlay}\n data-size={size}\n data-placement={placement}\n data-scroll={isDrawer ? 'inside' : scrollBehavior}\n >\n <div\n ref={setPanelRef}\n className={clsx(styles.modal, styles[size], className)}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={title != null ? titleId : undefined}\n aria-label={title == null ? ariaLabel : undefined}\n aria-describedby={description != null ? descId : undefined}\n tabIndex={-1}\n style={style as CSSProperties}\n {...props}\n >\n {hasHeader && (\n <div className={clsx(styles.header, headerDivided && styles.headerDivided)}>\n <div className={styles.headerMain}>\n {renderedIcon != null && (\n <IconButton\n variant=\"filled\"\n size=\"sm\"\n color={color}\n nonClickable\n aria-hidden\n className={styles.icon}\n >\n {renderedIcon}\n </IconButton>\n )}\n {(title != null || description != null) && (\n <div className={styles.headerText}>\n {title != null && (\n <div id={titleId} className={styles.title}>\n {title}\n </div>\n )}\n {description != null && (\n <div id={descId} className={styles.subtitle}>\n {description}\n </div>\n )}\n </div>\n )}\n </div>\n {showCloseButton && (\n <IconButton\n variant=\"filled\"\n color=\"primary\"\n size=\"sm\"\n className={styles.close}\n aria-label={t('common.close')}\n onClick={onClose}\n >\n <Icon name=\"Close\" />\n </IconButton>\n )}\n </div>\n )}\n {children != null && (\n <div ref={bodyRef} className={clsx(styles.body, bodyClassName)}>\n {children}\n </div>\n )}\n {footer != null && (\n <div ref={footerRef} className={styles.footer}>\n {footer}\n </div>\n )}\n </div>\n </Overlay>\n )\n})\n"],"names":["Overlay","forwardRef","open","onClose","closeOnBackdrop","closeOnEscape","lockScroll","dim","className","style","children","onKeyDown","onMouseDown","onClick","props","ref","mouseDownTarget","useRef","visible","setVisible","useState","useLockBodyScroll","useEffect","raf","handleKeyDown","event","handleMouseDown","handleClick","createPortal","jsx","clsx","styles","ICON_NAME_SET","ICON_NAMES","FOCUSABLE","Modal","size","scrollBehavior","placement","title","description","icon","color","footer","bodyClassName","showCloseButton","ariaLabel","forwardedRef","useT","panelRef","bodyRef","footerRef","titleId","useId","descId","previouslyFocused","target","_a","_b","_c","setPanelRef","node","handleTabTrap","panel","focusables","el","first","last","active","isDrawer","renderedIcon","Icon","hasHeader","headerDivided","jsxs","IconButton"],"mappings":"oVA4CaA,EAAUC,EAAAA,WAAyC,SAC9D,CACE,KAAAC,EACA,QAAAC,EACA,gBAAAC,EAAkB,GAClB,cAAAC,EAAgB,GAChB,WAAAC,EAAa,GACb,IAAAC,EACA,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,UAAAC,EACA,YAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAkBC,EAAAA,OAA2B,IAAI,EACjD,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAS,EAAK,EAE5CC,EAAAA,kBAAkBnB,GAAQI,CAAU,EAGpCgB,EAAAA,UAAU,IAAM,CACd,GAAI,CAACpB,EAAM,CACTiB,EAAW,EAAK,EAChB,MACF,CACA,MAAMI,EAAM,sBAAsB,IAAMJ,EAAW,EAAI,CAAC,EACxD,MAAO,IAAM,qBAAqBI,CAAG,CACvC,EAAG,CAACrB,CAAI,CAAC,EAET,MAAMsB,EAAiBC,GAAyC,CAC1DA,EAAM,MAAQ,WAGhBA,EAAM,gBAAA,EACFpB,IAAeF,GAAA,MAAAA,MAErBQ,GAAA,MAAAA,EAAYc,EACd,EAGMC,EAAmBD,GAAsC,CAC7DT,EAAgB,QAAUS,EAAM,OAChCb,GAAA,MAAAA,EAAca,EAChB,EACME,EAAeF,GAAsC,CAEvDrB,GACAqB,EAAM,SAAWA,EAAM,eACvBT,EAAgB,UAAYS,EAAM,gBAElCtB,GAAA,MAAAA,KAEFU,GAAA,MAAAA,EAAUY,EACZ,EAEA,MAAI,CAACvB,GAAQ,OAAO,SAAa,IAAoB,KAE9C0B,EAAAA,aACLC,EAAAA,IAAC,MAAA,CACC,IAAAd,EACA,UAAWe,EAAAA,KAAKC,EAAO,QAASvB,CAAS,EACzC,YAAWU,EAAU,OAAS,QAC9B,MAAOX,GAAO,KAAQ,CAAE,mBAAoBA,EAAK,GAAGE,GAA4BA,EAChF,UAAWe,EACX,YAAaE,EACb,QAASC,EACR,GAAGb,EAEH,SAAAJ,CAAA,CAAA,EAEH,SAAS,IAAA,CAEb,CAAC,ghBClGKsB,GAAgB,IAAI,IAAYC,YAAU,EAK1CC,EACJ,iPA6DWC,GAAQlC,EAAAA,WAAuC,SAC1D,CACE,KAAAC,EACA,QAAAC,EACA,KAAAiC,EAAO,KACP,eAAAC,EAAiB,UACjB,UAAAC,EAAY,SACZ,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,MAAAC,EAAQ,SACR,OAAAC,EACA,cAAAC,EACA,gBAAAC,EAAkB,GAClB,gBAAAzC,EAAkB,GAClB,cAAAC,EAAgB,GAChB,UAAAyC,EACA,UAAAtC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGI,CACL,EACAiC,EACA,CACA,MAAM,EAAIC,EAAAA,KAAA,EACJC,EAAWhC,EAAAA,OAA8B,IAAI,EAC7CiC,EAAUjC,EAAAA,OAA8B,IAAI,EAC5CkC,EAAYlC,EAAAA,OAA8B,IAAI,EAC9CmC,EAAUC,EAAAA,MAAA,EACVC,EAASD,EAAAA,MAAA,EAOf/B,EAAAA,UAAU,IAAM,WACd,GAAI,CAACpB,EAAM,OACX,MAAMqD,EAAoB,SAAS,cAC7BC,IACJC,EAAAP,EAAQ,UAAR,YAAAO,EAAiB,cAA2BvB,OAC5CwB,EAAAP,EAAU,UAAV,YAAAO,EAAmB,cAA2BxB,OAC9CyB,EAAAV,EAAS,UAAT,YAAAU,EAAkB,cAA2BzB,KAC7Ce,EAAS,QAEX,OAAAO,GAAA,MAAAA,EAAQ,MAAM,CAAE,cAAe,EAAA,GAExB,IAAM,OACPD,GAAA,MAAAA,EAAmB,eAAaE,EAAAF,EAAkB,QAAlB,MAAAE,EAAA,KAAAF,GACtC,CACF,EAAG,CAACrD,CAAI,CAAC,EAGT,MAAM0D,EAAeC,GAAgC,CACnDZ,EAAS,QAAUY,EACf,OAAOd,GAAiB,WAAYA,EAAac,CAAI,EAChDd,MAA2B,QAAUc,EAChD,EAIMC,EAAiBrC,GAAyC,CAC9D,GAAIA,EAAM,MAAQ,MAAO,OACzB,MAAMsC,EAAQd,EAAS,QACvB,GAAI,CAACc,EAAO,OACZ,MAAMC,EAAa,CAAC,GAAGD,EAAM,iBAA8B7B,CAAS,CAAC,EAAE,OACpE+B,GAAOA,EAAG,eAAiB,MAAQA,IAAO,SAAS,aAAA,EAEtD,GAAID,EAAW,SAAW,EAAG,CAC3BvC,EAAM,eAAA,EACNsC,EAAM,MAAA,EACN,MACF,CACA,MAAMG,EAAQF,EAAW,CAAC,EACpBG,EAAOH,EAAWA,EAAW,OAAS,CAAC,EACvCI,EAAS,SAAS,cACpB3C,EAAM,WAAa2C,IAAWF,GAASE,IAAWL,IACpDtC,EAAM,eAAA,EACN0C,EAAK,MAAA,GACI,CAAC1C,EAAM,UAAY2C,IAAWD,IACvC1C,EAAM,eAAA,EACNyC,EAAM,MAAA,EAEV,EAEA,GAAI,CAAChE,EAAM,OAAO,KAGlB,MAAMmE,EAAW/B,IAAc,SAEzBgC,EACJ7B,GAAQ,KAAO,KAAO,OAAOA,GAAS,UAAYT,GAAc,IAAIS,CAAI,EACtEZ,EAAAA,IAAC0C,EAAAA,KAAA,CAAK,KAAM9B,EAAkB,EAE9BA,EAGE+B,EAAYjC,GAAS,MAAQC,GAAe,MAAQ8B,GAAgB,MAAQzB,EAE5E4B,EAAgB/D,GAAY,MAAQiC,GAAU,KAEpD,OACEd,EAAAA,IAAC7B,EAAA,CACC,KAAAE,EACA,QAAAC,EACA,gBAAAC,EACA,cAAAC,EACA,UAAWyD,EACX,UAAW/B,EAAO,QAClB,YAAWK,EACX,iBAAgBE,EAChB,cAAa+B,EAAW,SAAWhC,EAEnC,SAAAqC,EAAAA,KAAC,MAAA,CACC,IAAKd,EACL,UAAW9B,EAAAA,KAAKC,EAAO,MAAOA,EAAOK,CAAI,EAAG5B,CAAS,EACrD,KAAK,SACL,aAAW,OACX,kBAAiB+B,GAAS,KAAOa,EAAU,OAC3C,aAAYb,GAAS,KAAOO,EAAY,OACxC,mBAAkBN,GAAe,KAAOc,EAAS,OACjD,SAAU,GACV,MAAA7C,EACC,GAAGK,EAEH,SAAA,CAAA0D,GACCE,EAAAA,KAAC,OAAI,UAAW5C,EAAAA,KAAKC,EAAO,OAAQ0C,GAAiB1C,EAAO,aAAa,EACvE,SAAA,CAAA2C,EAAAA,KAAC,MAAA,CAAI,UAAW3C,EAAO,WACpB,SAAA,CAAAuC,GAAgB,MACfzC,EAAAA,IAAC8C,EAAAA,WAAA,CACC,QAAQ,SACR,KAAK,KACL,MAAAjC,EACA,aAAY,GACZ,cAAW,GACX,UAAWX,EAAO,KAEjB,SAAAuC,CAAA,CAAA,GAGH/B,GAAS,MAAQC,GAAe,cAC/B,MAAA,CAAI,UAAWT,EAAO,WACpB,SAAA,CAAAQ,GAAS,YACP,MAAA,CAAI,GAAIa,EAAS,UAAWrB,EAAO,MACjC,SAAAQ,CAAA,CACH,EAEDC,GAAe,MACdX,MAAC,MAAA,CAAI,GAAIyB,EAAQ,UAAWvB,EAAO,SAChC,SAAAS,CAAA,CACH,CAAA,CAAA,CAEJ,CAAA,EAEJ,EACCK,GACChB,EAAAA,IAAC8C,EAAAA,WAAA,CACC,QAAQ,SACR,MAAM,UACN,KAAK,KACL,UAAW5C,EAAO,MAClB,aAAY,EAAE,cAAc,EAC5B,QAAS5B,EAET,SAAA0B,EAAAA,IAAC0C,EAAAA,KAAA,CAAK,KAAK,OAAA,CAAQ,CAAA,CAAA,CACrB,EAEJ,EAED7D,GAAY,MACXmB,EAAAA,IAAC,MAAA,CAAI,IAAKqB,EAAS,UAAWpB,EAAAA,KAAKC,EAAO,KAAMa,CAAa,EAC1D,SAAAlC,CAAA,CACH,EAEDiC,GAAU,MACTd,MAAC,MAAA,CAAI,IAAKsB,EAAW,UAAWpB,EAAO,OACpC,SAAAY,CAAA,CACH,CAAA,CAAA,CAAA,CAEJ,CAAA,CAGN,CAAC"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsx as a, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V, useRef as E, useState as Z, useEffect as F, useId as H } from "react";
|
|
3
|
+
import { clsx as D } from "clsx";
|
|
4
|
+
import { a as w } from "./names-r21QPjcU.js";
|
|
5
|
+
import { I as K } from "./Icon-DaTvzLBu.js";
|
|
6
|
+
import { I as U } from "./IconButton-Dq17Fekm.js";
|
|
7
|
+
import { createPortal as C } from "react-dom";
|
|
8
|
+
import { u as ee } from "./useLockBodyScroll-DwBILLPK.js";
|
|
9
|
+
import { a as te } from "./ConfigProvider-B_RSn9bb.js";
|
|
10
|
+
const le = "_overlay_gwv2a_6", ae = {
|
|
11
|
+
overlay: le
|
|
12
|
+
}, re = V(function({
|
|
13
|
+
open: r,
|
|
14
|
+
onClose: n,
|
|
15
|
+
closeOnBackdrop: v = !0,
|
|
16
|
+
closeOnEscape: M = !0,
|
|
17
|
+
lockScroll: N = !0,
|
|
18
|
+
dim: s,
|
|
19
|
+
className: i,
|
|
20
|
+
style: c,
|
|
21
|
+
children: A,
|
|
22
|
+
onKeyDown: d,
|
|
23
|
+
onMouseDown: h,
|
|
24
|
+
onClick: f,
|
|
25
|
+
...O
|
|
26
|
+
}, q) {
|
|
27
|
+
const S = E(null), [P, g] = Z(!1);
|
|
28
|
+
ee(r && N), F(() => {
|
|
29
|
+
if (!r) {
|
|
30
|
+
g(!1);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const t = requestAnimationFrame(() => g(!0));
|
|
34
|
+
return () => cancelAnimationFrame(t);
|
|
35
|
+
}, [r]);
|
|
36
|
+
const b = (t) => {
|
|
37
|
+
t.key === "Escape" && (t.stopPropagation(), M && (n == null || n())), d == null || d(t);
|
|
38
|
+
}, k = (t) => {
|
|
39
|
+
S.current = t.target, h == null || h(t);
|
|
40
|
+
}, m = (t) => {
|
|
41
|
+
v && t.target === t.currentTarget && S.current === t.currentTarget && (n == null || n()), f == null || f(t);
|
|
42
|
+
};
|
|
43
|
+
return !r || typeof document > "u" ? null : C(
|
|
44
|
+
/* @__PURE__ */ a(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
ref: q,
|
|
48
|
+
className: D(ae.overlay, i),
|
|
49
|
+
"data-open": P ? "true" : "false",
|
|
50
|
+
style: s != null ? { "--tz-overlay-dim": s, ...c } : c,
|
|
51
|
+
onKeyDown: b,
|
|
52
|
+
onMouseDown: k,
|
|
53
|
+
onClick: m,
|
|
54
|
+
...O,
|
|
55
|
+
children: A
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
document.body
|
|
59
|
+
);
|
|
60
|
+
}), ne = "_overlay_1lotx_3", se = "_modal_1lotx_25", ce = "_sm_1lotx_48", oe = "_md_1lotx_51", ie = "_lg_1lotx_54", de = "_fullScreen_1lotx_57", ue = "_header_1lotx_74", fe = "_headerDivided_1lotx_83", me = "_headerMain_1lotx_86", _e = "_icon_1lotx_93", he = "_headerText_1lotx_96", be = "_title_1lotx_103", xe = "_subtitle_1lotx_115", ye = "_close_1lotx_127", ve = "_body_1lotx_132", Ne = "_footer_1lotx_143", l = {
|
|
61
|
+
overlay: ne,
|
|
62
|
+
modal: se,
|
|
63
|
+
sm: ce,
|
|
64
|
+
md: oe,
|
|
65
|
+
lg: ie,
|
|
66
|
+
fullScreen: de,
|
|
67
|
+
header: ue,
|
|
68
|
+
headerDivided: fe,
|
|
69
|
+
headerMain: me,
|
|
70
|
+
icon: _e,
|
|
71
|
+
headerText: he,
|
|
72
|
+
title: be,
|
|
73
|
+
subtitle: xe,
|
|
74
|
+
close: ye,
|
|
75
|
+
body: ve,
|
|
76
|
+
footer: Ne
|
|
77
|
+
}, Se = new Set(w), I = 'a[href]:not([tabindex="-1"]), button:not(:disabled):not([tabindex="-1"]), textarea:not(:disabled):not([tabindex="-1"]), input:not(:disabled):not([tabindex="-1"]), select:not(:disabled):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', qe = V(function({
|
|
78
|
+
open: r,
|
|
79
|
+
onClose: n,
|
|
80
|
+
size: v = "md",
|
|
81
|
+
scrollBehavior: M = "outside",
|
|
82
|
+
placement: N = "center",
|
|
83
|
+
title: s,
|
|
84
|
+
description: i,
|
|
85
|
+
icon: c,
|
|
86
|
+
color: A = "accent",
|
|
87
|
+
footer: d,
|
|
88
|
+
bodyClassName: h,
|
|
89
|
+
showCloseButton: f = !0,
|
|
90
|
+
closeOnBackdrop: O = !0,
|
|
91
|
+
closeOnEscape: q = !0,
|
|
92
|
+
ariaLabel: S,
|
|
93
|
+
className: P,
|
|
94
|
+
style: g,
|
|
95
|
+
children: b,
|
|
96
|
+
...k
|
|
97
|
+
}, m) {
|
|
98
|
+
const t = te(), p = E(null), R = E(null), j = E(null), B = H(), L = H();
|
|
99
|
+
F(() => {
|
|
100
|
+
var u, x, y;
|
|
101
|
+
if (!r) return;
|
|
102
|
+
const e = document.activeElement, o = ((u = R.current) == null ? void 0 : u.querySelector(I)) ?? ((x = j.current) == null ? void 0 : x.querySelector(I)) ?? ((y = p.current) == null ? void 0 : y.querySelector(I)) ?? p.current;
|
|
103
|
+
return o == null || o.focus({ preventScroll: !0 }), () => {
|
|
104
|
+
var _;
|
|
105
|
+
e != null && e.isConnected && ((_ = e.focus) == null || _.call(e));
|
|
106
|
+
};
|
|
107
|
+
}, [r]);
|
|
108
|
+
const J = (e) => {
|
|
109
|
+
p.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
|
|
110
|
+
}, Q = (e) => {
|
|
111
|
+
if (e.key !== "Tab") return;
|
|
112
|
+
const o = p.current;
|
|
113
|
+
if (!o) return;
|
|
114
|
+
const u = [...o.querySelectorAll(I)].filter(
|
|
115
|
+
($) => $.offsetParent !== null || $ === document.activeElement
|
|
116
|
+
);
|
|
117
|
+
if (u.length === 0) {
|
|
118
|
+
e.preventDefault(), o.focus();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const x = u[0], y = u[u.length - 1], _ = document.activeElement;
|
|
122
|
+
e.shiftKey && (_ === x || _ === o) ? (e.preventDefault(), y.focus()) : !e.shiftKey && _ === y && (e.preventDefault(), x.focus());
|
|
123
|
+
};
|
|
124
|
+
if (!r) return null;
|
|
125
|
+
const W = N !== "center", z = c == null ? null : typeof c == "string" && Se.has(c) ? /* @__PURE__ */ a(K, { name: c }) : c, X = s != null || i != null || z != null || f, Y = b != null || d != null;
|
|
126
|
+
return /* @__PURE__ */ a(
|
|
127
|
+
re,
|
|
128
|
+
{
|
|
129
|
+
open: r,
|
|
130
|
+
onClose: n,
|
|
131
|
+
closeOnBackdrop: O,
|
|
132
|
+
closeOnEscape: q,
|
|
133
|
+
onKeyDown: Q,
|
|
134
|
+
className: l.overlay,
|
|
135
|
+
"data-size": v,
|
|
136
|
+
"data-placement": N,
|
|
137
|
+
"data-scroll": W ? "inside" : M,
|
|
138
|
+
children: /* @__PURE__ */ T(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
ref: J,
|
|
142
|
+
className: D(l.modal, l[v], P),
|
|
143
|
+
role: "dialog",
|
|
144
|
+
"aria-modal": "true",
|
|
145
|
+
"aria-labelledby": s != null ? B : void 0,
|
|
146
|
+
"aria-label": s == null ? S : void 0,
|
|
147
|
+
"aria-describedby": i != null ? L : void 0,
|
|
148
|
+
tabIndex: -1,
|
|
149
|
+
style: g,
|
|
150
|
+
...k,
|
|
151
|
+
children: [
|
|
152
|
+
X && /* @__PURE__ */ T("div", { className: D(l.header, Y && l.headerDivided), children: [
|
|
153
|
+
/* @__PURE__ */ T("div", { className: l.headerMain, children: [
|
|
154
|
+
z != null && /* @__PURE__ */ a(
|
|
155
|
+
U,
|
|
156
|
+
{
|
|
157
|
+
variant: "filled",
|
|
158
|
+
size: "sm",
|
|
159
|
+
color: A,
|
|
160
|
+
nonClickable: !0,
|
|
161
|
+
"aria-hidden": !0,
|
|
162
|
+
className: l.icon,
|
|
163
|
+
children: z
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
(s != null || i != null) && /* @__PURE__ */ T("div", { className: l.headerText, children: [
|
|
167
|
+
s != null && /* @__PURE__ */ a("div", { id: B, className: l.title, children: s }),
|
|
168
|
+
i != null && /* @__PURE__ */ a("div", { id: L, className: l.subtitle, children: i })
|
|
169
|
+
] })
|
|
170
|
+
] }),
|
|
171
|
+
f && /* @__PURE__ */ a(
|
|
172
|
+
U,
|
|
173
|
+
{
|
|
174
|
+
variant: "filled",
|
|
175
|
+
color: "primary",
|
|
176
|
+
size: "sm",
|
|
177
|
+
className: l.close,
|
|
178
|
+
"aria-label": t("common.close"),
|
|
179
|
+
onClick: n,
|
|
180
|
+
children: /* @__PURE__ */ a(K, { name: "Close" })
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] }),
|
|
184
|
+
b != null && /* @__PURE__ */ a("div", { ref: R, className: D(l.body, h), children: b }),
|
|
185
|
+
d != null && /* @__PURE__ */ a("div", { ref: j, className: l.footer, children: d })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
export {
|
|
193
|
+
qe as M,
|
|
194
|
+
re as O
|
|
195
|
+
};
|
|
196
|
+
//# sourceMappingURL=Modal-cz6JIsZn.js.map
|