@techzyapp/ui-library 1.0.31 → 1.0.33
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-CwUHa2us.js +107 -0
- package/dist/AdminRoot-CwUHa2us.js.map +1 -0
- package/dist/AdminRoot-cjP_Ad4r.cjs +2 -0
- package/dist/AdminRoot-cjP_Ad4r.cjs.map +1 -0
- package/dist/{Alert-BM5WOI_u.cjs → Alert-CfjDmLR8.cjs} +2 -2
- package/dist/{Alert-BM5WOI_u.cjs.map → Alert-CfjDmLR8.cjs.map} +1 -1
- package/dist/{Alert-BLqAcEoT.js → Alert-LJDrtkJy.js} +3 -3
- package/dist/{Alert-BLqAcEoT.js.map → Alert-LJDrtkJy.js.map} +1 -1
- package/dist/{Breadcrumbs-Di4-Acfb.cjs → Breadcrumbs-COb2zmDk.cjs} +2 -2
- package/dist/{Breadcrumbs-Di4-Acfb.cjs.map → Breadcrumbs-COb2zmDk.cjs.map} +1 -1
- package/dist/{Breadcrumbs-CzHGbN2c.js → Breadcrumbs-DYeVrOns.js} +3 -3
- package/dist/{Breadcrumbs-CzHGbN2c.js.map → Breadcrumbs-DYeVrOns.js.map} +1 -1
- package/dist/{Button-BQhiJq8e.cjs → Button-BD5wpg-t.cjs} +2 -2
- package/dist/{Button-BQhiJq8e.cjs.map → Button-BD5wpg-t.cjs.map} +1 -1
- package/dist/{Button-9Qcdkw-y.js → Button-PBZnkRNn.js} +2 -2
- package/dist/{Button-9Qcdkw-y.js.map → Button-PBZnkRNn.js.map} +1 -1
- package/dist/{Calendar-dXhLgOUH.cjs → Calendar-842vjtdN.cjs} +2 -2
- package/dist/{Calendar-dXhLgOUH.cjs.map → Calendar-842vjtdN.cjs.map} +1 -1
- package/dist/{Calendar-BB-C0qXO.js → Calendar-Bb5Ekbpr.js} +3 -3
- package/dist/{Calendar-BB-C0qXO.js.map → Calendar-Bb5Ekbpr.js.map} +1 -1
- package/dist/{Card-BERQfyhJ.js → Card-CV_rHego.js} +2 -2
- package/dist/{Card-BERQfyhJ.js.map → Card-CV_rHego.js.map} +1 -1
- package/dist/{Card-DULpoOfj.cjs → Card-DL7XnkOA.cjs} +2 -2
- package/dist/{Card-DULpoOfj.cjs.map → Card-DL7XnkOA.cjs.map} +1 -1
- package/dist/{Chip-BuydTI6V.cjs → Chip-CLPIPC9a.cjs} +2 -2
- package/dist/{Chip-BuydTI6V.cjs.map → Chip-CLPIPC9a.cjs.map} +1 -1
- package/dist/{Chip-DZ5Fz7jx.js → Chip-DdOUVF0Z.js} +2 -2
- package/dist/{Chip-DZ5Fz7jx.js.map → Chip-DdOUVF0Z.js.map} +1 -1
- package/dist/{CodeBlock-BySsTAtY.js → CodeBlock-B35NXZzd.js} +3 -3
- package/dist/{CodeBlock-BySsTAtY.js.map → CodeBlock-B35NXZzd.js.map} +1 -1
- package/dist/{CodeBlock-BPraYPoS.cjs → CodeBlock-C0dbyxcl.cjs} +2 -2
- package/dist/{CodeBlock-BPraYPoS.cjs.map → CodeBlock-C0dbyxcl.cjs.map} +1 -1
- package/dist/{ColorPicker-DJow7m2v.js → ColorPicker-6UraVYFy.js} +3 -3
- package/dist/{ColorPicker-DJow7m2v.js.map → ColorPicker-6UraVYFy.js.map} +1 -1
- package/dist/{ColorPicker-BTBTQD39.cjs → ColorPicker-DmLGKaYF.cjs} +2 -2
- package/dist/{ColorPicker-BTBTQD39.cjs.map → ColorPicker-DmLGKaYF.cjs.map} +1 -1
- package/dist/{ColorPickerPanel-D6agWM6y.js → ColorPickerPanel-DZ-W_wOI.js} +2 -2
- package/dist/{ColorPickerPanel-D6agWM6y.js.map → ColorPickerPanel-DZ-W_wOI.js.map} +1 -1
- package/dist/{ColorPickerPanel-DXIYwUoE.cjs → ColorPickerPanel-WuxwwfCI.cjs} +2 -2
- package/dist/{ColorPickerPanel-DXIYwUoE.cjs.map → ColorPickerPanel-WuxwwfCI.cjs.map} +1 -1
- package/dist/{ColorRamp-Bhj28c_6.js → ColorRamp-CSqzzHZx.js} +2 -2
- package/dist/{ColorRamp-Bhj28c_6.js.map → ColorRamp-CSqzzHZx.js.map} +1 -1
- package/dist/{ColorRamp-B45Rtwgw.cjs → ColorRamp-D_9gsqJl.cjs} +2 -2
- package/dist/{ColorRamp-B45Rtwgw.cjs.map → ColorRamp-D_9gsqJl.cjs.map} +1 -1
- package/dist/ConfigProvider-CVLHPXQm.cjs +2 -0
- package/dist/ConfigProvider-CVLHPXQm.cjs.map +1 -0
- package/dist/ConfigProvider-tvLbKiqu.js +347 -0
- package/dist/ConfigProvider-tvLbKiqu.js.map +1 -0
- package/dist/{CopyButton-Bfte6TJF.cjs → CopyButton-0w4OToIy.cjs} +2 -2
- package/dist/{CopyButton-Bfte6TJF.cjs.map → CopyButton-0w4OToIy.cjs.map} +1 -1
- package/dist/{CopyButton-CBk85MQ7.js → CopyButton-B_mYxcXV.js} +3 -3
- package/dist/{CopyButton-CBk85MQ7.js.map → CopyButton-B_mYxcXV.js.map} +1 -1
- package/dist/{DatePicker-eAzDnO2Y.js → DatePicker-Bt-M87zX.js} +4 -4
- package/dist/{DatePicker-eAzDnO2Y.js.map → DatePicker-Bt-M87zX.js.map} +1 -1
- package/dist/{DatePicker-DBiU4Mb6.cjs → DatePicker-D1uFIm3M.cjs} +2 -2
- package/dist/{DatePicker-DBiU4Mb6.cjs.map → DatePicker-D1uFIm3M.cjs.map} +1 -1
- package/dist/{DateTimePicker-CvaD8IkF.cjs → DateTimePicker-DPt-LDVJ.cjs} +2 -2
- package/dist/{DateTimePicker-CvaD8IkF.cjs.map → DateTimePicker-DPt-LDVJ.cjs.map} +1 -1
- package/dist/{DateTimePicker-M2UBjFVc.js → DateTimePicker-zJUc9crs.js} +7 -7
- package/dist/{DateTimePicker-M2UBjFVc.js.map → DateTimePicker-zJUc9crs.js.map} +1 -1
- package/dist/{DescriptionList-BhsmdtS1.js → DescriptionList-BLx9NfAW.js} +4 -4
- package/dist/{DescriptionList-BhsmdtS1.js.map → DescriptionList-BLx9NfAW.js.map} +1 -1
- package/dist/{DescriptionList-DQHNOTWl.cjs → DescriptionList-CPCbzU9b.cjs} +2 -2
- package/dist/{DescriptionList-DQHNOTWl.cjs.map → DescriptionList-CPCbzU9b.cjs.map} +1 -1
- package/dist/{Dropdown-BbaU1WDC.cjs → Dropdown-CMqWq6J_.cjs} +2 -2
- package/dist/{Dropdown-BbaU1WDC.cjs.map → Dropdown-CMqWq6J_.cjs.map} +1 -1
- package/dist/{Dropdown-BlmbYp1X.js → Dropdown-zlv96RLy.js} +2 -2
- package/dist/{Dropdown-BlmbYp1X.js.map → Dropdown-zlv96RLy.js.map} +1 -1
- package/dist/{EmptyState-2pA3XlOX.js → EmptyState-BEVEGcLx.js} +2 -2
- package/dist/{EmptyState-2pA3XlOX.js.map → EmptyState-BEVEGcLx.js.map} +1 -1
- package/dist/{EmptyState-ByBpy2vN.cjs → EmptyState-C54C0Qwc.cjs} +2 -2
- package/dist/{EmptyState-ByBpy2vN.cjs.map → EmptyState-C54C0Qwc.cjs.map} +1 -1
- package/dist/ErrorBoundary-8iu-mR5Y.cjs +2 -0
- package/dist/ErrorBoundary-8iu-mR5Y.cjs.map +1 -0
- package/dist/ErrorBoundary-BSJL381Y.js +49 -0
- package/dist/ErrorBoundary-BSJL381Y.js.map +1 -0
- package/dist/ErrorState-BXMjBWav.cjs +4 -0
- package/dist/ErrorState-BXMjBWav.cjs.map +1 -0
- package/dist/ErrorState-DKhZ4aJh.js +142 -0
- package/dist/ErrorState-DKhZ4aJh.js.map +1 -0
- package/dist/{FileCard-BYNJVmp0.cjs → FileCard-B3dfdTVN.cjs} +2 -2
- package/dist/{FileCard-BYNJVmp0.cjs.map → FileCard-B3dfdTVN.cjs.map} +1 -1
- package/dist/{FileCard-BNfUAgsF.js → FileCard-R_sB8Qbx.js} +3 -3
- package/dist/{FileCard-BNfUAgsF.js.map → FileCard-R_sB8Qbx.js.map} +1 -1
- package/dist/{FileUploader-DdICa5UC.cjs → FileUploader-4UMy0urx.cjs} +2 -2
- package/dist/{FileUploader-DdICa5UC.cjs.map → FileUploader-4UMy0urx.cjs.map} +1 -1
- package/dist/{FileUploader-TOWwDOSS.js → FileUploader-B55atuxq.js} +5 -5
- package/dist/{FileUploader-TOWwDOSS.js.map → FileUploader-B55atuxq.js.map} +1 -1
- package/dist/{Flag-DXPQ2t8z.cjs → Flag-CFvJHC0u.cjs} +2 -2
- package/dist/{Flag-DXPQ2t8z.cjs.map → Flag-CFvJHC0u.cjs.map} +1 -1
- package/dist/{Flag-DDR6OANA.js → Flag-D7fmMqqy.js} +2 -2
- package/dist/{Flag-DDR6OANA.js.map → Flag-D7fmMqqy.js.map} +1 -1
- package/dist/{FullscreenToggle-DmH1541W.js → FullscreenToggle-CXmPqxJv.js} +3 -3
- package/dist/{FullscreenToggle-DmH1541W.js.map → FullscreenToggle-CXmPqxJv.js.map} +1 -1
- package/dist/{FullscreenToggle-BKo1lDSE.cjs → FullscreenToggle-D7tUPCNI.cjs} +2 -2
- package/dist/{FullscreenToggle-BKo1lDSE.cjs.map → FullscreenToggle-D7tUPCNI.cjs.map} +1 -1
- package/dist/{IconButton-CvIXSFsr.cjs → IconButton-BVrO9TBP.cjs} +2 -2
- package/dist/{IconButton-CvIXSFsr.cjs.map → IconButton-BVrO9TBP.cjs.map} +1 -1
- package/dist/{IconButton-CL_6iMQh.js → IconButton-sC_E_TXd.js} +2 -2
- package/dist/{IconButton-CL_6iMQh.js.map → IconButton-sC_E_TXd.js.map} +1 -1
- package/dist/List-CXHlAI5w.js +38 -0
- package/dist/List-CXHlAI5w.js.map +1 -0
- package/dist/List-DOsh6w-d.cjs +2 -0
- package/dist/List-DOsh6w-d.cjs.map +1 -0
- package/dist/ListItem-CUeIBhOF.cjs +2 -0
- package/dist/ListItem-CUeIBhOF.cjs.map +1 -0
- package/dist/ListItem-ehFB7TUW.js +77 -0
- package/dist/ListItem-ehFB7TUW.js.map +1 -0
- package/dist/{Loader-Czzb450N.js → Loader-ChrouvaR.js} +2 -2
- package/dist/{Loader-Czzb450N.js.map → Loader-ChrouvaR.js.map} +1 -1
- package/dist/{Loader-CI1j71X8.cjs → Loader-DNCEHqZb.cjs} +2 -2
- package/dist/{Loader-CI1j71X8.cjs.map → Loader-DNCEHqZb.cjs.map} +1 -1
- package/dist/LocationPicker-CJ6bCJC4.cjs +2 -0
- package/dist/LocationPicker-CJ6bCJC4.cjs.map +1 -0
- package/dist/LocationPicker-DxiQ27k6.js +781 -0
- package/dist/LocationPicker-DxiQ27k6.js.map +1 -0
- package/dist/{Modal-DPObz0b-.cjs → Modal-BL_XihC8.cjs} +2 -2
- package/dist/{Modal-DPObz0b-.cjs.map → Modal-BL_XihC8.cjs.map} +1 -1
- package/dist/{Modal-DMJMw6kT.js → Modal-Do8pzyMl.js} +3 -3
- package/dist/{Modal-DMJMw6kT.js.map → Modal-Do8pzyMl.js.map} +1 -1
- package/dist/{MultiSelect-BTR6w5Ot.js → MultiSelect-BfsEdXNa.js} +4 -4
- package/dist/{MultiSelect-BTR6w5Ot.js.map → MultiSelect-BfsEdXNa.js.map} +1 -1
- package/dist/{MultiSelect-IDAJ5a5K.cjs → MultiSelect-WS5YNGRD.cjs} +2 -2
- package/dist/{MultiSelect-IDAJ5a5K.cjs.map → MultiSelect-WS5YNGRD.cjs.map} +1 -1
- package/dist/{NumberField-Cg0XEDgW.cjs → NumberField-CxiEfRAi.cjs} +2 -2
- package/dist/{NumberField-Cg0XEDgW.cjs.map → NumberField-CxiEfRAi.cjs.map} +1 -1
- package/dist/{NumberField-DlaW-g3Z.js → NumberField-P68n6q5m.js} +3 -3
- package/dist/{NumberField-DlaW-g3Z.js.map → NumberField-P68n6q5m.js.map} +1 -1
- package/dist/{OtpField-vxQuo-uR.js → OtpField-DjTJH4Kh.js} +2 -2
- package/dist/{OtpField-vxQuo-uR.js.map → OtpField-DjTJH4Kh.js.map} +1 -1
- package/dist/{OtpField-DsedK1nQ.cjs → OtpField-XieJfl1y.cjs} +2 -2
- package/dist/{OtpField-DsedK1nQ.cjs.map → OtpField-XieJfl1y.cjs.map} +1 -1
- package/dist/PageError-ClR7k0Zb.js +69 -0
- package/dist/PageError-ClR7k0Zb.js.map +1 -0
- package/dist/PageError-D7_Q8wz8.cjs +2 -0
- package/dist/PageError-D7_Q8wz8.cjs.map +1 -0
- package/dist/{PageLayout-BPbjTYS3.cjs → PageLayout-DTG83hLL.cjs} +2 -2
- package/dist/{PageLayout-BPbjTYS3.cjs.map → PageLayout-DTG83hLL.cjs.map} +1 -1
- package/dist/{PageLayout-Rk6KSxmn.js → PageLayout-XQ_aQTf5.js} +2 -2
- package/dist/{PageLayout-Rk6KSxmn.js.map → PageLayout-XQ_aQTf5.js.map} +1 -1
- package/dist/PageNotFound-CpwHMTxG.js +24 -0
- package/dist/PageNotFound-CpwHMTxG.js.map +1 -0
- package/dist/PageNotFound-D3wJ4Job.cjs +2 -0
- package/dist/PageNotFound-D3wJ4Job.cjs.map +1 -0
- package/dist/{Pagination-DNGKNQy0.cjs → Pagination-BF8cmQMi.cjs} +2 -2
- package/dist/{Pagination-DNGKNQy0.cjs.map → Pagination-BF8cmQMi.cjs.map} +1 -1
- package/dist/{Pagination-CNdkfXp2.js → Pagination-Df-F9i2o.js} +2 -2
- package/dist/{Pagination-CNdkfXp2.js.map → Pagination-Df-F9i2o.js.map} +1 -1
- package/dist/{PaletteField-BSIF5jI6.cjs → PaletteField-BFRPv7AC.cjs} +2 -2
- package/dist/{PaletteField-BSIF5jI6.cjs.map → PaletteField-BFRPv7AC.cjs.map} +1 -1
- package/dist/{PaletteField-Bp5Fgygh.js → PaletteField-DUu4jz1c.js} +3 -3
- package/dist/{PaletteField-Bp5Fgygh.js.map → PaletteField-DUu4jz1c.js.map} +1 -1
- package/dist/{PhoneField-BdmvslXQ.js → PhoneField-CXIQX_hR.js} +4 -4
- package/dist/{PhoneField-BdmvslXQ.js.map → PhoneField-CXIQX_hR.js.map} +1 -1
- package/dist/{PhoneField-BMhZeZkW.cjs → PhoneField-O5syyH7u.cjs} +2 -2
- package/dist/{PhoneField-BMhZeZkW.cjs.map → PhoneField-O5syyH7u.cjs.map} +1 -1
- package/dist/{Popconfirm-Cyaeybtj.js → Popconfirm-D4J7tlk_.js} +3 -3
- package/dist/{Popconfirm-Cyaeybtj.js.map → Popconfirm-D4J7tlk_.js.map} +1 -1
- package/dist/{Popconfirm-IhlIINtZ.cjs → Popconfirm-bEoOPmZY.cjs} +2 -2
- package/dist/{Popconfirm-IhlIINtZ.cjs.map → Popconfirm-bEoOPmZY.cjs.map} +1 -1
- package/dist/{Progress-T7PLrJ0Y.js → Progress-BxvqmmGS.js} +2 -2
- package/dist/{Progress-T7PLrJ0Y.js.map → Progress-BxvqmmGS.js.map} +1 -1
- package/dist/{Progress-CAY1p06_.cjs → Progress-CqXX0rRp.cjs} +2 -2
- package/dist/{Progress-CAY1p06_.cjs.map → Progress-CqXX0rRp.cjs.map} +1 -1
- package/dist/{RemoveDialog-DdGsqaWV.js → RemoveDialog-DH3eNUxC.js} +5 -5
- package/dist/{RemoveDialog-DdGsqaWV.js.map → RemoveDialog-DH3eNUxC.js.map} +1 -1
- package/dist/{RemoveDialog-D12B4x80.cjs → RemoveDialog-FrieNcjL.cjs} +2 -2
- package/dist/{RemoveDialog-D12B4x80.cjs.map → RemoveDialog-FrieNcjL.cjs.map} +1 -1
- package/dist/{RichTextEditor-DL4y5xVv.js → RichTextEditor-6frB2C5G.js} +9 -9
- package/dist/{RichTextEditor-DL4y5xVv.js.map → RichTextEditor-6frB2C5G.js.map} +1 -1
- package/dist/RichTextEditor-B-C4NPDk.cjs +2 -0
- package/dist/{RichTextEditor-BVXY25sz.cjs.map → RichTextEditor-B-C4NPDk.cjs.map} +1 -1
- package/dist/{RootLayout-BK3t6Mm0.js → RootLayout-C7n79JjM.js} +219 -202
- package/dist/RootLayout-C7n79JjM.js.map +1 -0
- package/dist/RootLayout-CtkpgPGV.cjs +2 -0
- package/dist/RootLayout-CtkpgPGV.cjs.map +1 -0
- package/dist/{Select-DlFDOZtn.cjs → Select-Bjq_p8_e.cjs} +2 -2
- package/dist/{Select-DlFDOZtn.cjs.map → Select-Bjq_p8_e.cjs.map} +1 -1
- package/dist/{Select-tVI_qer3.js → Select-DO3zDQYV.js} +3 -3
- package/dist/{Select-tVI_qer3.js.map → Select-DO3zDQYV.js.map} +1 -1
- package/dist/Sidebar-2oH285Xs.cjs +2 -0
- package/dist/{Sidebar-gB-X4VLX.cjs.map → Sidebar-2oH285Xs.cjs.map} +1 -1
- package/dist/{Sidebar-CjrD3nNp.js → Sidebar-CKbSWc5q.js} +33 -32
- package/dist/{Sidebar-CjrD3nNp.js.map → Sidebar-CKbSWc5q.js.map} +1 -1
- package/dist/{SpeedDial-xQr4JH0x.js → SpeedDial-BZK-z_r9.js} +2 -2
- package/dist/{SpeedDial-xQr4JH0x.js.map → SpeedDial-BZK-z_r9.js.map} +1 -1
- package/dist/{SpeedDial-BIOkkLKO.cjs → SpeedDial-KGf8b4Gq.cjs} +2 -2
- package/dist/{SpeedDial-BIOkkLKO.cjs.map → SpeedDial-KGf8b4Gq.cjs.map} +1 -1
- package/dist/{Stepper-CkYcIc15.js → Stepper-BI3pjWf_.js} +13 -13
- package/dist/{Stepper-CkYcIc15.js.map → Stepper-BI3pjWf_.js.map} +1 -1
- package/dist/{Stepper-CBdhvPoz.cjs → Stepper-s9Vah5R2.cjs} +2 -2
- package/dist/{Stepper-CBdhvPoz.cjs.map → Stepper-s9Vah5R2.cjs.map} +1 -1
- package/dist/Table-CLjLsYYS.cjs +2 -0
- package/dist/Table-CLjLsYYS.cjs.map +1 -0
- package/dist/{Table-CwQKfXGn.js → Table-PsNnKn_j.js} +174 -173
- package/dist/Table-PsNnKn_j.js.map +1 -0
- package/dist/{Tabs-Bztnezt9.js → Tabs-B2WzlRXI.js} +10 -10
- package/dist/{Tabs-Bztnezt9.js.map → Tabs-B2WzlRXI.js.map} +1 -1
- package/dist/{Tabs-651xbRe4.cjs → Tabs-DQoNP0QT.cjs} +2 -2
- package/dist/{Tabs-651xbRe4.cjs.map → Tabs-DQoNP0QT.cjs.map} +1 -1
- package/dist/{TagsField-B7ZARHzD.cjs → TagsField-CLfAAz4N.cjs} +2 -2
- package/dist/{TagsField-B7ZARHzD.cjs.map → TagsField-CLfAAz4N.cjs.map} +1 -1
- package/dist/{TagsField-CdymON69.js → TagsField-pdvQU4zh.js} +4 -4
- package/dist/{TagsField-CdymON69.js.map → TagsField-pdvQU4zh.js.map} +1 -1
- package/dist/{TextField-B22NRQ91.cjs → TextField-CgPfN-4d.cjs} +2 -2
- package/dist/{TextField-B22NRQ91.cjs.map → TextField-CgPfN-4d.cjs.map} +1 -1
- package/dist/{TextField-DkaYK1DI.js → TextField-LONfx4jy.js} +3 -3
- package/dist/{TextField-DkaYK1DI.js.map → TextField-LONfx4jy.js.map} +1 -1
- package/dist/{ThemeToggle-D5dWHQFb.cjs → ThemeToggle-9RBaRALj.cjs} +2 -2
- package/dist/{ThemeToggle-D5dWHQFb.cjs.map → ThemeToggle-9RBaRALj.cjs.map} +1 -1
- package/dist/ThemeToggle-DTkFppOd.js +28 -0
- package/dist/{ThemeToggle-DqzUvcK5.js.map → ThemeToggle-DTkFppOd.js.map} +1 -1
- package/dist/{TimeColumns-BEoHh961.js → TimeColumns-B7af5Cbj.js} +2 -2
- package/dist/{TimeColumns-BEoHh961.js.map → TimeColumns-B7af5Cbj.js.map} +1 -1
- package/dist/{TimeColumns-o2xhvSGE.cjs → TimeColumns-CJ13uf3K.cjs} +2 -2
- package/dist/{TimeColumns-o2xhvSGE.cjs.map → TimeColumns-CJ13uf3K.cjs.map} +1 -1
- package/dist/{TimePicker-DCryZCmh.js → TimePicker-BitZ7wv-.js} +5 -5
- package/dist/{TimePicker-DCryZCmh.js.map → TimePicker-BitZ7wv-.js.map} +1 -1
- package/dist/{TimePicker-CACmHwNn.cjs → TimePicker-Dshko7IJ.cjs} +2 -2
- package/dist/{TimePicker-CACmHwNn.cjs.map → TimePicker-Dshko7IJ.cjs.map} +1 -1
- package/dist/{Toaster-BwREV06e.cjs → Toaster-8ynQTcc0.cjs} +2 -2
- package/dist/{Toaster-BwREV06e.cjs.map → Toaster-8ynQTcc0.cjs.map} +1 -1
- package/dist/{Toaster-DwVLab3k.js → Toaster-CYVETXVZ.js} +2 -2
- package/dist/{Toaster-DwVLab3k.js.map → Toaster-CYVETXVZ.js.map} +1 -1
- package/dist/{TranslatedFields-sio1Qfy7.cjs → TranslatedFields-BKI3jrNd.cjs} +2 -2
- package/dist/{TranslatedFields-sio1Qfy7.cjs.map → TranslatedFields-BKI3jrNd.cjs.map} +1 -1
- package/dist/{TranslatedFields-B0LMXgiu.js → TranslatedFields-dmb-0Yn7.js} +13 -13
- package/dist/{TranslatedFields-B0LMXgiu.js.map → TranslatedFields-dmb-0Yn7.js.map} +1 -1
- package/dist/{UserCard-Dzc4zmPj.cjs → UserCard-ah6K1y0H.cjs} +2 -2
- package/dist/{UserCard-Dzc4zmPj.cjs.map → UserCard-ah6K1y0H.cjs.map} +1 -1
- package/dist/{UserCard-B5FVcJaK.js → UserCard-pEJZqiDF.js} +3 -3
- package/dist/{UserCard-B5FVcJaK.js.map → UserCard-pEJZqiDF.js.map} +1 -1
- package/dist/app/AdminRoot.d.cts +75 -4
- package/dist/app/AdminRoot.d.ts +75 -4
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/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/index.cjs +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Chip/index.cjs +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CodeBlock/index.cjs +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/ColorPicker/index.cjs +1 -1
- package/dist/components/ColorPicker/index.js +1 -1
- package/dist/components/ColorRamp/index.cjs +1 -1
- package/dist/components/ColorRamp/index.js +1 -1
- package/dist/components/CopyButton/index.cjs +1 -1
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateTimePicker/index.cjs +1 -1
- package/dist/components/DateTimePicker/index.js +1 -1
- package/dist/components/DescriptionList/index.cjs +1 -1
- package/dist/components/DescriptionList/index.js +1 -1
- package/dist/components/Dropdown/index.cjs +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/EmptyState/index.cjs +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/ErrorState/ErrorBoundary.d.cts +3 -3
- package/dist/components/ErrorState/ErrorBoundary.d.ts +3 -3
- package/dist/components/ErrorState/ErrorState.d.cts +37 -9
- package/dist/components/ErrorState/ErrorState.d.ts +37 -9
- package/dist/components/ErrorState/errorMessage.d.cts +35 -3
- package/dist/components/ErrorState/errorMessage.d.ts +35 -3
- package/dist/components/ErrorState/index.cjs +1 -1
- package/dist/components/ErrorState/index.d.cts +2 -2
- package/dist/components/ErrorState/index.d.ts +2 -2
- package/dist/components/ErrorState/index.js +15 -10
- package/dist/components/ErrorState/index.js.map +1 -1
- 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/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/index.cjs +1 -1
- package/dist/components/List/index.js +5 -4
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Loader/index.cjs +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/LocationPicker/LocationPicker.d.cts +87 -0
- package/dist/components/LocationPicker/LocationPicker.d.ts +87 -0
- package/dist/components/LocationPicker/PlaceSearch.d.cts +20 -0
- package/dist/components/LocationPicker/PlaceSearch.d.ts +20 -0
- package/dist/components/LocationPicker/googleMaps.d.cts +89 -0
- package/dist/components/LocationPicker/googleMaps.d.ts +89 -0
- package/dist/components/LocationPicker/index.cjs +2 -0
- package/dist/components/LocationPicker/index.cjs.map +1 -0
- package/dist/components/LocationPicker/index.d.cts +2 -0
- package/dist/components/LocationPicker/index.d.ts +2 -0
- package/dist/components/LocationPicker/index.js +7 -0
- package/dist/components/LocationPicker/index.js.map +1 -0
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.cts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/index.cjs +1 -1
- package/dist/components/MultiSelect/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 +1 -1
- package/dist/components/OptionMenu/OptionMenu.d.ts +1 -1
- package/dist/components/OtpField/index.cjs +1 -1
- package/dist/components/OtpField/index.js +1 -1
- package/dist/components/PageError/PageError.d.cts +53 -0
- package/dist/components/PageError/PageError.d.ts +53 -0
- package/dist/components/PageError/index.cjs +2 -0
- package/dist/components/PageError/index.cjs.map +1 -0
- package/dist/components/PageError/index.d.cts +2 -0
- package/dist/components/PageError/index.d.ts +2 -0
- package/dist/components/PageError/index.js +6 -0
- package/dist/components/PageError/index.js.map +1 -0
- package/dist/components/PageLayout/index.cjs +1 -1
- package/dist/components/PageLayout/index.js +1 -1
- package/dist/components/PageNotFound/index.cjs +1 -1
- package/dist/components/PageNotFound/index.js +1 -1
- package/dist/components/PageNotFound/useHomeTo.d.cts +10 -0
- package/dist/components/PageNotFound/useHomeTo.d.ts +10 -0
- package/dist/components/Pagination/index.cjs +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/PaletteField/index.cjs +1 -1
- package/dist/components/PaletteField/index.js +1 -1
- package/dist/components/PhoneField/index.cjs +1 -1
- package/dist/components/PhoneField/index.js +1 -1
- package/dist/components/Popconfirm/index.cjs +1 -1
- package/dist/components/Popconfirm/index.js +1 -1
- package/dist/components/Progress/index.cjs +1 -1
- package/dist/components/Progress/index.js +1 -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 +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- 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/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/Table/Table.d.cts +1 -1
- package/dist/components/Table/Table.d.ts +1 -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/TagsField.d.cts +1 -1
- package/dist/components/TagsField/TagsField.d.ts +1 -1
- package/dist/components/TagsField/index.cjs +1 -1
- package/dist/components/TagsField/index.js +1 -1
- package/dist/components/TextField/TextField.d.cts +1 -1
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/index.cjs +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/ThemeToggle/index.cjs +1 -1
- package/dist/components/ThemeToggle/index.js +1 -1
- package/dist/components/TimePicker/index.cjs +1 -1
- package/dist/components/TimePicker/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/TranslatedFields/index.cjs +1 -1
- package/dist/components/TranslatedFields/index.js +1 -1
- package/dist/components/UserCard/UserCard.d.cts +1 -1
- package/dist/components/UserCard/UserCard.d.ts +1 -1
- package/dist/components/UserCard/index.cjs +1 -1
- package/dist/components/UserCard/index.js +1 -1
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/entries/app.cjs +1 -1
- package/dist/entries/app.d.cts +1 -1
- package/dist/entries/app.d.ts +1 -1
- package/dist/entries/app.js +1 -1
- package/dist/entries/components.cjs +1 -1
- package/dist/entries/components.js +172 -161
- package/dist/entries/components.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.d.cts +2 -2
- package/dist/entries/theme.d.ts +2 -2
- package/dist/entries/theme.js +15 -13
- package/dist/errorMessage-C7N4KvUS.cjs +2 -0
- package/dist/errorMessage-C7N4KvUS.cjs.map +1 -0
- package/dist/errorMessage-C83fB2h5.js +98 -0
- package/dist/errorMessage-C83fB2h5.js.map +1 -0
- package/dist/i18n/messages.d.cts +56 -0
- package/dist/i18n/messages.d.ts +56 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +229 -216
- package/dist/index.js.map +1 -1
- package/dist/{messages-DswDgGe2.js → messages-C1eTrGJy.js} +286 -90
- package/dist/messages-C1eTrGJy.js.map +1 -0
- package/dist/messages-DCr7iFmv.cjs +36 -0
- package/dist/messages-DCr7iFmv.cjs.map +1 -0
- package/dist/theme/ConfigProvider.d.cts +39 -3
- package/dist/theme/ConfigProvider.d.ts +39 -3
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/useHomeTo-Cr6Usr_D.cjs +2 -0
- package/dist/useHomeTo-Cr6Usr_D.cjs.map +1 -0
- package/dist/useHomeTo-yTXajO22.js +25 -0
- package/dist/useHomeTo-yTXajO22.js.map +1 -0
- package/dist/useOptionMenu-DHGSbQmS.cjs +2 -0
- package/dist/{useOptionMenu-BYeSUee6.cjs.map → useOptionMenu-DHGSbQmS.cjs.map} +1 -1
- package/dist/{useOptionMenu-DtTvY9EC.js → useOptionMenu-DK0ixg-p.js} +9 -8
- package/dist/{useOptionMenu-DtTvY9EC.js.map → useOptionMenu-DK0ixg-p.js.map} +1 -1
- package/package.json +1 -1
- package/dist/AdminRoot-BYkmCGNx.js +0 -57
- package/dist/AdminRoot-BYkmCGNx.js.map +0 -1
- package/dist/AdminRoot-BbkfFQEn.cjs +0 -2
- package/dist/AdminRoot-BbkfFQEn.cjs.map +0 -1
- package/dist/ConfigProvider-Ct0Pe3Ku.js +0 -335
- package/dist/ConfigProvider-Ct0Pe3Ku.js.map +0 -1
- package/dist/ConfigProvider-CtpfSy1i.cjs +0 -2
- package/dist/ConfigProvider-CtpfSy1i.cjs.map +0 -1
- package/dist/ErrorBoundary-B-37hGZW.js +0 -163
- package/dist/ErrorBoundary-B-37hGZW.js.map +0 -1
- package/dist/ErrorBoundary-gRGxeuM1.cjs +0 -2
- package/dist/ErrorBoundary-gRGxeuM1.cjs.map +0 -1
- package/dist/List-BLPB3-B8.js +0 -107
- package/dist/List-BLPB3-B8.js.map +0 -1
- package/dist/List-ah2PNWeY.cjs +0 -2
- package/dist/List-ah2PNWeY.cjs.map +0 -1
- package/dist/PageNotFound-CBNhKZ9Y.js +0 -39
- package/dist/PageNotFound-CBNhKZ9Y.js.map +0 -1
- package/dist/PageNotFound-PUQ1o9R4.cjs +0 -2
- package/dist/PageNotFound-PUQ1o9R4.cjs.map +0 -1
- package/dist/QueryError-DP22IUnp.cjs +0 -2
- package/dist/QueryError-DP22IUnp.cjs.map +0 -1
- package/dist/QueryError-Dtspj9l4.js +0 -19
- package/dist/QueryError-Dtspj9l4.js.map +0 -1
- package/dist/RichTextEditor-BVXY25sz.cjs +0 -2
- package/dist/RootLayout-BK3t6Mm0.js.map +0 -1
- package/dist/RootLayout-DDuzPlJe.cjs +0 -2
- package/dist/RootLayout-DDuzPlJe.cjs.map +0 -1
- package/dist/Sidebar-gB-X4VLX.cjs +0 -2
- package/dist/Table-CwQKfXGn.js.map +0 -1
- package/dist/Table-Cwxqo7Br.cjs +0 -2
- package/dist/Table-Cwxqo7Br.cjs.map +0 -1
- package/dist/ThemeToggle-DqzUvcK5.js +0 -28
- package/dist/messages-DS38X5W2.cjs +0 -36
- package/dist/messages-DS38X5W2.cjs.map +0 -1
- package/dist/messages-DswDgGe2.js.map +0 -1
- package/dist/useOptionMenu-BYeSUee6.cjs +0 -2
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal (not in the barrel): a development build? Read per call (not at import) so a test can switch modes.
|
|
3
|
+
* Written as the bare `process.env.NODE_ENV` member expression on purpose — that's the exact text bundlers
|
|
4
|
+
* replace (Vite / esbuild / webpack `define`). A `typeof process` guard would NOT be replaced and is `false`
|
|
5
|
+
* in every browser, hiding dev-only UI in development too; with no bundler define and no `process`, the
|
|
6
|
+
* `ReferenceError` lands in the `catch` → production.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDev(): boolean;
|
|
1
9
|
/**
|
|
2
10
|
* Pull a human-readable message out of whatever was thrown / returned — the shapes admin apps actually see:
|
|
3
11
|
*
|
|
@@ -19,8 +27,32 @@ export declare function getErrorDetails(error: unknown): string | undefined;
|
|
|
19
27
|
*/
|
|
20
28
|
export declare function getErrorTraceId(error: unknown): string | undefined;
|
|
21
29
|
/**
|
|
22
|
-
* Per-field validation messages of a `400` — `{ field: 'message' }`.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
30
|
+
* Per-field validation messages of a `400` — `{ field: 'message' }`. Tolerant of the shapes apps actually have:
|
|
31
|
+
*
|
|
32
|
+
* - `error.fieldErrors` — an object (`{ field: message }`), **a method returning one** (an app `ApiError`
|
|
33
|
+
* exposing `fieldErrors()`), or an array of `{ field, message }`;
|
|
34
|
+
* - `error.details` — an array of `{ field, message }` (a common response-envelope shape);
|
|
35
|
+
* - axios-style `error.response.data.errors` — an object (ASP.NET: a string **or** an array of strings per
|
|
36
|
+
* field; the first string wins) or an array of `{ field, message }`.
|
|
37
|
+
*
|
|
38
|
+
* In a list the first message per field wins. `undefined` when there are none.
|
|
25
39
|
*/
|
|
26
40
|
export declare function getErrorFieldErrors(error: unknown): Record<string, string> | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* A field key as UI text: the last segment of a dotted path, split on camelCase / snake_case / kebab-case and
|
|
43
|
+
* Title Cased — `newPassword` / `NewPassword` / `new_password` → `"New Password"`, `address.zipCode` → `"Zip
|
|
44
|
+
* Code"`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function humanizeField(key: string): string;
|
|
47
|
+
/** The HTTP status on an error — `error.status` or axios-style `error.response.status` — when it's a number. */
|
|
48
|
+
export declare function getErrorStatus(error: unknown): number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the error came back **from the server** (a `traceId` or a numeric status other than `0`) — such a
|
|
51
|
+
* message is written for people. A render crash's message ("Cannot read properties of undefined") isn't.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isServerError(error: unknown): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the request **never got a response** — only when the error says so explicitly: a `status` of `0`, or
|
|
56
|
+
* a network error code (`'network_error'`, or axios' `'ERR_NETWORK'`). No guessing from messages.
|
|
57
|
+
*/
|
|
58
|
+
export declare function isNetworkError(error: unknown): boolean;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal (not in the barrel): a development build? Read per call (not at import) so a test can switch modes.
|
|
3
|
+
* Written as the bare `process.env.NODE_ENV` member expression on purpose — that's the exact text bundlers
|
|
4
|
+
* replace (Vite / esbuild / webpack `define`). A `typeof process` guard would NOT be replaced and is `false`
|
|
5
|
+
* in every browser, hiding dev-only UI in development too; with no bundler define and no `process`, the
|
|
6
|
+
* `ReferenceError` lands in the `catch` → production.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDev(): boolean;
|
|
1
9
|
/**
|
|
2
10
|
* Pull a human-readable message out of whatever was thrown / returned — the shapes admin apps actually see:
|
|
3
11
|
*
|
|
@@ -19,8 +27,32 @@ export declare function getErrorDetails(error: unknown): string | undefined;
|
|
|
19
27
|
*/
|
|
20
28
|
export declare function getErrorTraceId(error: unknown): string | undefined;
|
|
21
29
|
/**
|
|
22
|
-
* Per-field validation messages of a `400` — `{ field: 'message' }`.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
30
|
+
* Per-field validation messages of a `400` — `{ field: 'message' }`. Tolerant of the shapes apps actually have:
|
|
31
|
+
*
|
|
32
|
+
* - `error.fieldErrors` — an object (`{ field: message }`), **a method returning one** (an app `ApiError`
|
|
33
|
+
* exposing `fieldErrors()`), or an array of `{ field, message }`;
|
|
34
|
+
* - `error.details` — an array of `{ field, message }` (a common response-envelope shape);
|
|
35
|
+
* - axios-style `error.response.data.errors` — an object (ASP.NET: a string **or** an array of strings per
|
|
36
|
+
* field; the first string wins) or an array of `{ field, message }`.
|
|
37
|
+
*
|
|
38
|
+
* In a list the first message per field wins. `undefined` when there are none.
|
|
25
39
|
*/
|
|
26
40
|
export declare function getErrorFieldErrors(error: unknown): Record<string, string> | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* A field key as UI text: the last segment of a dotted path, split on camelCase / snake_case / kebab-case and
|
|
43
|
+
* Title Cased — `newPassword` / `NewPassword` / `new_password` → `"New Password"`, `address.zipCode` → `"Zip
|
|
44
|
+
* Code"`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function humanizeField(key: string): string;
|
|
47
|
+
/** The HTTP status on an error — `error.status` or axios-style `error.response.status` — when it's a number. */
|
|
48
|
+
export declare function getErrorStatus(error: unknown): number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the error came back **from the server** (a `traceId` or a numeric status other than `0`) — such a
|
|
51
|
+
* message is written for people. A render crash's message ("Cannot read properties of undefined") isn't.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isServerError(error: unknown): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the request **never got a response** — only when the error says so explicitly: a `status` of `0`, or
|
|
56
|
+
* a network error code (`'network_error'`, or axios' `'ERR_NETWORK'`). No guessing from messages.
|
|
57
|
+
*/
|
|
58
|
+
export declare function isNetworkError(error: unknown): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ErrorState-BXMjBWav.cjs"),o=require("../../ErrorBoundary-8iu-mR5Y.cjs"),r=require("../../errorMessage-C7N4KvUS.cjs");exports.ErrorState=e.ErrorState;exports.default=e.ErrorState;exports.ErrorBoundary=o.ErrorBoundary;exports.QueryError=o.QueryError;exports.getErrorDetails=r.getErrorDetails;exports.getErrorFieldErrors=r.getErrorFieldErrors;exports.getErrorMessage=r.getErrorMessage;exports.getErrorStatus=r.getErrorStatus;exports.getErrorTraceId=r.getErrorTraceId;exports.humanizeField=r.humanizeField;exports.isNetworkError=r.isNetworkError;exports.isServerError=r.isServerError;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ErrorState, ErrorState as default } from './ErrorState';
|
|
2
|
-
export type { ErrorStateProps } from './ErrorState';
|
|
2
|
+
export type { ErrorStateProps, ErrorStateVariant } from './ErrorState';
|
|
3
3
|
export { QueryError } from './QueryError';
|
|
4
4
|
export type { QueryErrorProps } from './QueryError';
|
|
5
5
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
6
6
|
export type { ErrorBoundaryProps } from './ErrorBoundary';
|
|
7
|
-
export { getErrorMessage, getErrorDetails, getErrorTraceId, getErrorFieldErrors, } from './errorMessage';
|
|
7
|
+
export { getErrorMessage, getErrorDetails, getErrorTraceId, getErrorFieldErrors, getErrorStatus, humanizeField, isNetworkError, isServerError, } from './errorMessage';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ErrorState, ErrorState as default } from './ErrorState';
|
|
2
|
-
export type { ErrorStateProps } from './ErrorState';
|
|
2
|
+
export type { ErrorStateProps, ErrorStateVariant } from './ErrorState';
|
|
3
3
|
export { QueryError } from './QueryError';
|
|
4
4
|
export type { QueryErrorProps } from './QueryError';
|
|
5
5
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
6
6
|
export type { ErrorBoundaryProps } from './ErrorBoundary';
|
|
7
|
-
export { getErrorMessage, getErrorDetails, getErrorTraceId, getErrorFieldErrors, } from './errorMessage';
|
|
7
|
+
export { getErrorMessage, getErrorDetails, getErrorTraceId, getErrorFieldErrors, getErrorStatus, humanizeField, isNetworkError, isServerError, } from './errorMessage';
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { Q as
|
|
1
|
+
import { E as a, E as o } from "../../ErrorState-DKhZ4aJh.js";
|
|
2
|
+
import { E as t, Q as E } from "../../ErrorBoundary-BSJL381Y.js";
|
|
3
|
+
import { g as i, a as d, b as u, c as f, d as l, h as m, i as p, e as x } from "../../errorMessage-C83fB2h5.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
t as ErrorBoundary,
|
|
6
|
+
a as ErrorState,
|
|
7
|
+
E as QueryError,
|
|
8
|
+
o as default,
|
|
9
|
+
i as getErrorDetails,
|
|
10
|
+
d as getErrorFieldErrors,
|
|
11
|
+
u as getErrorMessage,
|
|
12
|
+
f as getErrorStatus,
|
|
13
|
+
l as getErrorTraceId,
|
|
14
|
+
m as humanizeField,
|
|
15
|
+
p as isNetworkError,
|
|
16
|
+
x as isServerError
|
|
12
17
|
};
|
|
13
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileCard-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileCard-B3dfdTVN.cjs");exports.FileCard=e.FileCard;exports.default=e.FileCard;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileUploader-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileUploader-4UMy0urx.cjs");exports.FileUploader=e.FileUploader;exports.default=e.FileUploader;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Flag-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Flag-CFvJHC0u.cjs");exports.Flag=e.Flag;exports.default=e.Flag;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FullscreenToggle-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FullscreenToggle-D7tUPCNI.cjs");exports.FullscreenToggle=e.FullscreenToggle;exports.default=e.FullscreenToggle;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../IconButton-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../IconButton-BVrO9TBP.cjs");exports.IconButton=t.IconButton;exports.default=t.IconButton;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../List-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../List-DOsh6w-d.cjs"),t=require("../../ListItem-CUeIBhOF.cjs");exports.List=e.List;exports.default=e.List;exports.ListItem=t.ListItem;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { L
|
|
1
|
+
import { L, L as a } from "../../List-CXHlAI5w.js";
|
|
2
|
+
import { L as o } from "../../ListItem-ehFB7TUW.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
L as List,
|
|
5
|
+
o as ListItem,
|
|
6
|
+
a as default
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Loader-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Loader-DNCEHqZb.cjs");exports.Loader=e.Loader;exports.default=e.Loader;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type LocationPickerSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/** A point on the map — the field's value (`null` while no pin is placed). */
|
|
4
|
+
export interface LocationValue {
|
|
5
|
+
/** Latitude (განედი), `-90`…`90`. */
|
|
6
|
+
lat: number;
|
|
7
|
+
/** Longitude (გრძედი), `-180`…`180`. */
|
|
8
|
+
lng: number;
|
|
9
|
+
}
|
|
10
|
+
/** The map view — where it's centred and how far it's zoomed. */
|
|
11
|
+
export interface LocationView {
|
|
12
|
+
center: LocationValue;
|
|
13
|
+
zoom: number;
|
|
14
|
+
}
|
|
15
|
+
/** Tbilisi — the default view when there's no pin. */
|
|
16
|
+
export declare const TBILISI: LocationValue;
|
|
17
|
+
export interface LocationPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'color'> {
|
|
18
|
+
/** Controlled value — `{ lat, lng }`, or `null` for no pin. */
|
|
19
|
+
value?: LocationValue | null;
|
|
20
|
+
/** Initial value for uncontrolled use. */
|
|
21
|
+
defaultValue?: LocationValue | null;
|
|
22
|
+
/** Fires with the new point (map click, pin drag, typed coordinates, "my location") or `null` when cleared. */
|
|
23
|
+
onChange?: (value: LocationValue | null) => void;
|
|
24
|
+
/** Form field name — binds the value to a surrounding `<Form>` (value = `{ lat, lng } | null`). */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** Label above the map. */
|
|
27
|
+
label?: ReactNode;
|
|
28
|
+
/** Helper / validation text under the fields. Adopts the error color while `error`. */
|
|
29
|
+
helperText?: ReactNode;
|
|
30
|
+
/** Error state — red frame + helper. */
|
|
31
|
+
error?: boolean;
|
|
32
|
+
/** Shows a required asterisk after the label. */
|
|
33
|
+
required?: boolean;
|
|
34
|
+
/** Read-only: the map can be looked at but not pinned, the fields are disabled. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Size of the latitude / longitude fields. Defaults to `md`. */
|
|
37
|
+
size?: LocationPickerSize;
|
|
38
|
+
/** Google Maps API key. Defaults to `config.maps.apiKey`. */
|
|
39
|
+
apiKey?: string;
|
|
40
|
+
/** Google Map ID (cloud styling + advanced marker). Defaults to `config.maps.mapId`. */
|
|
41
|
+
mapId?: string;
|
|
42
|
+
/** Controlled map centre. Defaults to the pin, else Tbilisi. */
|
|
43
|
+
center?: LocationValue;
|
|
44
|
+
/** Initial map centre (uncontrolled). Defaults to the value's pin, else Tbilisi. */
|
|
45
|
+
defaultCenter?: LocationValue;
|
|
46
|
+
/** Fires after the map is panned (once it settles) with the new centre. */
|
|
47
|
+
onCenterChange?: (center: LocationValue) => void;
|
|
48
|
+
/** Controlled zoom level. */
|
|
49
|
+
zoom?: number;
|
|
50
|
+
/** Initial zoom level (uncontrolled). Defaults to `12` (a city). */
|
|
51
|
+
defaultZoom?: number;
|
|
52
|
+
/** Fires with the new zoom level. */
|
|
53
|
+
onZoomChange?: (zoom: number) => void;
|
|
54
|
+
/** Height of the map in px. Defaults to `300`. */
|
|
55
|
+
mapHeight?: number;
|
|
56
|
+
/** Show the "my location" button (browser geolocation). Defaults to `true`. */
|
|
57
|
+
locateButton?: boolean;
|
|
58
|
+
/** Decimal places the coordinates are kept to. Defaults to `6` (~0.1 m). */
|
|
59
|
+
precision?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Show an **address / place search** above the map (Google **Places API (New)** — enable it for the key).
|
|
62
|
+
* Picking a result drops the pin there and moves the map to it. Defaults to `false`.
|
|
63
|
+
*/
|
|
64
|
+
search?: boolean;
|
|
65
|
+
/** Restrict the search to these regions (ISO 3166-1 alpha-2 codes, e.g. `['ge']`). Default: worldwide. */
|
|
66
|
+
searchRegions?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Look up the **address of the pin** (Google **Geocoding API** — enable it for the key) and show it under the
|
|
69
|
+
* map; reported through `onAddressChange` / `addressName`. A place picked from the search brings its own
|
|
70
|
+
* address (no extra lookup). Defaults to `false`.
|
|
71
|
+
*/
|
|
72
|
+
geocode?: boolean;
|
|
73
|
+
/** Fires with the pin's address after a user change (`null` when there's no pin / no address). */
|
|
74
|
+
onAddressChange?: (address: string | null) => void;
|
|
75
|
+
/** Inside a `<Form>`: the field the pin's address is written to (e.g. `"address"`), alongside the coordinates. */
|
|
76
|
+
addressName?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A location picker: a **Google Map** you click to drop a pin (drag it to adjust), with **latitude / longitude**
|
|
80
|
+
* fields below that stay in sync both ways — pasting `"41.7151, 44.8271"` into either fills both. The value is
|
|
81
|
+
* `{ lat, lng } | null`; binds to a `<Form>` by `name`. The map shows **Tbilisi** by default, doesn't hijack the
|
|
82
|
+
* page scroll (Ctrl / ⌘ + scroll zooms), offers **my location**, **centre on pin** and **remove pin**, and a
|
|
83
|
+
* copyable coordinate pill. Its **view is controllable** (`center` / `zoom` + `onCenterChange` / `onZoomChange`,
|
|
84
|
+
* or `defaultCenter` / `defaultZoom`). The Maps JavaScript API is loaded on demand with the `apiKey` prop or
|
|
85
|
+
* `config.maps.apiKey`; without a key (or if loading fails) the fields keep working and the map says why.
|
|
86
|
+
*/
|
|
87
|
+
export declare const LocationPicker: import("react").ForwardRefExoticComponent<LocationPickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type LocationPickerSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/** A point on the map — the field's value (`null` while no pin is placed). */
|
|
4
|
+
export interface LocationValue {
|
|
5
|
+
/** Latitude (განედი), `-90`…`90`. */
|
|
6
|
+
lat: number;
|
|
7
|
+
/** Longitude (გრძედი), `-180`…`180`. */
|
|
8
|
+
lng: number;
|
|
9
|
+
}
|
|
10
|
+
/** The map view — where it's centred and how far it's zoomed. */
|
|
11
|
+
export interface LocationView {
|
|
12
|
+
center: LocationValue;
|
|
13
|
+
zoom: number;
|
|
14
|
+
}
|
|
15
|
+
/** Tbilisi — the default view when there's no pin. */
|
|
16
|
+
export declare const TBILISI: LocationValue;
|
|
17
|
+
export interface LocationPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'color'> {
|
|
18
|
+
/** Controlled value — `{ lat, lng }`, or `null` for no pin. */
|
|
19
|
+
value?: LocationValue | null;
|
|
20
|
+
/** Initial value for uncontrolled use. */
|
|
21
|
+
defaultValue?: LocationValue | null;
|
|
22
|
+
/** Fires with the new point (map click, pin drag, typed coordinates, "my location") or `null` when cleared. */
|
|
23
|
+
onChange?: (value: LocationValue | null) => void;
|
|
24
|
+
/** Form field name — binds the value to a surrounding `<Form>` (value = `{ lat, lng } | null`). */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** Label above the map. */
|
|
27
|
+
label?: ReactNode;
|
|
28
|
+
/** Helper / validation text under the fields. Adopts the error color while `error`. */
|
|
29
|
+
helperText?: ReactNode;
|
|
30
|
+
/** Error state — red frame + helper. */
|
|
31
|
+
error?: boolean;
|
|
32
|
+
/** Shows a required asterisk after the label. */
|
|
33
|
+
required?: boolean;
|
|
34
|
+
/** Read-only: the map can be looked at but not pinned, the fields are disabled. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Size of the latitude / longitude fields. Defaults to `md`. */
|
|
37
|
+
size?: LocationPickerSize;
|
|
38
|
+
/** Google Maps API key. Defaults to `config.maps.apiKey`. */
|
|
39
|
+
apiKey?: string;
|
|
40
|
+
/** Google Map ID (cloud styling + advanced marker). Defaults to `config.maps.mapId`. */
|
|
41
|
+
mapId?: string;
|
|
42
|
+
/** Controlled map centre. Defaults to the pin, else Tbilisi. */
|
|
43
|
+
center?: LocationValue;
|
|
44
|
+
/** Initial map centre (uncontrolled). Defaults to the value's pin, else Tbilisi. */
|
|
45
|
+
defaultCenter?: LocationValue;
|
|
46
|
+
/** Fires after the map is panned (once it settles) with the new centre. */
|
|
47
|
+
onCenterChange?: (center: LocationValue) => void;
|
|
48
|
+
/** Controlled zoom level. */
|
|
49
|
+
zoom?: number;
|
|
50
|
+
/** Initial zoom level (uncontrolled). Defaults to `12` (a city). */
|
|
51
|
+
defaultZoom?: number;
|
|
52
|
+
/** Fires with the new zoom level. */
|
|
53
|
+
onZoomChange?: (zoom: number) => void;
|
|
54
|
+
/** Height of the map in px. Defaults to `300`. */
|
|
55
|
+
mapHeight?: number;
|
|
56
|
+
/** Show the "my location" button (browser geolocation). Defaults to `true`. */
|
|
57
|
+
locateButton?: boolean;
|
|
58
|
+
/** Decimal places the coordinates are kept to. Defaults to `6` (~0.1 m). */
|
|
59
|
+
precision?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Show an **address / place search** above the map (Google **Places API (New)** — enable it for the key).
|
|
62
|
+
* Picking a result drops the pin there and moves the map to it. Defaults to `false`.
|
|
63
|
+
*/
|
|
64
|
+
search?: boolean;
|
|
65
|
+
/** Restrict the search to these regions (ISO 3166-1 alpha-2 codes, e.g. `['ge']`). Default: worldwide. */
|
|
66
|
+
searchRegions?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Look up the **address of the pin** (Google **Geocoding API** — enable it for the key) and show it under the
|
|
69
|
+
* map; reported through `onAddressChange` / `addressName`. A place picked from the search brings its own
|
|
70
|
+
* address (no extra lookup). Defaults to `false`.
|
|
71
|
+
*/
|
|
72
|
+
geocode?: boolean;
|
|
73
|
+
/** Fires with the pin's address after a user change (`null` when there's no pin / no address). */
|
|
74
|
+
onAddressChange?: (address: string | null) => void;
|
|
75
|
+
/** Inside a `<Form>`: the field the pin's address is written to (e.g. `"address"`), alongside the coordinates. */
|
|
76
|
+
addressName?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A location picker: a **Google Map** you click to drop a pin (drag it to adjust), with **latitude / longitude**
|
|
80
|
+
* fields below that stay in sync both ways — pasting `"41.7151, 44.8271"` into either fills both. The value is
|
|
81
|
+
* `{ lat, lng } | null`; binds to a `<Form>` by `name`. The map shows **Tbilisi** by default, doesn't hijack the
|
|
82
|
+
* page scroll (Ctrl / ⌘ + scroll zooms), offers **my location**, **centre on pin** and **remove pin**, and a
|
|
83
|
+
* copyable coordinate pill. Its **view is controllable** (`center` / `zoom` + `onCenterChange` / `onZoomChange`,
|
|
84
|
+
* or `defaultCenter` / `defaultZoom`). The Maps JavaScript API is loaded on demand with the `apiKey` prop or
|
|
85
|
+
* `config.maps.apiKey`; without a key (or if loading fails) the fields keep working and the map says why.
|
|
86
|
+
*/
|
|
87
|
+
export declare const LocationPicker: import("react").ForwardRefExoticComponent<LocationPickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GoogleMapsApi, LatLngLiteral, PlaceResult } from './googleMaps';
|
|
2
|
+
export interface PlaceSearchProps {
|
|
3
|
+
api: GoogleMapsApi;
|
|
4
|
+
/** UI language for the suggestions. */
|
|
5
|
+
language?: string;
|
|
6
|
+
/** Bias results towards this point (the map's centre). */
|
|
7
|
+
bias?: () => LatLngLiteral | undefined;
|
|
8
|
+
/** Restrict results to these regions (ISO 3166-1 alpha-2, e.g. `['ge']`). */
|
|
9
|
+
regions?: string[];
|
|
10
|
+
size: 'sm' | 'md' | 'lg';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Fires with the picked place's point + address. */
|
|
13
|
+
onPick: (place: PlaceResult) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The address / place search above the map — our own field + listbox (so it looks and behaves like the rest of
|
|
17
|
+
* the library), fed by Google's Places API (New): debounced suggestions biased to the map centre, keyboard
|
|
18
|
+
* navigation (↑ ↓ Enter Escape), and a pick that resolves the place to a point. Internal to `LocationPicker`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function PlaceSearch({ api, language, bias, regions, size, disabled, onPick, }: PlaceSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GoogleMapsApi, LatLngLiteral, PlaceResult } from './googleMaps';
|
|
2
|
+
export interface PlaceSearchProps {
|
|
3
|
+
api: GoogleMapsApi;
|
|
4
|
+
/** UI language for the suggestions. */
|
|
5
|
+
language?: string;
|
|
6
|
+
/** Bias results towards this point (the map's centre). */
|
|
7
|
+
bias?: () => LatLngLiteral | undefined;
|
|
8
|
+
/** Restrict results to these regions (ISO 3166-1 alpha-2, e.g. `['ge']`). */
|
|
9
|
+
regions?: string[];
|
|
10
|
+
size: 'sm' | 'md' | 'lg';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Fires with the picked place's point + address. */
|
|
13
|
+
onPick: (place: PlaceResult) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The address / place search above the map — our own field + listbox (so it looks and behaves like the rest of
|
|
17
|
+
* the library), fed by Google's Places API (New): debounced suggestions biased to the map centre, keyboard
|
|
18
|
+
* navigation (↑ ↓ Enter Escape), and a pick that resolves the place to a point. Internal to `LocationPicker`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function PlaceSearch({ api, language, bias, regions, size, disabled, onPick, }: PlaceSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export interface LatLngLiteral {
|
|
2
|
+
lat: number;
|
|
3
|
+
lng: number;
|
|
4
|
+
}
|
|
5
|
+
export interface MapsLatLng {
|
|
6
|
+
lat(): number;
|
|
7
|
+
lng(): number;
|
|
8
|
+
}
|
|
9
|
+
export interface MapsEventListener {
|
|
10
|
+
remove(): void;
|
|
11
|
+
}
|
|
12
|
+
export interface MapsMouseEvent {
|
|
13
|
+
latLng: MapsLatLng | null;
|
|
14
|
+
}
|
|
15
|
+
export interface MapsMap {
|
|
16
|
+
setCenter(center: LatLngLiteral): void;
|
|
17
|
+
panTo(center: LatLngLiteral): void;
|
|
18
|
+
setZoom(zoom: number): void;
|
|
19
|
+
getZoom(): number | undefined;
|
|
20
|
+
getCenter(): MapsLatLng | undefined;
|
|
21
|
+
setOptions(options: Record<string, unknown>): void;
|
|
22
|
+
addListener(event: string, handler: (event: MapsMouseEvent) => void): MapsEventListener;
|
|
23
|
+
}
|
|
24
|
+
/** A custom pin image: an SVG string, its rendered size and the anchor (the tip) in that size's px. */
|
|
25
|
+
export interface PinIcon {
|
|
26
|
+
svg: string;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
anchorX: number;
|
|
30
|
+
anchorY: number;
|
|
31
|
+
}
|
|
32
|
+
/** The pin — a classic `Marker` or an `AdvancedMarkerElement`, adapted to one shape. */
|
|
33
|
+
export interface MapsPin {
|
|
34
|
+
setPosition(position: LatLngLiteral | null): void;
|
|
35
|
+
/** Swap the pin image (e.g. a new accent color). */
|
|
36
|
+
setIcon(icon: PinIcon): void;
|
|
37
|
+
setDraggable(draggable: boolean): void;
|
|
38
|
+
onDragEnd(handler: (position: LatLngLiteral) => void): MapsEventListener;
|
|
39
|
+
remove(): void;
|
|
40
|
+
}
|
|
41
|
+
/** One autocomplete suggestion — a place's main text (name / street) and its secondary text (city, country). */
|
|
42
|
+
export interface PlaceSuggestion {
|
|
43
|
+
id: string;
|
|
44
|
+
primary: string;
|
|
45
|
+
secondary?: string;
|
|
46
|
+
}
|
|
47
|
+
/** A picked place, resolved to a point (+ its formatted address when Google has one). */
|
|
48
|
+
export interface PlaceResult {
|
|
49
|
+
location: LatLngLiteral;
|
|
50
|
+
address?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* An address / place search session (Places API (New)). Suggestions share one session token until a place is
|
|
54
|
+
* resolved — that's how Google bills a search as one session, not per keystroke.
|
|
55
|
+
*/
|
|
56
|
+
export interface PlacesSession {
|
|
57
|
+
suggest(input: string, options: {
|
|
58
|
+
language?: string;
|
|
59
|
+
bias?: LatLngLiteral;
|
|
60
|
+
regions?: string[];
|
|
61
|
+
}): Promise<PlaceSuggestion[]>;
|
|
62
|
+
/** Resolve a suggestion to its point + address (ends the session). */
|
|
63
|
+
resolve(id: string): Promise<PlaceResult | null>;
|
|
64
|
+
}
|
|
65
|
+
export interface GoogleMapsApi {
|
|
66
|
+
/** Google's `ColorScheme` value for a mode (the Map ID light / dark option; set when a map is created). */
|
|
67
|
+
colorScheme(mode: 'light' | 'dark'): unknown;
|
|
68
|
+
/** Start an address / place search session (loads the `places` library on first use). */
|
|
69
|
+
createPlacesSession(): PlacesSession;
|
|
70
|
+
/** The formatted address at a point (Geocoding API; loads `geocoding` on first use), or `null`. */
|
|
71
|
+
reverseGeocode(position: LatLngLiteral, language?: string): Promise<string | null>;
|
|
72
|
+
/** Create a map in `element`. */
|
|
73
|
+
createMap(element: HTMLElement, options: Record<string, unknown>): MapsMap;
|
|
74
|
+
/** Create the pin on `map` (an `AdvancedMarkerElement` when the map has a `mapId`). */
|
|
75
|
+
createPin(map: MapsMap, options: {
|
|
76
|
+
position: LatLngLiteral | null;
|
|
77
|
+
advanced: boolean;
|
|
78
|
+
icon?: PinIcon;
|
|
79
|
+
}): MapsPin;
|
|
80
|
+
}
|
|
81
|
+
/** Call `listener` when Google rejects the API key (immediately if it already has). Returns an unsubscribe. */
|
|
82
|
+
export declare function onMapsAuthFailure(listener: () => void): () => void;
|
|
83
|
+
/**
|
|
84
|
+
* Load the Maps JavaScript API (once per page) and return the small adapter `LocationPicker` uses. Reuses an
|
|
85
|
+
* already-present `google.maps` (an app that loads Maps itself, or tests); a failed load can be retried.
|
|
86
|
+
*/
|
|
87
|
+
export declare function loadGoogleMaps(apiKey: string, language?: string): Promise<GoogleMapsApi>;
|
|
88
|
+
/** Test hook: forget the cached loader and any recorded key rejection. */
|
|
89
|
+
export declare function resetGoogleMapsLoader(): void;
|