@techzyapp/ui-library 1.0.31 → 1.0.32
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-BYkmCGNx.js → AdminRoot-B9A4Hoz0.js} +5 -5
- package/dist/{AdminRoot-BYkmCGNx.js.map → AdminRoot-B9A4Hoz0.js.map} +1 -1
- package/dist/{AdminRoot-BbkfFQEn.cjs → AdminRoot-BVUEWczU.cjs} +2 -2
- package/dist/{AdminRoot-BbkfFQEn.cjs.map → AdminRoot-BVUEWczU.cjs.map} +1 -1
- package/dist/{Alert-BLqAcEoT.js → Alert-B7w9xD2p.js} +3 -3
- package/dist/{Alert-BLqAcEoT.js.map → Alert-B7w9xD2p.js.map} +1 -1
- package/dist/{Alert-BM5WOI_u.cjs → Alert-B9l1VhIr.cjs} +2 -2
- package/dist/{Alert-BM5WOI_u.cjs.map → Alert-B9l1VhIr.cjs.map} +1 -1
- package/dist/{Breadcrumbs-Di4-Acfb.cjs → Breadcrumbs-B1JMwCjO.cjs} +2 -2
- package/dist/{Breadcrumbs-Di4-Acfb.cjs.map → Breadcrumbs-B1JMwCjO.cjs.map} +1 -1
- package/dist/{Breadcrumbs-CzHGbN2c.js → Breadcrumbs-Cl1CgKkk.js} +3 -3
- package/dist/{Breadcrumbs-CzHGbN2c.js.map → Breadcrumbs-Cl1CgKkk.js.map} +1 -1
- package/dist/{Button-9Qcdkw-y.js → Button-BJ5Xd10u.js} +2 -2
- package/dist/{Button-9Qcdkw-y.js.map → Button-BJ5Xd10u.js.map} +1 -1
- package/dist/{Button-BQhiJq8e.cjs → Button-BZq1mIUH.cjs} +2 -2
- package/dist/{Button-BQhiJq8e.cjs.map → Button-BZq1mIUH.cjs.map} +1 -1
- package/dist/{Calendar-dXhLgOUH.cjs → Calendar-r-dDXWEp.cjs} +2 -2
- package/dist/{Calendar-dXhLgOUH.cjs.map → Calendar-r-dDXWEp.cjs.map} +1 -1
- package/dist/{Calendar-BB-C0qXO.js → Calendar-rRPnaU9M.js} +3 -3
- package/dist/{Calendar-BB-C0qXO.js.map → Calendar-rRPnaU9M.js.map} +1 -1
- package/dist/{Card-BERQfyhJ.js → Card-Cr3D2bzJ.js} +2 -2
- package/dist/{Card-BERQfyhJ.js.map → Card-Cr3D2bzJ.js.map} +1 -1
- package/dist/{Card-DULpoOfj.cjs → Card-KsczbH5c.cjs} +2 -2
- package/dist/{Card-DULpoOfj.cjs.map → Card-KsczbH5c.cjs.map} +1 -1
- package/dist/{Chip-BuydTI6V.cjs → Chip-BZ3I4Lbe.cjs} +2 -2
- package/dist/{Chip-BuydTI6V.cjs.map → Chip-BZ3I4Lbe.cjs.map} +1 -1
- package/dist/{Chip-DZ5Fz7jx.js → Chip-DEp1zWh1.js} +2 -2
- package/dist/{Chip-DZ5Fz7jx.js.map → Chip-DEp1zWh1.js.map} +1 -1
- package/dist/{CodeBlock-BySsTAtY.js → CodeBlock-CMHqvoBJ.js} +3 -3
- package/dist/{CodeBlock-BySsTAtY.js.map → CodeBlock-CMHqvoBJ.js.map} +1 -1
- package/dist/{CodeBlock-BPraYPoS.cjs → CodeBlock-DIkyeG4S.cjs} +2 -2
- package/dist/{CodeBlock-BPraYPoS.cjs.map → CodeBlock-DIkyeG4S.cjs.map} +1 -1
- package/dist/{ColorPicker-DJow7m2v.js → ColorPicker-5SMyU5oh.js} +3 -3
- package/dist/{ColorPicker-DJow7m2v.js.map → ColorPicker-5SMyU5oh.js.map} +1 -1
- package/dist/{ColorPicker-BTBTQD39.cjs → ColorPicker-B1riGs1z.cjs} +2 -2
- package/dist/{ColorPicker-BTBTQD39.cjs.map → ColorPicker-B1riGs1z.cjs.map} +1 -1
- package/dist/{ColorPickerPanel-D6agWM6y.js → ColorPickerPanel-4Y6oXL7v.js} +2 -2
- package/dist/{ColorPickerPanel-D6agWM6y.js.map → ColorPickerPanel-4Y6oXL7v.js.map} +1 -1
- package/dist/{ColorPickerPanel-DXIYwUoE.cjs → ColorPickerPanel-CzBlh0zw.cjs} +2 -2
- package/dist/{ColorPickerPanel-DXIYwUoE.cjs.map → ColorPickerPanel-CzBlh0zw.cjs.map} +1 -1
- package/dist/{ColorRamp-B45Rtwgw.cjs → ColorRamp-D_h-hp7n.cjs} +2 -2
- package/dist/{ColorRamp-B45Rtwgw.cjs.map → ColorRamp-D_h-hp7n.cjs.map} +1 -1
- package/dist/{ColorRamp-Bhj28c_6.js → ColorRamp-Qc8ZtPDh.js} +2 -2
- package/dist/{ColorRamp-Bhj28c_6.js.map → ColorRamp-Qc8ZtPDh.js.map} +1 -1
- package/dist/ConfigProvider-CzAQf_d_.cjs +2 -0
- package/dist/ConfigProvider-CzAQf_d_.cjs.map +1 -0
- package/dist/ConfigProvider-D2svpXFu.js +347 -0
- package/dist/ConfigProvider-D2svpXFu.js.map +1 -0
- package/dist/{CopyButton-CBk85MQ7.js → CopyButton-BNcW9-KU.js} +3 -3
- package/dist/{CopyButton-CBk85MQ7.js.map → CopyButton-BNcW9-KU.js.map} +1 -1
- package/dist/{CopyButton-Bfte6TJF.cjs → CopyButton-DUtx2-Gi.cjs} +2 -2
- package/dist/{CopyButton-Bfte6TJF.cjs.map → CopyButton-DUtx2-Gi.cjs.map} +1 -1
- package/dist/{DatePicker-eAzDnO2Y.js → DatePicker-D2PyGdec.js} +4 -4
- package/dist/{DatePicker-eAzDnO2Y.js.map → DatePicker-D2PyGdec.js.map} +1 -1
- package/dist/{DatePicker-DBiU4Mb6.cjs → DatePicker-D_PqDvKt.cjs} +2 -2
- package/dist/{DatePicker-DBiU4Mb6.cjs.map → DatePicker-D_PqDvKt.cjs.map} +1 -1
- package/dist/{DateTimePicker-CvaD8IkF.cjs → DateTimePicker-C3Kq5hKE.cjs} +2 -2
- package/dist/{DateTimePicker-CvaD8IkF.cjs.map → DateTimePicker-C3Kq5hKE.cjs.map} +1 -1
- package/dist/{DateTimePicker-M2UBjFVc.js → DateTimePicker-DdXFzqO_.js} +7 -7
- package/dist/{DateTimePicker-M2UBjFVc.js.map → DateTimePicker-DdXFzqO_.js.map} +1 -1
- package/dist/{DescriptionList-DQHNOTWl.cjs → DescriptionList-C7AOcw_2.cjs} +2 -2
- package/dist/{DescriptionList-DQHNOTWl.cjs.map → DescriptionList-C7AOcw_2.cjs.map} +1 -1
- package/dist/{DescriptionList-BhsmdtS1.js → DescriptionList-DxRgKNEJ.js} +4 -4
- package/dist/{DescriptionList-BhsmdtS1.js.map → DescriptionList-DxRgKNEJ.js.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-CvpKSYY4.js} +2 -2
- package/dist/{EmptyState-2pA3XlOX.js.map → EmptyState-CvpKSYY4.js.map} +1 -1
- package/dist/{EmptyState-ByBpy2vN.cjs → EmptyState-ECc6e_En.cjs} +2 -2
- package/dist/{EmptyState-ByBpy2vN.cjs.map → EmptyState-ECc6e_En.cjs.map} +1 -1
- package/dist/{ErrorBoundary-B-37hGZW.js → ErrorBoundary-CJx5E9wJ.js} +5 -5
- package/dist/{ErrorBoundary-B-37hGZW.js.map → ErrorBoundary-CJx5E9wJ.js.map} +1 -1
- package/dist/{ErrorBoundary-gRGxeuM1.cjs → ErrorBoundary-DbKRtdgS.cjs} +2 -2
- package/dist/{ErrorBoundary-gRGxeuM1.cjs.map → ErrorBoundary-DbKRtdgS.cjs.map} +1 -1
- package/dist/{FileCard-BYNJVmp0.cjs → FileCard-Bjqsgi7S.cjs} +2 -2
- package/dist/{FileCard-BYNJVmp0.cjs.map → FileCard-Bjqsgi7S.cjs.map} +1 -1
- package/dist/{FileCard-BNfUAgsF.js → FileCard-D4t0-ms2.js} +3 -3
- package/dist/{FileCard-BNfUAgsF.js.map → FileCard-D4t0-ms2.js.map} +1 -1
- package/dist/{FileUploader-DdICa5UC.cjs → FileUploader-DWM8WrY6.cjs} +2 -2
- package/dist/{FileUploader-DdICa5UC.cjs.map → FileUploader-DWM8WrY6.cjs.map} +1 -1
- package/dist/{FileUploader-TOWwDOSS.js → FileUploader-DdcvZoUb.js} +5 -5
- package/dist/{FileUploader-TOWwDOSS.js.map → FileUploader-DdcvZoUb.js.map} +1 -1
- package/dist/{Flag-DDR6OANA.js → Flag-BLEBMdb-.js} +2 -2
- package/dist/{Flag-DDR6OANA.js.map → Flag-BLEBMdb-.js.map} +1 -1
- package/dist/{Flag-DXPQ2t8z.cjs → Flag-D5rqScYG.cjs} +2 -2
- package/dist/{Flag-DXPQ2t8z.cjs.map → Flag-D5rqScYG.cjs.map} +1 -1
- package/dist/{FullscreenToggle-BKo1lDSE.cjs → FullscreenToggle-CZoc5pYg.cjs} +2 -2
- package/dist/{FullscreenToggle-BKo1lDSE.cjs.map → FullscreenToggle-CZoc5pYg.cjs.map} +1 -1
- package/dist/{FullscreenToggle-DmH1541W.js → FullscreenToggle-DZnKK1Lj.js} +3 -3
- package/dist/{FullscreenToggle-DmH1541W.js.map → FullscreenToggle-DZnKK1Lj.js.map} +1 -1
- package/dist/{IconButton-CL_6iMQh.js → IconButton-CqFgam3J.js} +2 -2
- package/dist/{IconButton-CL_6iMQh.js.map → IconButton-CqFgam3J.js.map} +1 -1
- package/dist/{IconButton-CvIXSFsr.cjs → IconButton-V8tjArlt.cjs} +2 -2
- package/dist/{IconButton-CvIXSFsr.cjs.map → IconButton-V8tjArlt.cjs.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-Bsz0BkGr.js} +2 -2
- package/dist/{Loader-Czzb450N.js.map → Loader-Bsz0BkGr.js.map} +1 -1
- package/dist/{Loader-CI1j71X8.cjs → Loader-CqRaCdzF.cjs} +2 -2
- package/dist/{Loader-CI1j71X8.cjs.map → Loader-CqRaCdzF.cjs.map} +1 -1
- package/dist/LocationPicker-BRGNcTd_.cjs +2 -0
- package/dist/LocationPicker-BRGNcTd_.cjs.map +1 -0
- package/dist/LocationPicker-DtMDpPFZ.js +781 -0
- package/dist/LocationPicker-DtMDpPFZ.js.map +1 -0
- package/dist/{Modal-DPObz0b-.cjs → Modal-CcrqM4kn.cjs} +2 -2
- package/dist/{Modal-DPObz0b-.cjs.map → Modal-CcrqM4kn.cjs.map} +1 -1
- package/dist/{Modal-DMJMw6kT.js → Modal-DCee1a9m.js} +3 -3
- package/dist/{Modal-DMJMw6kT.js.map → Modal-DCee1a9m.js.map} +1 -1
- package/dist/{MultiSelect-IDAJ5a5K.cjs → MultiSelect-BJ-qMpA5.cjs} +2 -2
- package/dist/{MultiSelect-IDAJ5a5K.cjs.map → MultiSelect-BJ-qMpA5.cjs.map} +1 -1
- package/dist/{MultiSelect-BTR6w5Ot.js → MultiSelect-JQ6iKHyI.js} +4 -4
- package/dist/{MultiSelect-BTR6w5Ot.js.map → MultiSelect-JQ6iKHyI.js.map} +1 -1
- package/dist/{NumberField-DlaW-g3Z.js → NumberField-Bf-vDNLy.js} +3 -3
- package/dist/{NumberField-DlaW-g3Z.js.map → NumberField-Bf-vDNLy.js.map} +1 -1
- package/dist/{NumberField-Cg0XEDgW.cjs → NumberField-mZjwZB8E.cjs} +2 -2
- package/dist/{NumberField-Cg0XEDgW.cjs.map → NumberField-mZjwZB8E.cjs.map} +1 -1
- package/dist/{OtpField-vxQuo-uR.js → OtpField-DaAIBp6C.js} +2 -2
- package/dist/{OtpField-vxQuo-uR.js.map → OtpField-DaAIBp6C.js.map} +1 -1
- package/dist/{OtpField-DsedK1nQ.cjs → OtpField-TdjMkgQi.cjs} +2 -2
- package/dist/{OtpField-DsedK1nQ.cjs.map → OtpField-TdjMkgQi.cjs.map} +1 -1
- package/dist/{PageLayout-BPbjTYS3.cjs → PageLayout-BoHvt2cT.cjs} +2 -2
- package/dist/{PageLayout-BPbjTYS3.cjs.map → PageLayout-BoHvt2cT.cjs.map} +1 -1
- package/dist/{PageLayout-Rk6KSxmn.js → PageLayout-Bwv8Oohb.js} +2 -2
- package/dist/{PageLayout-Rk6KSxmn.js.map → PageLayout-Bwv8Oohb.js.map} +1 -1
- package/dist/{PageNotFound-CBNhKZ9Y.js → PageNotFound-CMt8vnky.js} +5 -5
- package/dist/{PageNotFound-CBNhKZ9Y.js.map → PageNotFound-CMt8vnky.js.map} +1 -1
- package/dist/{PageNotFound-PUQ1o9R4.cjs → PageNotFound-DDm6nwQh.cjs} +2 -2
- package/dist/{PageNotFound-PUQ1o9R4.cjs.map → PageNotFound-DDm6nwQh.cjs.map} +1 -1
- package/dist/{Pagination-CNdkfXp2.js → Pagination-C0xr3D-g.js} +2 -2
- package/dist/{Pagination-CNdkfXp2.js.map → Pagination-C0xr3D-g.js.map} +1 -1
- package/dist/{Pagination-DNGKNQy0.cjs → Pagination-DzkTjEZL.cjs} +2 -2
- package/dist/{Pagination-DNGKNQy0.cjs.map → Pagination-DzkTjEZL.cjs.map} +1 -1
- package/dist/{PaletteField-BSIF5jI6.cjs → PaletteField-CQV2dll0.cjs} +2 -2
- package/dist/{PaletteField-BSIF5jI6.cjs.map → PaletteField-CQV2dll0.cjs.map} +1 -1
- package/dist/{PaletteField-Bp5Fgygh.js → PaletteField-CQv6MBKe.js} +3 -3
- package/dist/{PaletteField-Bp5Fgygh.js.map → PaletteField-CQv6MBKe.js.map} +1 -1
- package/dist/{PhoneField-BdmvslXQ.js → PhoneField-Bqj5-33G.js} +4 -4
- package/dist/{PhoneField-BdmvslXQ.js.map → PhoneField-Bqj5-33G.js.map} +1 -1
- package/dist/{PhoneField-BMhZeZkW.cjs → PhoneField-Dzdm5hfY.cjs} +2 -2
- package/dist/{PhoneField-BMhZeZkW.cjs.map → PhoneField-Dzdm5hfY.cjs.map} +1 -1
- package/dist/{Popconfirm-Cyaeybtj.js → Popconfirm-CYkwGTh-.js} +3 -3
- package/dist/{Popconfirm-Cyaeybtj.js.map → Popconfirm-CYkwGTh-.js.map} +1 -1
- package/dist/{Popconfirm-IhlIINtZ.cjs → Popconfirm-DS6tCxV0.cjs} +2 -2
- package/dist/{Popconfirm-IhlIINtZ.cjs.map → Popconfirm-DS6tCxV0.cjs.map} +1 -1
- package/dist/{Progress-T7PLrJ0Y.js → Progress-DZUtn3Sh.js} +2 -2
- package/dist/{Progress-T7PLrJ0Y.js.map → Progress-DZUtn3Sh.js.map} +1 -1
- package/dist/{Progress-CAY1p06_.cjs → Progress-lf9vIKIk.cjs} +2 -2
- package/dist/{Progress-CAY1p06_.cjs.map → Progress-lf9vIKIk.cjs.map} +1 -1
- package/dist/{QueryError-Dtspj9l4.js → QueryError-Dl8yzdxw.js} +2 -2
- package/dist/{QueryError-Dtspj9l4.js.map → QueryError-Dl8yzdxw.js.map} +1 -1
- package/dist/{QueryError-DP22IUnp.cjs → QueryError-RF7Mh5zg.cjs} +2 -2
- package/dist/{QueryError-DP22IUnp.cjs.map → QueryError-RF7Mh5zg.cjs.map} +1 -1
- package/dist/{RemoveDialog-D12B4x80.cjs → RemoveDialog-Csfhv9ve.cjs} +2 -2
- package/dist/{RemoveDialog-D12B4x80.cjs.map → RemoveDialog-Csfhv9ve.cjs.map} +1 -1
- package/dist/{RemoveDialog-DdGsqaWV.js → RemoveDialog-DaWh4xmW.js} +5 -5
- package/dist/{RemoveDialog-DdGsqaWV.js.map → RemoveDialog-DaWh4xmW.js.map} +1 -1
- package/dist/{RichTextEditor-DL4y5xVv.js → RichTextEditor-BLEDQq2H.js} +9 -9
- package/dist/{RichTextEditor-DL4y5xVv.js.map → RichTextEditor-BLEDQq2H.js.map} +1 -1
- package/dist/RichTextEditor-Eo8uLXlI.cjs +2 -0
- package/dist/{RichTextEditor-BVXY25sz.cjs.map → RichTextEditor-Eo8uLXlI.cjs.map} +1 -1
- package/dist/RootLayout-BvyeNM9_.cjs +2 -0
- package/dist/{RootLayout-DDuzPlJe.cjs.map → RootLayout-BvyeNM9_.cjs.map} +1 -1
- package/dist/{RootLayout-BK3t6Mm0.js → RootLayout-D-ZlsTXF.js} +23 -23
- package/dist/{RootLayout-BK3t6Mm0.js.map → RootLayout-D-ZlsTXF.js.map} +1 -1
- package/dist/{Select-tVI_qer3.js → Select-C0UBQXhg.js} +3 -3
- package/dist/{Select-tVI_qer3.js.map → Select-C0UBQXhg.js.map} +1 -1
- package/dist/{Select-DlFDOZtn.cjs → Select-CH3mF6y1.cjs} +2 -2
- package/dist/{Select-DlFDOZtn.cjs.map → Select-CH3mF6y1.cjs.map} +1 -1
- package/dist/{Sidebar-CjrD3nNp.js → Sidebar--rOPtrqa.js} +33 -32
- package/dist/{Sidebar-CjrD3nNp.js.map → Sidebar--rOPtrqa.js.map} +1 -1
- package/dist/Sidebar-6wu2fuPT.cjs +2 -0
- package/dist/{Sidebar-gB-X4VLX.cjs.map → Sidebar-6wu2fuPT.cjs.map} +1 -1
- package/dist/{SpeedDial-xQr4JH0x.js → SpeedDial-BIodC6td.js} +2 -2
- package/dist/{SpeedDial-xQr4JH0x.js.map → SpeedDial-BIodC6td.js.map} +1 -1
- package/dist/{SpeedDial-BIOkkLKO.cjs → SpeedDial-BtxXH6Ij.cjs} +2 -2
- package/dist/{SpeedDial-BIOkkLKO.cjs.map → SpeedDial-BtxXH6Ij.cjs.map} +1 -1
- package/dist/{Stepper-CBdhvPoz.cjs → Stepper-B38I8PBS.cjs} +2 -2
- package/dist/{Stepper-CBdhvPoz.cjs.map → Stepper-B38I8PBS.cjs.map} +1 -1
- package/dist/{Stepper-CkYcIc15.js → Stepper-CPBPTxbP.js} +13 -13
- package/dist/{Stepper-CkYcIc15.js.map → Stepper-CPBPTxbP.js.map} +1 -1
- package/dist/Table-1RVWzyS6.cjs +2 -0
- package/dist/{Table-Cwxqo7Br.cjs.map → Table-1RVWzyS6.cjs.map} +1 -1
- package/dist/{Table-CwQKfXGn.js → Table-BV-dr36o.js} +45 -45
- package/dist/{Table-CwQKfXGn.js.map → Table-BV-dr36o.js.map} +1 -1
- package/dist/{Tabs-651xbRe4.cjs → Tabs-DIs8iFA-.cjs} +2 -2
- package/dist/{Tabs-651xbRe4.cjs.map → Tabs-DIs8iFA-.cjs.map} +1 -1
- package/dist/{Tabs-Bztnezt9.js → Tabs-RjyUkLTB.js} +10 -10
- package/dist/{Tabs-Bztnezt9.js.map → Tabs-RjyUkLTB.js.map} +1 -1
- package/dist/{TagsField-CdymON69.js → TagsField-B3MtFiFs.js} +4 -4
- package/dist/{TagsField-CdymON69.js.map → TagsField-B3MtFiFs.js.map} +1 -1
- package/dist/{TagsField-B7ZARHzD.cjs → TagsField-CJ10-kFr.cjs} +2 -2
- package/dist/{TagsField-B7ZARHzD.cjs.map → TagsField-CJ10-kFr.cjs.map} +1 -1
- package/dist/{TextField-DkaYK1DI.js → TextField-CInaL0FR.js} +3 -3
- package/dist/{TextField-DkaYK1DI.js.map → TextField-CInaL0FR.js.map} +1 -1
- package/dist/{TextField-B22NRQ91.cjs → TextField-D_hzd5Gf.cjs} +2 -2
- package/dist/{TextField-B22NRQ91.cjs.map → TextField-D_hzd5Gf.cjs.map} +1 -1
- package/dist/ThemeToggle-CWfuK0tZ.js +28 -0
- package/dist/{ThemeToggle-DqzUvcK5.js.map → ThemeToggle-CWfuK0tZ.js.map} +1 -1
- package/dist/{ThemeToggle-D5dWHQFb.cjs → ThemeToggle-DkhhlH_r.cjs} +2 -2
- package/dist/{ThemeToggle-D5dWHQFb.cjs.map → ThemeToggle-DkhhlH_r.cjs.map} +1 -1
- package/dist/{TimeColumns-BEoHh961.js → TimeColumns-fD6dosYP.js} +2 -2
- package/dist/{TimeColumns-BEoHh961.js.map → TimeColumns-fD6dosYP.js.map} +1 -1
- package/dist/{TimeColumns-o2xhvSGE.cjs → TimeColumns-t3Pn01v5.cjs} +2 -2
- package/dist/{TimeColumns-o2xhvSGE.cjs.map → TimeColumns-t3Pn01v5.cjs.map} +1 -1
- package/dist/{TimePicker-CACmHwNn.cjs → TimePicker-DOwQF7sX.cjs} +2 -2
- package/dist/{TimePicker-CACmHwNn.cjs.map → TimePicker-DOwQF7sX.cjs.map} +1 -1
- package/dist/{TimePicker-DCryZCmh.js → TimePicker-DypTHDW0.js} +5 -5
- package/dist/{TimePicker-DCryZCmh.js.map → TimePicker-DypTHDW0.js.map} +1 -1
- package/dist/{Toaster-DwVLab3k.js → Toaster-BwNAKDMc.js} +2 -2
- package/dist/{Toaster-DwVLab3k.js.map → Toaster-BwNAKDMc.js.map} +1 -1
- package/dist/{Toaster-BwREV06e.cjs → Toaster-DdUOwi7L.cjs} +2 -2
- package/dist/{Toaster-BwREV06e.cjs.map → Toaster-DdUOwi7L.cjs.map} +1 -1
- package/dist/{TranslatedFields-B0LMXgiu.js → TranslatedFields-C_-qPixE.js} +13 -13
- package/dist/{TranslatedFields-B0LMXgiu.js.map → TranslatedFields-C_-qPixE.js.map} +1 -1
- package/dist/{TranslatedFields-sio1Qfy7.cjs → TranslatedFields-D9FQlxiQ.cjs} +2 -2
- package/dist/{TranslatedFields-sio1Qfy7.cjs.map → TranslatedFields-D9FQlxiQ.cjs.map} +1 -1
- package/dist/{UserCard-Dzc4zmPj.cjs → UserCard-C-q2s2Cw.cjs} +2 -2
- package/dist/{UserCard-Dzc4zmPj.cjs.map → UserCard-C-q2s2Cw.cjs.map} +1 -1
- package/dist/{UserCard-B5FVcJaK.js → UserCard-CwWv0HXD.js} +3 -3
- package/dist/{UserCard-B5FVcJaK.js.map → UserCard-CwWv0HXD.js.map} +1 -1
- 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/index.cjs +1 -1
- package/dist/components/ErrorState/index.js +2 -2
- 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/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/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/index.cjs +1 -1
- package/dist/components/PageNotFound/index.js +1 -1
- package/dist/components/Pagination/index.cjs +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/PaletteField/index.cjs +1 -1
- package/dist/components/PaletteField/index.js +1 -1
- package/dist/components/PhoneField/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/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/index.cjs +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/index.cjs +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/TagsField/index.cjs +1 -1
- package/dist/components/TagsField/index.js +1 -1
- package/dist/components/TextField/index.cjs +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/ThemeToggle/index.cjs +1 -1
- package/dist/components/ThemeToggle/index.js +1 -1
- package/dist/components/TimePicker/index.cjs +1 -1
- package/dist/components/TimePicker/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/TranslatedFields/index.cjs +1 -1
- package/dist/components/TranslatedFields/index.js +1 -1
- package/dist/components/UserCard/index.cjs +1 -1
- package/dist/components/UserCard/index.js +1 -1
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -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 +136 -132
- 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/i18n/messages.d.cts +42 -0
- package/dist/i18n/messages.d.ts +42 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +238 -232
- package/dist/index.js.map +1 -1
- package/dist/{messages-DswDgGe2.js → messages-BOJsnD0O.js} +180 -33
- package/dist/messages-BOJsnD0O.js.map +1 -0
- package/dist/{messages-DS38X5W2.cjs → messages-ejfYfHwL.cjs} +9 -9
- package/dist/messages-ejfYfHwL.cjs.map +1 -0
- package/dist/theme/ConfigProvider.d.cts +22 -0
- package/dist/theme/ConfigProvider.d.ts +22 -0
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/useOptionMenu-8hjCTNL4.cjs +2 -0
- package/dist/{useOptionMenu-BYeSUee6.cjs.map → useOptionMenu-8hjCTNL4.cjs.map} +1 -1
- package/dist/{useOptionMenu-DtTvY9EC.js → useOptionMenu-C1wOZ9NT.js} +9 -8
- package/dist/{useOptionMenu-DtTvY9EC.js.map → useOptionMenu-C1wOZ9NT.js.map} +1 -1
- package/package.json +1 -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/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/RichTextEditor-BVXY25sz.cjs +0 -2
- package/dist/RootLayout-DDuzPlJe.cjs +0 -2
- package/dist/Sidebar-gB-X4VLX.cjs +0 -2
- package/dist/Table-Cwxqo7Br.cjs +0 -2
- package/dist/ThemeToggle-DqzUvcK5.js +0 -28
- package/dist/messages-DS38X5W2.cjs.map +0 -1
- package/dist/messages-DswDgGe2.js.map +0 -1
- package/dist/useOptionMenu-BYeSUee6.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCard-
|
|
1
|
+
{"version":3,"file":"UserCard-C-q2s2Cw.cjs","sources":["../src/components/UserCard/UserCard.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport type { IconName } from '../../icons/names'\nimport { Avatar } from '../Avatar'\nimport { Button } from '../Button'\nimport { Icon } from '../Icon'\nimport { Skeleton } from '../Skeleton'\nimport { Typography } from '../Typography'\nimport styles from './UserCard.module.css'\n\nexport type UserCardSize = 'sm' | 'md' | 'lg'\n\nexport interface UserCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /**\n * Display name — the primary line, and the source of the avatar initials. When omitted, the primary\n * line falls back to a localized **\"Welcome\"** greeting (and the avatar shows the `icon`).\n */\n name?: string\n /** Secondary line under the name (usually the email). */\n email?: ReactNode\n /** Avatar image URL (falls back to the initials from `name`, else the `icon`). */\n avatar?: string\n /** Fallback avatar icon when there's no image or name. Defaults to `'User'`. */\n icon?: IconName\n /** Theme palette token tinting the avatar. Defaults to `'primary'`. */\n color?: ThemeColor\n /** Preset size (avatar + fonts + button). Defaults to `'md'`. */\n size?: UserCardSize\n /** When provided, a **Sign out** button is shown that calls this. */\n onLogout?: () => void\n /** Sign-out button label. Defaults to `'Sign out'`. */\n logoutLabel?: ReactNode\n /** Extra content between the identity row and the sign-out button (e.g. a link or menu). */\n children?: ReactNode\n /** Show skeletons for the avatar, name and email while the user is being fetched (sign-out stays usable). Defaults to `false`. */\n loading?: boolean\n}\n\n/**\n * A compact account card — an `Avatar` + name/email and an optional **Sign out** button. Drop it into\n * the `RootLayout` `sidebarFooter` (or anywhere) for a consistent signed-in-user block across apps,\n * instead of hand-rolling the markup each time. Shows the image (`avatar`) → initials (from `name`) →\n * `icon` (default `User`) in priority order; renders the sign-out `Button` (filled `error`) only when\n * `onLogout` is given. `size` (`sm`/`md`/`lg`) scales the avatar + type; `color` (default `primary`)\n * tints the avatar. `loading` swaps the avatar + name + email for skeletons. Own CSS module (token-only).\n */\nexport const UserCard = forwardRef<HTMLDivElement, UserCardProps>(function UserCard(\n {\n name,\n email,\n avatar,\n icon = 'User',\n color = 'primary',\n size = 'md',\n onLogout,\n logoutLabel,\n children,\n loading = false,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n // the identity row + the sign-out button share the same visual size step\n const avatarSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md'\n const buttonSize = size === 'lg' ? 'md' : 'sm'\n\n return (\n <div\n ref={ref}\n className={clsx(styles.card, styles[size], className)}\n style={style as CSSProperties}\n aria-busy={loading || undefined}\n {...props}\n >\n <div className={styles.identity}>\n {/* Avatar priority is image → icon → initials, so pass `icon` only as the last resort (no\n name), otherwise a name would still show the icon instead of its initials */}\n <Avatar\n size={avatarSize}\n name={name}\n src={avatar}\n icon={name ? undefined : icon}\n color={color}\n loading={loading}\n />\n <div className={styles.text}>\n {/* primary line: the name, or a \"Welcome\" greeting fallback when no name is given */}\n <Typography variant=\"bodySmall\" truncate>\n {loading ? <Skeleton width=\"60%\" /> : (name ?? t('userCard.welcome'))}\n </Typography>\n {(loading || email != null) && (\n <Typography variant=\"caption\" color=\"muted\" truncate>\n {loading ? <Skeleton width=\"85%\" /> : email}\n </Typography>\n )}\n </div>\n </div>\n\n {children}\n\n {onLogout ? (\n <Button\n variant=\"filled\"\n color=\"error\"\n size={buttonSize}\n fullWidth\n startIcon={<Icon name=\"Logout2\" />}\n onClick={onLogout}\n >\n {logoutLabel ?? t('userCard.signOut')}\n </Button>\n ) : null}\n </div>\n )\n})\n"],"names":["UserCard","forwardRef","name","email","avatar","icon","color","size","onLogout","logoutLabel","children","loading","className","style","props","ref","t","useT","avatarSize","buttonSize","jsxs","clsx","styles","jsx","Avatar","Typography","Skeleton","Button","Icon"],"mappings":"0bA+CaA,EAAWC,EAAAA,WAA0C,SAChE,CACE,KAAAC,EACA,MAAAC,EACA,OAAAC,EACA,KAAAC,EAAO,OACP,MAAAC,EAAQ,UACR,KAAAC,EAAO,KACP,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EAEJC,EAAaX,IAAS,KAAO,KAAOA,IAAS,KAAO,KAAO,KAC3DY,EAAaZ,IAAS,KAAO,KAAO,KAE1C,OACEa,EAAAA,KAAC,MAAA,CACC,IAAAL,EACA,UAAWM,EAAAA,KAAKC,EAAO,KAAMA,EAAOf,CAAI,EAAGK,CAAS,EACpD,MAAAC,EACA,YAAWF,GAAW,OACrB,GAAGG,EAEJ,SAAA,CAAAM,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,SAGrB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CACC,KAAMN,EACN,KAAAhB,EACA,IAAKE,EACL,KAAMF,EAAO,OAAYG,EACzB,MAAAC,EACA,QAAAK,CAAA,CAAA,EAEFS,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,KAErB,SAAA,CAAAC,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,YAAY,SAAQ,GACrC,SAAAd,EAAUY,EAAAA,IAACG,WAAA,CAAS,MAAM,KAAA,CAAM,EAAMxB,GAAQc,EAAE,kBAAkB,EACrE,GACEL,GAAWR,GAAS,OACpBoB,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,UAAU,MAAM,QAAQ,SAAQ,GACjD,SAAAd,EAAUY,MAACG,EAAAA,UAAS,MAAM,MAAM,EAAKvB,CAAA,CACxC,CAAA,CAAA,CAEJ,CAAA,EACF,EAECO,EAEAF,EACCe,EAAAA,IAACI,EAAAA,OAAA,CACC,QAAQ,SACR,MAAM,QACN,KAAMR,EACN,UAAS,GACT,UAAWI,EAAAA,IAACK,EAAAA,KAAA,CAAK,KAAK,SAAA,CAAU,EAChC,QAASpB,EAER,SAAAC,GAAeO,EAAE,kBAAkB,CAAA,CAAA,EAEpC,IAAA,CAAA,CAAA,CAGV,CAAC"}
|
|
@@ -2,11 +2,11 @@ import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as S } from "react";
|
|
3
3
|
import { clsx as g } from "clsx";
|
|
4
4
|
import { A as w } from "./Avatar-MwWIcj8z.js";
|
|
5
|
-
import { B as U } from "./Button-
|
|
5
|
+
import { B as U } from "./Button-BJ5Xd10u.js";
|
|
6
6
|
import { I as b } from "./Icon-CGQ5yGSZ.js";
|
|
7
7
|
import { S as m } from "./Skeleton-_-uGax2j.js";
|
|
8
8
|
import { T as d } from "./Typography-CJv5AnRP.js";
|
|
9
|
-
import { a as I } from "./ConfigProvider-
|
|
9
|
+
import { a as I } from "./ConfigProvider-D2svpXFu.js";
|
|
10
10
|
const N = "_card_1fykc_3", T = "_identity_1fykc_16", j = "_text_1fykc_20", A = "_sm_1fykc_33", B = "_lg_1fykc_37", o = {
|
|
11
11
|
card: N,
|
|
12
12
|
identity: T,
|
|
@@ -75,4 +75,4 @@ const N = "_card_1fykc_3", T = "_identity_1fykc_16", j = "_text_1fykc_20", A = "
|
|
|
75
75
|
export {
|
|
76
76
|
J as U
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=UserCard-
|
|
78
|
+
//# sourceMappingURL=UserCard-CwWv0HXD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCard-
|
|
1
|
+
{"version":3,"file":"UserCard-CwWv0HXD.js","sources":["../src/components/UserCard/UserCard.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport type { IconName } from '../../icons/names'\nimport { Avatar } from '../Avatar'\nimport { Button } from '../Button'\nimport { Icon } from '../Icon'\nimport { Skeleton } from '../Skeleton'\nimport { Typography } from '../Typography'\nimport styles from './UserCard.module.css'\n\nexport type UserCardSize = 'sm' | 'md' | 'lg'\n\nexport interface UserCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /**\n * Display name — the primary line, and the source of the avatar initials. When omitted, the primary\n * line falls back to a localized **\"Welcome\"** greeting (and the avatar shows the `icon`).\n */\n name?: string\n /** Secondary line under the name (usually the email). */\n email?: ReactNode\n /** Avatar image URL (falls back to the initials from `name`, else the `icon`). */\n avatar?: string\n /** Fallback avatar icon when there's no image or name. Defaults to `'User'`. */\n icon?: IconName\n /** Theme palette token tinting the avatar. Defaults to `'primary'`. */\n color?: ThemeColor\n /** Preset size (avatar + fonts + button). Defaults to `'md'`. */\n size?: UserCardSize\n /** When provided, a **Sign out** button is shown that calls this. */\n onLogout?: () => void\n /** Sign-out button label. Defaults to `'Sign out'`. */\n logoutLabel?: ReactNode\n /** Extra content between the identity row and the sign-out button (e.g. a link or menu). */\n children?: ReactNode\n /** Show skeletons for the avatar, name and email while the user is being fetched (sign-out stays usable). Defaults to `false`. */\n loading?: boolean\n}\n\n/**\n * A compact account card — an `Avatar` + name/email and an optional **Sign out** button. Drop it into\n * the `RootLayout` `sidebarFooter` (or anywhere) for a consistent signed-in-user block across apps,\n * instead of hand-rolling the markup each time. Shows the image (`avatar`) → initials (from `name`) →\n * `icon` (default `User`) in priority order; renders the sign-out `Button` (filled `error`) only when\n * `onLogout` is given. `size` (`sm`/`md`/`lg`) scales the avatar + type; `color` (default `primary`)\n * tints the avatar. `loading` swaps the avatar + name + email for skeletons. Own CSS module (token-only).\n */\nexport const UserCard = forwardRef<HTMLDivElement, UserCardProps>(function UserCard(\n {\n name,\n email,\n avatar,\n icon = 'User',\n color = 'primary',\n size = 'md',\n onLogout,\n logoutLabel,\n children,\n loading = false,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n // the identity row + the sign-out button share the same visual size step\n const avatarSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md'\n const buttonSize = size === 'lg' ? 'md' : 'sm'\n\n return (\n <div\n ref={ref}\n className={clsx(styles.card, styles[size], className)}\n style={style as CSSProperties}\n aria-busy={loading || undefined}\n {...props}\n >\n <div className={styles.identity}>\n {/* Avatar priority is image → icon → initials, so pass `icon` only as the last resort (no\n name), otherwise a name would still show the icon instead of its initials */}\n <Avatar\n size={avatarSize}\n name={name}\n src={avatar}\n icon={name ? undefined : icon}\n color={color}\n loading={loading}\n />\n <div className={styles.text}>\n {/* primary line: the name, or a \"Welcome\" greeting fallback when no name is given */}\n <Typography variant=\"bodySmall\" truncate>\n {loading ? <Skeleton width=\"60%\" /> : (name ?? t('userCard.welcome'))}\n </Typography>\n {(loading || email != null) && (\n <Typography variant=\"caption\" color=\"muted\" truncate>\n {loading ? <Skeleton width=\"85%\" /> : email}\n </Typography>\n )}\n </div>\n </div>\n\n {children}\n\n {onLogout ? (\n <Button\n variant=\"filled\"\n color=\"error\"\n size={buttonSize}\n fullWidth\n startIcon={<Icon name=\"Logout2\" />}\n onClick={onLogout}\n >\n {logoutLabel ?? t('userCard.signOut')}\n </Button>\n ) : null}\n </div>\n )\n})\n"],"names":["UserCard","forwardRef","name","email","avatar","icon","color","size","onLogout","logoutLabel","children","loading","className","style","props","ref","t","useT","avatarSize","buttonSize","jsxs","clsx","styles","jsx","Avatar","Typography","Skeleton","Button","Icon"],"mappings":";;;;;;;;;;;;;;;GA+CaA,IAAWC,EAA0C,SAChE;AAAA,EACE,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAIC,EAAA,GAEJC,IAAaX,MAAS,OAAO,OAAOA,MAAS,OAAO,OAAO,MAC3DY,IAAaZ,MAAS,OAAO,OAAO;AAE1C,SACE,gBAAAa;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,WAAWM,EAAKC,EAAO,MAAMA,EAAOf,CAAI,GAAGK,CAAS;AAAA,MACpD,OAAAC;AAAA,MACA,aAAWF,KAAW;AAAA,MACrB,GAAGG;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,UAGrB,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,MAAMN;AAAA,cACN,MAAAhB;AAAA,cACA,KAAKE;AAAA,cACL,MAAMF,IAAO,SAAYG;AAAA,cACzB,OAAAC;AAAA,cACA,SAAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAEF,gBAAAS,EAAC,OAAA,EAAI,WAAWE,EAAO,MAErB,UAAA;AAAA,YAAA,gBAAAC,EAACE,GAAA,EAAW,SAAQ,aAAY,UAAQ,IACrC,UAAAd,IAAU,gBAAAY,EAACG,GAAA,EAAS,OAAM,MAAA,CAAM,IAAMxB,KAAQc,EAAE,kBAAkB,GACrE;AAAA,aACEL,KAAWR,KAAS,SACpB,gBAAAoB,EAACE,GAAA,EAAW,SAAQ,WAAU,OAAM,SAAQ,UAAQ,IACjD,UAAAd,IAAU,gBAAAY,EAACG,KAAS,OAAM,OAAM,IAAKvB,EAAA,CACxC;AAAA,UAAA,EAAA,CAEJ;AAAA,QAAA,GACF;AAAA,QAECO;AAAA,QAEAF,IACC,gBAAAe;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,MAAMR;AAAA,YACN,WAAS;AAAA,YACT,WAAW,gBAAAI,EAACK,GAAA,EAAK,MAAK,UAAA,CAAU;AAAA,YAChC,SAASpB;AAAA,YAER,UAAAC,KAAeO,EAAE,kBAAkB;AAAA,UAAA;AAAA,QAAA,IAEpC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-B9l1VhIr.cjs");exports.Alert=e.Alert;exports.default=e.Alert;
|
|
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("../../Breadcrumbs-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-B1JMwCjO.cjs");exports.Breadcrumbs=e.Breadcrumbs;exports.default=e.Breadcrumbs;
|
|
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("../../Button-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-BZq1mIUH.cjs");exports.Button=t.Button;exports.default=t.Button;
|
|
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("../../Card-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-KsczbH5c.cjs");exports.Card=e.Card;exports.default=e.Card;
|
|
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("../../Chip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-BZ3I4Lbe.cjs");exports.Chip=e.Chip;exports.default=e.Chip;
|
|
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("../../CodeBlock-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../CodeBlock-DIkyeG4S.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
|
|
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("../../ColorPicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorPicker-B1riGs1z.cjs");exports.ColorPicker=e.ColorPicker;exports.default=e.ColorPicker;
|
|
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("../../ColorRamp-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorRamp-D_h-hp7n.cjs");exports.ColorRamp=e.ColorRamp;exports.default=e.ColorRamp;
|
|
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("../../CopyButton-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../CopyButton-DUtx2-Gi.cjs");exports.CopyButton=t.CopyButton;exports.default=t.CopyButton;
|
|
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("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-D_PqDvKt.cjs");exports.DatePicker=e.DatePicker;exports.default=e.DatePicker;
|
|
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("../../DateTimePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DateTimePicker-C3Kq5hKE.cjs");exports.DateTimePicker=e.DateTimePicker;exports.default=e.DateTimePicker;
|
|
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("../../DescriptionList-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DescriptionList-C7AOcw_2.cjs");exports.DescriptionList=e.DescriptionList;exports.default=e.DescriptionList;
|
|
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("../../Dropdown-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Dropdown-CMqWq6J_.cjs");exports.Dropdown=e.Dropdown;exports.default=e.Dropdown;
|
|
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("../../EmptyState-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../EmptyState-ECc6e_En.cjs");exports.EmptyState=t.EmptyState;exports.default=t.EmptyState;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../ErrorBoundary-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../ErrorBoundary-DbKRtdgS.cjs"),e=require("../../QueryError-RF7Mh5zg.cjs");exports.ErrorBoundary=r.ErrorBoundary;exports.ErrorState=r.ErrorState;exports.default=r.ErrorState;exports.getErrorDetails=r.getErrorDetails;exports.getErrorFieldErrors=r.getErrorFieldErrors;exports.getErrorMessage=r.getErrorMessage;exports.getErrorTraceId=r.getErrorTraceId;exports.QueryError=e.QueryError;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, a as o, a as s, g as t, b as E, c as g, d } from "../../ErrorBoundary-
|
|
2
|
-
import { Q as l } from "../../QueryError-
|
|
1
|
+
import { E as e, a as o, a as s, g as t, b as E, c as g, d } from "../../ErrorBoundary-CJx5E9wJ.js";
|
|
2
|
+
import { Q as l } from "../../QueryError-Dl8yzdxw.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ErrorBoundary,
|
|
5
5
|
o as ErrorState,
|
|
@@ -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-Bjqsgi7S.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-DWM8WrY6.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-D5rqScYG.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-CZoc5pYg.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-V8tjArlt.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-CqRaCdzF.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;
|