@senitix/ui 0.4.1 → 0.4.2
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/accordion-BcwB0wwz.cjs +2 -0
- package/dist/accordion-BcwB0wwz.cjs.map +1 -0
- package/dist/accordion-BwnJKrKm.js +360 -0
- package/dist/accordion-BwnJKrKm.js.map +1 -0
- package/dist/appointment-scheduler-BoQQO51F.cjs +2 -0
- package/dist/appointment-scheduler-BoQQO51F.cjs.map +1 -0
- package/dist/appointment-scheduler-DHAs-mF_.js +192 -0
- package/dist/appointment-scheduler-DHAs-mF_.js.map +1 -0
- package/dist/arrow-right-CM3nmiZe.js +15 -0
- package/dist/arrow-right-CM3nmiZe.js.map +1 -0
- package/dist/arrow-right-vDxRZOfm.cjs +7 -0
- package/dist/arrow-right-vDxRZOfm.cjs.map +1 -0
- package/dist/avatar-BlEcWE7T.js +191 -0
- package/dist/avatar-BlEcWE7T.js.map +1 -0
- package/dist/avatar-Cl38Ye4J.cjs +2 -0
- package/dist/avatar-Cl38Ye4J.cjs.map +1 -0
- package/dist/badge-BZcdBG5J.cjs +23 -0
- package/dist/badge-BZcdBG5J.cjs.map +1 -0
- package/dist/badge-D0C_rP2l.js +157 -0
- package/dist/badge-D0C_rP2l.js.map +1 -0
- package/dist/button-BP_ug5gP.js +126 -0
- package/dist/button-BP_ug5gP.js.map +1 -0
- package/dist/button-CPuCii0R.cjs +2 -0
- package/dist/button-CPuCii0R.cjs.map +1 -0
- package/dist/{calendar-DgnhzEfp.js → calendar-86qoSnO7.js} +368 -433
- package/dist/calendar-86qoSnO7.js.map +1 -0
- package/dist/{calendar-D3RWU0_G.cjs → calendar-BH-AuyiB.cjs} +2 -2
- package/dist/{calendar-D3RWU0_G.cjs.map → calendar-BH-AuyiB.cjs.map} +1 -1
- package/dist/calendar-CSJ060ym.cjs +2 -0
- package/dist/calendar-CSJ060ym.cjs.map +1 -0
- package/dist/{calendar-CUxm1K7J.js → calendar-JUSWONQ0.js} +2 -2
- package/dist/{calendar-CUxm1K7J.js.map → calendar-JUSWONQ0.js.map} +1 -1
- package/dist/{card-DISL3sPJ.cjs → card-CToWUN1K.cjs} +2 -2
- package/dist/{card-DISL3sPJ.cjs.map → card-CToWUN1K.cjs.map} +1 -1
- package/dist/{card-fId5vof_.js → card-yxbWFvZ1.js} +2 -2
- package/dist/{card-fId5vof_.js.map → card-yxbWFvZ1.js.map} +1 -1
- package/dist/checkbox-BmugT50K.cjs +2 -0
- package/dist/checkbox-BmugT50K.cjs.map +1 -0
- package/dist/{checkbox-BY2zxQVv.js → checkbox-CTa9e4SG.js} +95 -97
- package/dist/checkbox-CTa9e4SG.js.map +1 -0
- package/dist/chevron-left-5h87iFo_.cjs +7 -0
- package/dist/chevron-left-5h87iFo_.cjs.map +1 -0
- package/dist/chevron-left-DD5mQuvf.js +14 -0
- package/dist/chevron-left-DD5mQuvf.js.map +1 -0
- package/dist/{chevron-right-Bxf8i4gi.cjs → chevron-right-D-TdAZ7l.cjs} +2 -2
- package/dist/{chevron-right-Bxf8i4gi.cjs.map → chevron-right-D-TdAZ7l.cjs.map} +1 -1
- package/dist/{chevron-right-BLyGmyaF.js → chevron-right-Di90aqSn.js} +2 -2
- package/dist/{chevron-right-BLyGmyaF.js.map → chevron-right-Di90aqSn.js.map} +1 -1
- package/dist/chevron-up-Bq55Db6X.cjs +7 -0
- package/dist/{chevron-up-C3RClqXD.cjs.map → chevron-up-Bq55Db6X.cjs.map} +1 -1
- package/dist/{chevron-up-BmYZUtrk.js → chevron-up-Dr7EIn9V.js} +2 -2
- package/dist/{chevron-up-BmYZUtrk.js.map → chevron-up-Dr7EIn9V.js.map} +1 -1
- package/dist/clock-BjJE8PGr.js +15 -0
- package/dist/clock-BjJE8PGr.js.map +1 -0
- package/dist/clock-CnxBAA_O.cjs +7 -0
- package/dist/clock-CnxBAA_O.cjs.map +1 -0
- package/dist/command-BPtg-XK3.cjs +2 -0
- package/dist/command-BPtg-XK3.cjs.map +1 -0
- package/dist/command-VraXPLVI.js +404 -0
- package/dist/command-VraXPLVI.js.map +1 -0
- package/dist/components/builders/index.cjs.js +2 -0
- package/dist/components/builders/index.cjs.js.map +1 -0
- package/dist/components/builders/index.es.js +42 -0
- package/dist/components/builders/index.es.js.map +1 -0
- package/dist/components/charts/index.cjs.js +1 -1
- package/dist/components/charts/index.es.js +7 -6
- package/dist/components/charts/index.es.js.map +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +43 -20
- package/dist/components/dnd/index.cjs.js +1 -1
- package/dist/components/dnd/index.es.js +1 -1
- package/dist/components/feedback/index.cjs.js +1 -1
- package/dist/components/feedback/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +24 -23
- package/dist/components/forms/index.es.js.map +1 -1
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +45 -21
- package/dist/components/messaging/index.cjs.js +2 -0
- package/dist/components/messaging/index.cjs.js.map +1 -0
- package/dist/components/messaging/index.es.js +15 -0
- package/dist/components/messaging/index.es.js.map +1 -0
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/scheduling/index.cjs.js +2 -0
- package/dist/components/scheduling/index.cjs.js.map +1 -0
- package/dist/components/scheduling/index.es.js +6 -0
- package/dist/components/scheduling/index.es.js.map +1 -0
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +168 -158
- package/dist/components/ui/index.es.js.map +1 -1
- package/dist/dialog-BFBDL8_i.js +382 -0
- package/dist/dialog-BFBDL8_i.js.map +1 -0
- package/dist/dialog-DO5i1PED.cjs +6 -0
- package/dist/dialog-DO5i1PED.cjs.map +1 -0
- package/dist/dropdown-menu-CkCCV_tw.js +969 -0
- package/dist/dropdown-menu-CkCCV_tw.js.map +1 -0
- package/dist/dropdown-menu-ejikFvg2.cjs +7 -0
- package/dist/dropdown-menu-ejikFvg2.cjs.map +1 -0
- package/dist/{ellipsis-6eUne95u.js → ellipsis-CKhpjj5H.js} +2 -2
- package/dist/{ellipsis-6eUne95u.js.map → ellipsis-CKhpjj5H.js.map} +1 -1
- package/dist/{ellipsis-DkM3GBF5.cjs → ellipsis-Dk7Wfc4i.cjs} +3 -3
- package/dist/{ellipsis-DkM3GBF5.cjs.map → ellipsis-Dk7Wfc4i.cjs.map} +1 -1
- package/dist/external-link-CGBqsrbm.cjs +7 -0
- package/dist/external-link-CGBqsrbm.cjs.map +1 -0
- package/dist/external-link-UeWW0ty3.js +16 -0
- package/dist/external-link-UeWW0ty3.js.map +1 -0
- package/dist/eye-Cved4eAo.cjs +7 -0
- package/dist/eye-Cved4eAo.cjs.map +1 -0
- package/dist/eye-KdCUpmO8.js +21 -0
- package/dist/eye-KdCUpmO8.js.map +1 -0
- package/dist/{file-Cw_u_aJB.js → file-CHbdXCWO.js} +2 -2
- package/dist/{file-Cw_u_aJB.js.map → file-CHbdXCWO.js.map} +1 -1
- package/dist/{file-Cp5UoYUZ.cjs → file-CqYRamm8.cjs} +3 -3
- package/dist/{file-Cp5UoYUZ.cjs.map → file-CqYRamm8.cjs.map} +1 -1
- package/dist/file-spreadsheet-CpySxI0-.cjs +7 -0
- package/dist/file-spreadsheet-CpySxI0-.cjs.map +1 -0
- package/dist/file-spreadsheet-EqZMR-mM.js +19 -0
- package/dist/file-spreadsheet-EqZMR-mM.js.map +1 -0
- package/dist/form-preview-BGdea5K7.cjs +111 -0
- package/dist/form-preview-BGdea5K7.cjs.map +1 -0
- package/dist/form-preview-C6WfeXyD.js +12075 -0
- package/dist/form-preview-C6WfeXyD.js.map +1 -0
- package/dist/full-calendar-CZMK_rPy.cjs +18 -0
- package/dist/full-calendar-CZMK_rPy.cjs.map +1 -0
- package/dist/full-calendar-CjaDgutS.js +2631 -0
- package/dist/full-calendar-CjaDgutS.js.map +1 -0
- package/dist/funnel-chart-Dfj1pOyV.cjs +6 -0
- package/dist/funnel-chart-Dfj1pOyV.cjs.map +1 -0
- package/dist/funnel-chart-o9qcEMgg.js +2952 -0
- package/dist/funnel-chart-o9qcEMgg.js.map +1 -0
- package/dist/global-search-Dhv8goH8.js +1331 -0
- package/dist/global-search-Dhv8goH8.js.map +1 -0
- package/dist/global-search-msFICB8l.cjs +22 -0
- package/dist/global-search-msFICB8l.cjs.map +1 -0
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +9 -7
- package/dist/hooks/index.es.js.map +1 -1
- package/dist/{index-DtaLkIY8.js → index-BGUveO6l.js} +84 -79
- package/dist/{index-DtaLkIY8.js.map → index-BGUveO6l.js.map} +1 -1
- package/dist/{index-gVbM3K4f.cjs → index-Bhee6XHk.cjs} +2 -2
- package/dist/{index-gVbM3K4f.cjs.map → index-Bhee6XHk.cjs.map} +1 -1
- package/dist/index-CrSlyWAA.js +1090 -0
- package/dist/index-CrSlyWAA.js.map +1 -0
- package/dist/{index-Dk_Et2WJ.js → index-D8-pHJim.js} +2 -2
- package/dist/{index-Dk_Et2WJ.js.map → index-D8-pHJim.js.map} +1 -1
- package/dist/index-Dy_9oyP3.cjs +2 -0
- package/dist/{index-D2U2F80P.cjs.map → index-Dy_9oyP3.cjs.map} +1 -1
- package/dist/index-hnbbvGmb.cjs +21 -0
- package/dist/index-hnbbvGmb.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +434 -319
- package/dist/index.es.js.map +1 -1
- package/dist/input-Pfq8fkiV.js +2718 -0
- package/dist/input-Pfq8fkiV.js.map +1 -0
- package/dist/input-UBp7V7li.cjs +52 -0
- package/dist/input-UBp7V7li.cjs.map +1 -0
- package/dist/label-CExiitfO.js +50 -0
- package/dist/label-CExiitfO.js.map +1 -0
- package/dist/label-F0zGAiI2.cjs +2 -0
- package/dist/label-F0zGAiI2.cjs.map +1 -0
- package/dist/loader-circle-CBVYGIRp.js +14 -0
- package/dist/loader-circle-CBVYGIRp.js.map +1 -0
- package/dist/loader-circle-IaJKvYsP.cjs +7 -0
- package/dist/loader-circle-IaJKvYsP.cjs.map +1 -0
- package/dist/locale-provider-BHGNO4j7.js +1786 -0
- package/dist/locale-provider-BHGNO4j7.js.map +1 -0
- package/dist/locale-provider-BScpm-eC.cjs +2 -0
- package/dist/locale-provider-BScpm-eC.cjs.map +1 -0
- package/dist/locale-selector-D0jV4-90.cjs +12 -0
- package/dist/locale-selector-D0jV4-90.cjs.map +1 -0
- package/dist/locale-selector-n75sM9qA.js +1740 -0
- package/dist/locale-selector-n75sM9qA.js.map +1 -0
- package/dist/map-pin-CHh0xl6i.js +46 -0
- package/dist/map-pin-CHh0xl6i.js.map +1 -0
- package/dist/map-pin-DGObSZ40.cjs +17 -0
- package/dist/map-pin-DGObSZ40.cjs.map +1 -0
- package/dist/message-square-B_xLey5D.js +14 -0
- package/dist/message-square-B_xLey5D.js.map +1 -0
- package/dist/message-square-_69ua8rH.cjs +7 -0
- package/dist/message-square-_69ua8rH.cjs.map +1 -0
- package/dist/minus-BUFkTM0k.cjs +7 -0
- package/dist/{minus-C0uyaz70.cjs.map → minus-BUFkTM0k.cjs.map} +1 -1
- package/dist/{minus-CiwV65ZG.js → minus-DJ0tmymW.js} +2 -2
- package/dist/{minus-CiwV65ZG.js.map → minus-DJ0tmymW.js.map} +1 -1
- package/dist/multi-container-CytCGxsc.cjs +7 -0
- package/dist/multi-container-CytCGxsc.cjs.map +1 -0
- package/dist/multi-container-DmkgnCJN.js +799 -0
- package/dist/multi-container-DmkgnCJN.js.map +1 -0
- package/dist/multi-select-D9akBt7B.js +224 -0
- package/dist/multi-select-D9akBt7B.js.map +1 -0
- package/dist/multi-select-DxN_LuXC.cjs +7 -0
- package/dist/multi-select-DxN_LuXC.cjs.map +1 -0
- package/dist/pencil-BJULwaDl.cjs +12 -0
- package/dist/pencil-BJULwaDl.cjs.map +1 -0
- package/dist/pencil-HL0trGIs.js +31 -0
- package/dist/pencil-HL0trGIs.js.map +1 -0
- package/dist/permission-matrix-CTQ1OiTO.js +6128 -0
- package/dist/permission-matrix-CTQ1OiTO.js.map +1 -0
- package/dist/permission-matrix-DRu-cV44.cjs +93 -0
- package/dist/permission-matrix-DRu-cV44.cjs.map +1 -0
- package/dist/phone-B0J1dGIE.js +31 -0
- package/dist/phone-B0J1dGIE.js.map +1 -0
- package/dist/phone-DPA6vucM.cjs +12 -0
- package/dist/phone-DPA6vucM.cjs.map +1 -0
- package/dist/plus-Bcuujcqd.cjs +7 -0
- package/dist/{plus-BsV82JJ5.cjs.map → plus-Bcuujcqd.cjs.map} +1 -1
- package/dist/{plus-DxD6rofl.js → plus-D7DMDKb8.js} +2 -2
- package/dist/{plus-DxD6rofl.js.map → plus-D7DMDKb8.js.map} +1 -1
- package/dist/popover-Bba1ELMX.cjs +2 -0
- package/dist/popover-Bba1ELMX.cjs.map +1 -0
- package/dist/popover-CZWAuYUL.js +281 -0
- package/dist/popover-CZWAuYUL.js.map +1 -0
- package/dist/progress-BPpsmZ48.js +218 -0
- package/dist/progress-BPpsmZ48.js.map +1 -0
- package/dist/progress-BrzjVhWG.cjs +22 -0
- package/dist/progress-BrzjVhWG.cjs.map +1 -0
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.es.js +1 -1
- package/dist/radio-group-B9RM_c7e.js +244 -0
- package/dist/radio-group-B9RM_c7e.js.map +1 -0
- package/dist/radio-group-_n8TTqNQ.cjs +2 -0
- package/dist/radio-group-_n8TTqNQ.cjs.map +1 -0
- package/dist/record-dialog-footer-CQPnqhfv.js +2577 -0
- package/dist/record-dialog-footer-CQPnqhfv.js.map +1 -0
- package/dist/record-dialog-footer-DLH96eAV.cjs +37 -0
- package/dist/record-dialog-footer-DLH96eAV.cjs.map +1 -0
- package/dist/scroll-area-CGNbDUBQ.js +889 -0
- package/dist/scroll-area-CGNbDUBQ.js.map +1 -0
- package/dist/scroll-area-HsTSI_58.cjs +22 -0
- package/dist/scroll-area-HsTSI_58.cjs.map +1 -0
- package/dist/select-CEsYpjPi.cjs +2 -0
- package/dist/select-CEsYpjPi.cjs.map +1 -0
- package/dist/{select-BJpZrtep.js → select-Ce2C2acZ.js} +184 -179
- package/dist/select-Ce2C2acZ.js.map +1 -0
- package/dist/send-DIkOd-pu.js +21 -0
- package/dist/send-DIkOd-pu.js.map +1 -0
- package/dist/send-H6HC-rS8.cjs +7 -0
- package/dist/send-H6HC-rS8.cjs.map +1 -0
- package/dist/shared-inbox-Bv0AgLew.js +702 -0
- package/dist/shared-inbox-Bv0AgLew.js.map +1 -0
- package/dist/shared-inbox-DWEKfDX3.cjs +22 -0
- package/dist/shared-inbox-DWEKfDX3.cjs.map +1 -0
- package/dist/sheet-C0-aBGln.cjs +2 -0
- package/dist/sheet-C0-aBGln.cjs.map +1 -0
- package/dist/sheet-Cyq_eDFW.js +147 -0
- package/dist/sheet-Cyq_eDFW.js.map +1 -0
- package/dist/{skeleton-Bl6FAxHT.js → skeleton-C_dwS3_6.js} +2 -2
- package/dist/{skeleton-Bl6FAxHT.js.map → skeleton-C_dwS3_6.js.map} +1 -1
- package/dist/{skeleton-Cb6MWerF.cjs → skeleton-D3YsjVWD.cjs} +2 -2
- package/dist/{skeleton-Cb6MWerF.cjs.map → skeleton-D3YsjVWD.cjs.map} +1 -1
- package/dist/sparkline-chart-BP4bk24J.js +15881 -0
- package/dist/sparkline-chart-BP4bk24J.js.map +1 -0
- package/dist/sparkline-chart-D6SLZVjp.cjs +79 -0
- package/dist/sparkline-chart-D6SLZVjp.cjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch-AEZvZSRV.cjs +2 -0
- package/dist/switch-AEZvZSRV.cjs.map +1 -0
- package/dist/switch-BF4LLvaU.js +147 -0
- package/dist/switch-BF4LLvaU.js.map +1 -0
- package/dist/table-2-Bn-YjZ9s.cjs +17 -0
- package/dist/table-2-Bn-YjZ9s.cjs.map +1 -0
- package/dist/table-2-C7E_N72K.js +52 -0
- package/dist/table-2-C7E_N72K.js.map +1 -0
- package/dist/textarea-4qZDuQ-C.js +206 -0
- package/dist/textarea-4qZDuQ-C.js.map +1 -0
- package/dist/textarea-Bq_zyt0L.cjs +2 -0
- package/dist/textarea-Bq_zyt0L.cjs.map +1 -0
- package/dist/tooltip-Dd7le9EO.cjs +2 -0
- package/dist/tooltip-Dd7le9EO.cjs.map +1 -0
- package/dist/tooltip-Dee-pNPI.js +338 -0
- package/dist/tooltip-Dee-pNPI.js.map +1 -0
- package/dist/trash-2-B3EP3JfM.js +18 -0
- package/dist/trash-2-B3EP3JfM.js.map +1 -0
- package/dist/trash-2-DWEeKlWT.cjs +7 -0
- package/dist/trash-2-DWEeKlWT.cjs.map +1 -0
- package/dist/{trending-up-BHFXgLWy.js → trending-up-ljWtN4pj.js} +2 -2
- package/dist/{trending-up-BHFXgLWy.js.map → trending-up-ljWtN4pj.js.map} +1 -1
- package/dist/{trending-up-BBjz_E69.cjs → trending-up-mLgmkp--.cjs} +2 -2
- package/dist/{trending-up-BBjz_E69.cjs.map → trending-up-mLgmkp--.cjs.map} +1 -1
- package/dist/upload-2tm-XihE.cjs +7 -0
- package/dist/upload-2tm-XihE.cjs.map +1 -0
- package/dist/upload-C_JDP8O0.js +16 -0
- package/dist/upload-C_JDP8O0.js.map +1 -0
- package/dist/use-controllable-state-3ATd6Fqd.cjs +2 -0
- package/dist/use-controllable-state-3ATd6Fqd.cjs.map +1 -0
- package/dist/use-controllable-state-CEa-Zlq6.js +23 -0
- package/dist/use-controllable-state-CEa-Zlq6.js.map +1 -0
- package/dist/use-formatters-Bb0fX1lW.cjs +2 -0
- package/dist/{use-formatters-CObUgipW.cjs.map → use-formatters-Bb0fX1lW.cjs.map} +1 -1
- package/dist/{use-formatters-Bgj3JA4i.js → use-formatters-xeMS4gdV.js} +1160 -1165
- package/dist/{use-formatters-Bgj3JA4i.js.map → use-formatters-xeMS4gdV.js.map} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/dist/welcome-card-Ccbl_miQ.js +1007 -0
- package/dist/welcome-card-Ccbl_miQ.js.map +1 -0
- package/dist/welcome-card-D-ShMkaS.cjs +37 -0
- package/dist/welcome-card-D-ShMkaS.cjs.map +1 -0
- package/dist/x-BBkgEhUv.js +15 -0
- package/dist/x-BBkgEhUv.js.map +1 -0
- package/dist/x-D-El5XAY.cjs +7 -0
- package/dist/x-D-El5XAY.cjs.map +1 -0
- package/package.json +20 -2
- package/dist/avatar-BT_SPwFW.cjs +0 -18
- package/dist/avatar-BT_SPwFW.cjs.map +0 -1
- package/dist/avatar-C5-ZWIqT.js +0 -305
- package/dist/avatar-C5-ZWIqT.js.map +0 -1
- package/dist/calendar-BF5drX5u.cjs +0 -12
- package/dist/calendar-BF5drX5u.cjs.map +0 -1
- package/dist/calendar-DgnhzEfp.js.map +0 -1
- package/dist/checkbox-BY2zxQVv.js.map +0 -1
- package/dist/checkbox-CL6u7vL6.cjs +0 -2
- package/dist/checkbox-CL6u7vL6.cjs.map +0 -1
- package/dist/chevron-down-BiUlxZA-.js +0 -14
- package/dist/chevron-down-BiUlxZA-.js.map +0 -1
- package/dist/chevron-down-Ce0kqXiD.cjs +0 -7
- package/dist/chevron-down-Ce0kqXiD.cjs.map +0 -1
- package/dist/chevron-up-C3RClqXD.cjs +0 -7
- package/dist/createLucideIcon-BC8wu-bu.js +0 -80
- package/dist/createLucideIcon-BC8wu-bu.js.map +0 -1
- package/dist/createLucideIcon-Cv8nC2E9.cjs +0 -22
- package/dist/createLucideIcon-Cv8nC2E9.cjs.map +0 -1
- package/dist/filter-tags-DoRzXjuY.cjs +0 -48
- package/dist/filter-tags-DoRzXjuY.cjs.map +0 -1
- package/dist/filter-tags-zEQmRhEU.js +0 -2712
- package/dist/filter-tags-zEQmRhEU.js.map +0 -1
- package/dist/full-calendar-5Z4JSj8g.js +0 -3551
- package/dist/full-calendar-5Z4JSj8g.js.map +0 -1
- package/dist/full-calendar-DjAvCfuE.cjs +0 -23
- package/dist/full-calendar-DjAvCfuE.cjs.map +0 -1
- package/dist/global-search-BbZfc-VL.js +0 -1216
- package/dist/global-search-BbZfc-VL.js.map +0 -1
- package/dist/global-search-Bd74_wPV.cjs +0 -22
- package/dist/global-search-Bd74_wPV.cjs.map +0 -1
- package/dist/index-D2U2F80P.cjs +0 -2
- package/dist/index-DG0KV-sw.cjs +0 -11
- package/dist/index-DG0KV-sw.cjs.map +0 -1
- package/dist/index-XnFSmCuh.js +0 -299
- package/dist/index-XnFSmCuh.js.map +0 -1
- package/dist/input-BgPy-4Qu.js +0 -3658
- package/dist/input-BgPy-4Qu.js.map +0 -1
- package/dist/input-Cfr2WB-P.cjs +0 -47
- package/dist/input-Cfr2WB-P.cjs.map +0 -1
- package/dist/locale-provider-BojNdf1Y.cjs +0 -2
- package/dist/locale-provider-BojNdf1Y.cjs.map +0 -1
- package/dist/locale-provider-DzBeb-X3.js +0 -1013
- package/dist/locale-provider-DzBeb-X3.js.map +0 -1
- package/dist/locale-selector-BD1IWk6X.cjs +0 -22
- package/dist/locale-selector-BD1IWk6X.cjs.map +0 -1
- package/dist/locale-selector-DLRSyVye.js +0 -1772
- package/dist/locale-selector-DLRSyVye.js.map +0 -1
- package/dist/minus-C0uyaz70.cjs +0 -7
- package/dist/multi-container-BZia7HCU.js +0 -748
- package/dist/multi-container-BZia7HCU.js.map +0 -1
- package/dist/multi-container-BdNbgtPZ.cjs +0 -7
- package/dist/multi-container-BdNbgtPZ.cjs.map +0 -1
- package/dist/pipeline-Dh052Dvj.cjs +0 -27
- package/dist/pipeline-Dh052Dvj.cjs.map +0 -1
- package/dist/pipeline-DqWvleNy.js +0 -1076
- package/dist/pipeline-DqWvleNy.js.map +0 -1
- package/dist/plus-BsV82JJ5.cjs +0 -7
- package/dist/popover-BgLxmm1z.cjs +0 -7
- package/dist/popover-BgLxmm1z.cjs.map +0 -1
- package/dist/popover-PI9jbhnS.js +0 -775
- package/dist/popover-PI9jbhnS.js.map +0 -1
- package/dist/progress-CTTt_CP3.js +0 -260
- package/dist/progress-CTTt_CP3.js.map +0 -1
- package/dist/progress-CTWb7X1Q.cjs +0 -37
- package/dist/progress-CTWb7X1Q.cjs.map +0 -1
- package/dist/scroll-area-A3jGu-Ta.js +0 -974
- package/dist/scroll-area-A3jGu-Ta.js.map +0 -1
- package/dist/scroll-area-DzDnWIYJ.cjs +0 -12
- package/dist/scroll-area-DzDnWIYJ.cjs.map +0 -1
- package/dist/select-BJpZrtep.js.map +0 -1
- package/dist/select-Ii8HRuXa.cjs +0 -2
- package/dist/select-Ii8HRuXa.cjs.map +0 -1
- package/dist/separator-BzcDE0Ei.cjs +0 -2
- package/dist/separator-BzcDE0Ei.cjs.map +0 -1
- package/dist/separator-DyarVo1-.js +0 -396
- package/dist/separator-DyarVo1-.js.map +0 -1
- package/dist/sheet-DPSdOoE6.js +0 -84
- package/dist/sheet-DPSdOoE6.js.map +0 -1
- package/dist/sheet-XtjvbEMq.cjs +0 -2
- package/dist/sheet-XtjvbEMq.cjs.map +0 -1
- package/dist/sparkline-chart-CeCDeMNk.cjs +0 -102
- package/dist/sparkline-chart-CeCDeMNk.cjs.map +0 -1
- package/dist/sparkline-chart-DUS4CoW_.js +0 -19787
- package/dist/sparkline-chart-DUS4CoW_.js.map +0 -1
- package/dist/use-formatters-CObUgipW.cjs +0 -2
- package/dist/welcome-card-CNuEa6Ck.cjs +0 -67
- package/dist/welcome-card-CNuEa6Ck.cjs.map +0 -1
- package/dist/welcome-card-Cp6t6G3j.js +0 -1041
- package/dist/welcome-card-Cp6t6G3j.js.map +0 -1
|
@@ -1,1772 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as i, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
-
import * as x from "react";
|
|
3
|
-
import D from "react";
|
|
4
|
-
import { p as Le, a as A, X as $, C as J, B as j, e as Oe, S as Ee } from "./scroll-area-A3jGu-Ta.js";
|
|
5
|
-
import { c as F } from "./index-DtaLkIY8.js";
|
|
6
|
-
import { L as W, C as Se, a as Te } from "./calendar-DgnhzEfp.js";
|
|
7
|
-
import { P as H, r as U, s as B, C as ee, b as te, c as re, d as se, e as Y, f as Q, D as $e, l as He, m as Ue, n as Be, p as ze, L as Ge } from "./popover-PI9jbhnS.js";
|
|
8
|
-
import { u as ke, f as ne } from "./use-formatters-Bgj3JA4i.js";
|
|
9
|
-
import { C as Fe } from "./calendar-CUxm1K7J.js";
|
|
10
|
-
import { I as G, D as je, a as Ke, b as We, c as Je } from "./input-BgPy-4Qu.js";
|
|
11
|
-
import { S as Pe } from "./index-XnFSmCuh.js";
|
|
12
|
-
import { c as ae } from "./createLucideIcon-BC8wu-bu.js";
|
|
13
|
-
import { F as Ye } from "./file-Cw_u_aJB.js";
|
|
14
|
-
import { C as pe } from "./chevron-up-BmYZUtrk.js";
|
|
15
|
-
import { C as q } from "./chevron-down-BiUlxZA-.js";
|
|
16
|
-
import { M as Qe } from "./minus-CiwV65ZG.js";
|
|
17
|
-
import { P as Xe } from "./plus-DxD6rofl.js";
|
|
18
|
-
import { A as Ze, a as qe, b as et } from "./avatar-C5-ZWIqT.js";
|
|
19
|
-
import { C as tt } from "./chevron-right-BLyGmyaF.js";
|
|
20
|
-
import { u as De, e as rt, c as he, n as st, m as at } from "./locale-provider-DzBeb-X3.js";
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v0.441.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
const ie = ae("ChevronsUpDown", [
|
|
28
|
-
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
29
|
-
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
30
|
-
]);
|
|
31
|
-
/**
|
|
32
|
-
* @license lucide-react v0.441.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
const lt = ae("Globe", [
|
|
38
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
39
|
-
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
40
|
-
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
41
|
-
]);
|
|
42
|
-
/**
|
|
43
|
-
* @license lucide-react v0.441.0 - ISC
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the ISC license.
|
|
46
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/
|
|
48
|
-
const nt = ae("Pipette", [
|
|
49
|
-
["path", { d: "m2 22 1-1h3l9-9", key: "1sre89" }],
|
|
50
|
-
["path", { d: "M3 21v-3l9-9", key: "hpe2y6" }],
|
|
51
|
-
[
|
|
52
|
-
"path",
|
|
53
|
-
{
|
|
54
|
-
d: "m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",
|
|
55
|
-
key: "196du1"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
]);
|
|
59
|
-
/**
|
|
60
|
-
* @license lucide-react v0.441.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/
|
|
65
|
-
const ot = ae("Upload", [
|
|
66
|
-
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
67
|
-
["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
|
|
68
|
-
["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
|
|
69
|
-
]);
|
|
70
|
-
var ct = (e) => e.type === "checkbox", K = (e) => e instanceof Date, de = (e) => e == null;
|
|
71
|
-
const Ve = (e) => typeof e == "object";
|
|
72
|
-
var z = (e) => !de(e) && !Array.isArray(e) && Ve(e) && !K(e), it = (e) => z(e) && e.target ? ct(e.target) ? e.target.checked : e.target.value : e, dt = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ut = (e, s) => e.has(dt(s)), mt = (e) => {
|
|
73
|
-
const s = e.constructor && e.constructor.prototype;
|
|
74
|
-
return z(s) && s.hasOwnProperty("isPrototypeOf");
|
|
75
|
-
}, ft = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
76
|
-
function Me(e) {
|
|
77
|
-
if (e instanceof Date)
|
|
78
|
-
return new Date(e);
|
|
79
|
-
const s = typeof FileList < "u" && e instanceof FileList;
|
|
80
|
-
if (ft && (e instanceof Blob || s))
|
|
81
|
-
return e;
|
|
82
|
-
const t = Array.isArray(e);
|
|
83
|
-
if (!t && !(z(e) && mt(e)))
|
|
84
|
-
return e;
|
|
85
|
-
const l = t ? [] : Object.create(Object.getPrototypeOf(e));
|
|
86
|
-
for (const a in e)
|
|
87
|
-
Object.prototype.hasOwnProperty.call(e, a) && (l[a] = Me(e[a]));
|
|
88
|
-
return l;
|
|
89
|
-
}
|
|
90
|
-
var Re = (e) => /^\w*$/.test(e), ce = (e) => e === void 0, pt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Ce = (e) => pt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), O = (e, s, t) => {
|
|
91
|
-
if (!s || !z(e))
|
|
92
|
-
return t;
|
|
93
|
-
const l = (Re(s) ? [s] : Ce(s)).reduce((a, c) => de(a) ? a : a[c], e);
|
|
94
|
-
return ce(l) || l === e ? ce(e[s]) ? t : e[s] : l;
|
|
95
|
-
}, oe = (e) => typeof e == "boolean", X = (e) => typeof e == "function", Ne = (e, s, t) => {
|
|
96
|
-
let l = -1;
|
|
97
|
-
const a = Re(s) ? [s] : Ce(s), c = a.length, m = c - 1;
|
|
98
|
-
for (; ++l < c; ) {
|
|
99
|
-
const f = a[l];
|
|
100
|
-
let b = t;
|
|
101
|
-
if (l !== m) {
|
|
102
|
-
const g = e[f];
|
|
103
|
-
b = z(g) || Array.isArray(g) ? g : isNaN(+a[l + 1]) ? {} : [];
|
|
104
|
-
}
|
|
105
|
-
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
106
|
-
return;
|
|
107
|
-
e[f] = b, e = e[f];
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
const ge = {
|
|
111
|
-
BLUR: "blur",
|
|
112
|
-
CHANGE: "change"
|
|
113
|
-
}, ye = {
|
|
114
|
-
all: "all"
|
|
115
|
-
}, ue = D.createContext(null);
|
|
116
|
-
ue.displayName = "HookFormControlContext";
|
|
117
|
-
const me = () => D.useContext(ue);
|
|
118
|
-
var ht = (e, s, t, l = !0) => {
|
|
119
|
-
const a = {
|
|
120
|
-
defaultValues: s._defaultValues
|
|
121
|
-
};
|
|
122
|
-
for (const c in e)
|
|
123
|
-
Object.defineProperty(a, c, {
|
|
124
|
-
get: () => {
|
|
125
|
-
const m = c;
|
|
126
|
-
return s._proxyFormState[m] !== ye.all && (s._proxyFormState[m] = !l || ye.all), t && (t[m] = !0), e[m];
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
return a;
|
|
130
|
-
};
|
|
131
|
-
const Ie = typeof window < "u" ? D.useLayoutEffect : D.useEffect;
|
|
132
|
-
function Nt(e) {
|
|
133
|
-
const s = me(), { control: t = s, disabled: l, name: a, exact: c } = e || {}, [m, f] = D.useState(t._formState), b = D.useRef({
|
|
134
|
-
isDirty: !1,
|
|
135
|
-
isLoading: !1,
|
|
136
|
-
dirtyFields: !1,
|
|
137
|
-
touchedFields: !1,
|
|
138
|
-
validatingFields: !1,
|
|
139
|
-
isValidating: !1,
|
|
140
|
-
isValid: !1,
|
|
141
|
-
errors: !1
|
|
142
|
-
});
|
|
143
|
-
return Ie(() => t._subscribe({
|
|
144
|
-
name: a,
|
|
145
|
-
formState: b.current,
|
|
146
|
-
exact: c,
|
|
147
|
-
callback: (g) => {
|
|
148
|
-
!l && f({
|
|
149
|
-
...t._formState,
|
|
150
|
-
...g
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}), [a, l, c]), D.useEffect(() => {
|
|
154
|
-
b.current.isValid && t._setValid(!0);
|
|
155
|
-
}, [t]), D.useMemo(() => ht(m, t, b.current, !1), [m, t]);
|
|
156
|
-
}
|
|
157
|
-
var gt = (e) => typeof e == "string", xe = (e, s, t, l, a) => gt(e) ? O(t, e, a) : Array.isArray(e) ? e.map((c) => O(t, c)) : t, be = (e) => de(e) || !Ve(e);
|
|
158
|
-
function Z(e, s, t = /* @__PURE__ */ new WeakSet()) {
|
|
159
|
-
if (be(e) || be(s))
|
|
160
|
-
return Object.is(e, s);
|
|
161
|
-
if (K(e) && K(s))
|
|
162
|
-
return Object.is(e.getTime(), s.getTime());
|
|
163
|
-
const l = Object.keys(e), a = Object.keys(s);
|
|
164
|
-
if (l.length !== a.length)
|
|
165
|
-
return !1;
|
|
166
|
-
if (t.has(e) || t.has(s))
|
|
167
|
-
return !0;
|
|
168
|
-
t.add(e), t.add(s);
|
|
169
|
-
for (const c of l) {
|
|
170
|
-
const m = e[c];
|
|
171
|
-
if (!a.includes(c))
|
|
172
|
-
return !1;
|
|
173
|
-
if (c !== "ref") {
|
|
174
|
-
const f = s[c];
|
|
175
|
-
if (K(m) && K(f) || z(m) && z(f) || Array.isArray(m) && Array.isArray(f) ? !Z(m, f, t) : !Object.is(m, f))
|
|
176
|
-
return !1;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return !0;
|
|
180
|
-
}
|
|
181
|
-
function yt(e) {
|
|
182
|
-
const s = me(), { control: t = s, name: l, defaultValue: a, disabled: c, exact: m, compute: f } = e || {}, b = D.useRef(a), g = D.useRef(f), S = D.useRef(void 0), h = D.useRef(t), d = D.useRef(l);
|
|
183
|
-
g.current = f;
|
|
184
|
-
const [N, u] = D.useState(() => {
|
|
185
|
-
const n = t._getWatch(l, b.current);
|
|
186
|
-
return g.current ? g.current(n) : n;
|
|
187
|
-
}), p = D.useCallback((n) => {
|
|
188
|
-
const k = xe(l, t._names, n || t._formValues, !1, b.current);
|
|
189
|
-
return g.current ? g.current(k) : k;
|
|
190
|
-
}, [t._formValues, t._names, l]), y = D.useCallback((n) => {
|
|
191
|
-
if (!c) {
|
|
192
|
-
const k = xe(l, t._names, n || t._formValues, !1, b.current);
|
|
193
|
-
if (g.current) {
|
|
194
|
-
const C = g.current(k);
|
|
195
|
-
Z(C, S.current) || (u(C), S.current = C);
|
|
196
|
-
} else
|
|
197
|
-
u(k);
|
|
198
|
-
}
|
|
199
|
-
}, [t._formValues, t._names, c, l]);
|
|
200
|
-
Ie(() => ((h.current !== t || !Z(d.current, l)) && (h.current = t, d.current = l, y()), t._subscribe({
|
|
201
|
-
name: l,
|
|
202
|
-
formState: {
|
|
203
|
-
values: !0
|
|
204
|
-
},
|
|
205
|
-
exact: m,
|
|
206
|
-
callback: (n) => {
|
|
207
|
-
y(n.values);
|
|
208
|
-
}
|
|
209
|
-
})), [t, m, l, y]), D.useEffect(() => t._removeUnmounted());
|
|
210
|
-
const w = h.current !== t, o = d.current, P = D.useMemo(() => {
|
|
211
|
-
if (c)
|
|
212
|
-
return null;
|
|
213
|
-
const n = !w && !Z(o, l);
|
|
214
|
-
return w || n ? p() : null;
|
|
215
|
-
}, [c, w, l, o, p]);
|
|
216
|
-
return P !== null ? P : N;
|
|
217
|
-
}
|
|
218
|
-
function xt(e) {
|
|
219
|
-
const s = me(), { name: t, disabled: l, control: a = s, shouldUnregister: c, defaultValue: m, exact: f = !0 } = e, b = ut(a._names.array, t), g = D.useMemo(() => O(a._formValues, t, O(a._defaultValues, t, m)), [a, t, m]), S = yt({
|
|
220
|
-
control: a,
|
|
221
|
-
name: t,
|
|
222
|
-
defaultValue: g,
|
|
223
|
-
exact: f
|
|
224
|
-
}), h = Nt({
|
|
225
|
-
control: a,
|
|
226
|
-
name: t,
|
|
227
|
-
exact: f
|
|
228
|
-
}), d = D.useRef(e), N = D.useRef(void 0), u = D.useRef(a.register(t, {
|
|
229
|
-
...e.rules,
|
|
230
|
-
value: S,
|
|
231
|
-
...oe(e.disabled) ? { disabled: e.disabled } : {}
|
|
232
|
-
}));
|
|
233
|
-
d.current = e;
|
|
234
|
-
const p = D.useMemo(() => Object.defineProperties({}, {
|
|
235
|
-
invalid: {
|
|
236
|
-
enumerable: !0,
|
|
237
|
-
get: () => !!O(h.errors, t)
|
|
238
|
-
},
|
|
239
|
-
isDirty: {
|
|
240
|
-
enumerable: !0,
|
|
241
|
-
get: () => !!O(h.dirtyFields, t)
|
|
242
|
-
},
|
|
243
|
-
isTouched: {
|
|
244
|
-
enumerable: !0,
|
|
245
|
-
get: () => !!O(h.touchedFields, t)
|
|
246
|
-
},
|
|
247
|
-
isValidating: {
|
|
248
|
-
enumerable: !0,
|
|
249
|
-
get: () => !!O(h.validatingFields, t)
|
|
250
|
-
},
|
|
251
|
-
error: {
|
|
252
|
-
enumerable: !0,
|
|
253
|
-
get: () => O(h.errors, t)
|
|
254
|
-
}
|
|
255
|
-
}), [h, t]), y = D.useCallback((n) => u.current.onChange({
|
|
256
|
-
target: {
|
|
257
|
-
value: it(n),
|
|
258
|
-
name: t
|
|
259
|
-
},
|
|
260
|
-
type: ge.CHANGE
|
|
261
|
-
}), [t]), w = D.useCallback(() => u.current.onBlur({
|
|
262
|
-
target: {
|
|
263
|
-
value: O(a._formValues, t),
|
|
264
|
-
name: t
|
|
265
|
-
},
|
|
266
|
-
type: ge.BLUR
|
|
267
|
-
}), [t, a._formValues]), o = D.useCallback((n) => {
|
|
268
|
-
const k = O(a._fields, t);
|
|
269
|
-
k && k._f && n && (k._f.ref = {
|
|
270
|
-
focus: () => X(n.focus) && n.focus(),
|
|
271
|
-
select: () => X(n.select) && n.select(),
|
|
272
|
-
setCustomValidity: (C) => X(n.setCustomValidity) && n.setCustomValidity(C),
|
|
273
|
-
reportValidity: () => X(n.reportValidity) && n.reportValidity()
|
|
274
|
-
});
|
|
275
|
-
}, [a._fields, t]), P = D.useMemo(() => ({
|
|
276
|
-
name: t,
|
|
277
|
-
value: S,
|
|
278
|
-
...oe(l) || h.disabled ? { disabled: h.disabled || l } : {},
|
|
279
|
-
onChange: y,
|
|
280
|
-
onBlur: w,
|
|
281
|
-
ref: o
|
|
282
|
-
}), [t, l, h.disabled, y, w, o, S]);
|
|
283
|
-
return D.useEffect(() => {
|
|
284
|
-
const n = a._options.shouldUnregister || c, k = N.current;
|
|
285
|
-
k && k !== t && !b && a.unregister(k), a.register(t, {
|
|
286
|
-
...d.current.rules,
|
|
287
|
-
...oe(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
288
|
-
});
|
|
289
|
-
const C = (_, L) => {
|
|
290
|
-
const M = O(a._fields, _);
|
|
291
|
-
M && M._f && (M._f.mount = L);
|
|
292
|
-
};
|
|
293
|
-
if (C(t, !0), n) {
|
|
294
|
-
const _ = Me(O(a._options.defaultValues, t, d.current.defaultValue));
|
|
295
|
-
Ne(a._defaultValues, t, _), ce(O(a._formValues, t)) && Ne(a._formValues, t, _);
|
|
296
|
-
}
|
|
297
|
-
return !b && a.register(t), N.current = t, () => {
|
|
298
|
-
(b ? n && !a._state.action : n) ? a.unregister(t) : C(t, !1);
|
|
299
|
-
};
|
|
300
|
-
}, [t, a, b, c]), D.useEffect(() => {
|
|
301
|
-
a._setDisabledField({
|
|
302
|
-
disabled: l,
|
|
303
|
-
name: t
|
|
304
|
-
});
|
|
305
|
-
}, [l, t, a]), D.useMemo(() => ({
|
|
306
|
-
field: P,
|
|
307
|
-
formState: h,
|
|
308
|
-
fieldState: p
|
|
309
|
-
}), [P, h, p]);
|
|
310
|
-
}
|
|
311
|
-
const bt = (e) => e.render(xt(e)), fe = D.createContext(null);
|
|
312
|
-
fe.displayName = "HookFormContext";
|
|
313
|
-
const wt = () => D.useContext(fe), vt = (e) => {
|
|
314
|
-
const { children: s, watch: t, getValues: l, getFieldState: a, setError: c, clearErrors: m, setValue: f, trigger: b, formState: g, resetField: S, reset: h, handleSubmit: d, unregister: N, control: u, register: p, setFocus: y, subscribe: w } = e;
|
|
315
|
-
return D.createElement(
|
|
316
|
-
fe.Provider,
|
|
317
|
-
{ value: D.useMemo(() => ({
|
|
318
|
-
watch: t,
|
|
319
|
-
getValues: l,
|
|
320
|
-
getFieldState: a,
|
|
321
|
-
setError: c,
|
|
322
|
-
clearErrors: m,
|
|
323
|
-
setValue: f,
|
|
324
|
-
trigger: b,
|
|
325
|
-
formState: g,
|
|
326
|
-
resetField: S,
|
|
327
|
-
reset: h,
|
|
328
|
-
handleSubmit: d,
|
|
329
|
-
unregister: N,
|
|
330
|
-
control: u,
|
|
331
|
-
register: p,
|
|
332
|
-
setFocus: y,
|
|
333
|
-
subscribe: w
|
|
334
|
-
}), [
|
|
335
|
-
m,
|
|
336
|
-
u,
|
|
337
|
-
g,
|
|
338
|
-
a,
|
|
339
|
-
l,
|
|
340
|
-
d,
|
|
341
|
-
p,
|
|
342
|
-
h,
|
|
343
|
-
S,
|
|
344
|
-
c,
|
|
345
|
-
y,
|
|
346
|
-
f,
|
|
347
|
-
w,
|
|
348
|
-
b,
|
|
349
|
-
N,
|
|
350
|
-
t
|
|
351
|
-
]) },
|
|
352
|
-
D.createElement(ue.Provider, { value: u }, s)
|
|
353
|
-
);
|
|
354
|
-
}, ir = vt, Ae = x.createContext({}), dr = ({
|
|
355
|
-
...e
|
|
356
|
-
}) => /* @__PURE__ */ r(Ae.Provider, { value: { name: e.name }, children: /* @__PURE__ */ r(bt, { ...e }) }), le = () => {
|
|
357
|
-
const e = x.useContext(Ae), s = x.useContext(_e), { getFieldState: t, formState: l } = wt(), a = t(e.name, l);
|
|
358
|
-
if (!e)
|
|
359
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
360
|
-
const { id: c } = s;
|
|
361
|
-
return {
|
|
362
|
-
id: c,
|
|
363
|
-
name: e.name,
|
|
364
|
-
formItemId: `${c}-form-item`,
|
|
365
|
-
formDescriptionId: `${c}-form-item-description`,
|
|
366
|
-
formMessageId: `${c}-form-item-message`,
|
|
367
|
-
...a
|
|
368
|
-
};
|
|
369
|
-
}, _e = x.createContext({}), St = x.forwardRef(
|
|
370
|
-
({ className: e, ...s }, t) => {
|
|
371
|
-
const l = x.useId();
|
|
372
|
-
return /* @__PURE__ */ r(_e.Provider, { value: { id: l }, children: /* @__PURE__ */ r("div", { ref: t, className: F("space-y-2", e), ...s }) });
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
St.displayName = "FormItem";
|
|
376
|
-
const kt = x.forwardRef(({ className: e, ...s }, t) => {
|
|
377
|
-
const { error: l, formItemId: a } = le();
|
|
378
|
-
return /* @__PURE__ */ r(
|
|
379
|
-
W,
|
|
380
|
-
{
|
|
381
|
-
ref: t,
|
|
382
|
-
className: F(l && "text-destructive", e),
|
|
383
|
-
htmlFor: a,
|
|
384
|
-
...s
|
|
385
|
-
}
|
|
386
|
-
);
|
|
387
|
-
});
|
|
388
|
-
kt.displayName = "FormLabel";
|
|
389
|
-
const Ft = x.forwardRef(({ ...e }, s) => {
|
|
390
|
-
const { error: t, formItemId: l, formDescriptionId: a, formMessageId: c } = le();
|
|
391
|
-
return /* @__PURE__ */ r(
|
|
392
|
-
Le,
|
|
393
|
-
{
|
|
394
|
-
ref: s,
|
|
395
|
-
id: l,
|
|
396
|
-
"aria-describedby": t ? `${a} ${c}` : `${a}`,
|
|
397
|
-
"aria-invalid": !!t,
|
|
398
|
-
...e
|
|
399
|
-
}
|
|
400
|
-
);
|
|
401
|
-
});
|
|
402
|
-
Ft.displayName = "FormControl";
|
|
403
|
-
const Pt = x.forwardRef(({ className: e, ...s }, t) => {
|
|
404
|
-
const { formDescriptionId: l } = le();
|
|
405
|
-
return /* @__PURE__ */ r(
|
|
406
|
-
"p",
|
|
407
|
-
{
|
|
408
|
-
ref: t,
|
|
409
|
-
id: l,
|
|
410
|
-
className: F("text-sm text-muted-foreground", e),
|
|
411
|
-
...s
|
|
412
|
-
}
|
|
413
|
-
);
|
|
414
|
-
});
|
|
415
|
-
Pt.displayName = "FormDescription";
|
|
416
|
-
const Dt = x.forwardRef(({ className: e, children: s, ...t }, l) => {
|
|
417
|
-
const { error: a, formMessageId: c } = le(), m = a ? String(a == null ? void 0 : a.message) : s;
|
|
418
|
-
return m ? /* @__PURE__ */ r(
|
|
419
|
-
"p",
|
|
420
|
-
{
|
|
421
|
-
ref: l,
|
|
422
|
-
id: c,
|
|
423
|
-
className: F("text-sm font-medium text-destructive", e),
|
|
424
|
-
...t,
|
|
425
|
-
children: m
|
|
426
|
-
}
|
|
427
|
-
) : null;
|
|
428
|
-
});
|
|
429
|
-
Dt.displayName = "FormMessage";
|
|
430
|
-
function ur({
|
|
431
|
-
value: e,
|
|
432
|
-
onChange: s,
|
|
433
|
-
placeholder: t,
|
|
434
|
-
disabled: l = !1,
|
|
435
|
-
className: a,
|
|
436
|
-
dateFormat: c = "PPP"
|
|
437
|
-
}) {
|
|
438
|
-
const { t: m, formatDate: f } = ke(), b = t || m("date.selectDate");
|
|
439
|
-
return /* @__PURE__ */ i(H, { children: [
|
|
440
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
441
|
-
A,
|
|
442
|
-
{
|
|
443
|
-
variant: "outline",
|
|
444
|
-
disabled: l,
|
|
445
|
-
className: F(
|
|
446
|
-
"w-full justify-start text-left font-normal",
|
|
447
|
-
!e && "text-muted-foreground",
|
|
448
|
-
a
|
|
449
|
-
),
|
|
450
|
-
children: [
|
|
451
|
-
/* @__PURE__ */ r(Fe, { className: "mr-2 h-4 w-4" }),
|
|
452
|
-
e ? f(e, c) : /* @__PURE__ */ r("span", { children: b })
|
|
453
|
-
]
|
|
454
|
-
}
|
|
455
|
-
) }),
|
|
456
|
-
/* @__PURE__ */ r(B, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ r(Se, { mode: "single", selected: e, onSelect: s, initialFocus: !0 }) })
|
|
457
|
-
] });
|
|
458
|
-
}
|
|
459
|
-
const Vt = x.forwardRef(
|
|
460
|
-
({
|
|
461
|
-
value: e,
|
|
462
|
-
onChange: s,
|
|
463
|
-
placeholder: t = "Pick a date range",
|
|
464
|
-
disabled: l = !1,
|
|
465
|
-
className: a,
|
|
466
|
-
dateFormat: c = "LLL dd, y",
|
|
467
|
-
numberOfMonths: m = 2
|
|
468
|
-
}, f) => /* @__PURE__ */ r("div", { className: F("grid gap-2", a), children: /* @__PURE__ */ i(H, { children: [
|
|
469
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
470
|
-
A,
|
|
471
|
-
{
|
|
472
|
-
ref: f,
|
|
473
|
-
id: "date",
|
|
474
|
-
variant: "outline",
|
|
475
|
-
disabled: l,
|
|
476
|
-
className: F(
|
|
477
|
-
"w-full justify-start text-left font-normal",
|
|
478
|
-
!e && "text-muted-foreground"
|
|
479
|
-
),
|
|
480
|
-
children: [
|
|
481
|
-
/* @__PURE__ */ r(Fe, { className: "mr-2 h-4 w-4" }),
|
|
482
|
-
e != null && e.from ? e.to ? /* @__PURE__ */ i(ve, { children: [
|
|
483
|
-
ne(e.from, c),
|
|
484
|
-
" - ",
|
|
485
|
-
ne(e.to, c)
|
|
486
|
-
] }) : ne(e.from, c) : /* @__PURE__ */ r("span", { children: t })
|
|
487
|
-
]
|
|
488
|
-
}
|
|
489
|
-
) }),
|
|
490
|
-
/* @__PURE__ */ r(B, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ r(
|
|
491
|
-
Se,
|
|
492
|
-
{
|
|
493
|
-
initialFocus: !0,
|
|
494
|
-
mode: "range",
|
|
495
|
-
defaultMonth: e == null ? void 0 : e.from,
|
|
496
|
-
selected: e,
|
|
497
|
-
onSelect: s,
|
|
498
|
-
numberOfMonths: m
|
|
499
|
-
}
|
|
500
|
-
) })
|
|
501
|
-
] }) })
|
|
502
|
-
);
|
|
503
|
-
Vt.displayName = "DateRangePicker";
|
|
504
|
-
const Mt = x.forwardRef(
|
|
505
|
-
({
|
|
506
|
-
className: e,
|
|
507
|
-
value: s,
|
|
508
|
-
onChange: t,
|
|
509
|
-
onSearch: l,
|
|
510
|
-
onClear: a,
|
|
511
|
-
showClearButton: c = !0,
|
|
512
|
-
loading: m = !1,
|
|
513
|
-
placeholder: f = "Search...",
|
|
514
|
-
...b
|
|
515
|
-
}, g) => {
|
|
516
|
-
const S = (N) => {
|
|
517
|
-
t == null || t(N.target.value);
|
|
518
|
-
}, h = () => {
|
|
519
|
-
t == null || t(""), a == null || a();
|
|
520
|
-
}, d = (N) => {
|
|
521
|
-
N.key === "Enter" && (l == null || l(s || ""));
|
|
522
|
-
};
|
|
523
|
-
return /* @__PURE__ */ i("div", { className: F("relative", e), children: [
|
|
524
|
-
/* @__PURE__ */ r(Pe, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
525
|
-
/* @__PURE__ */ r(
|
|
526
|
-
G,
|
|
527
|
-
{
|
|
528
|
-
ref: g,
|
|
529
|
-
type: "text",
|
|
530
|
-
value: s,
|
|
531
|
-
onChange: S,
|
|
532
|
-
onKeyDown: d,
|
|
533
|
-
placeholder: f,
|
|
534
|
-
className: F("pl-9", c && s && "pr-9"),
|
|
535
|
-
...b
|
|
536
|
-
}
|
|
537
|
-
),
|
|
538
|
-
c && s && !m && /* @__PURE__ */ i(
|
|
539
|
-
A,
|
|
540
|
-
{
|
|
541
|
-
type: "button",
|
|
542
|
-
variant: "ghost",
|
|
543
|
-
size: "icon",
|
|
544
|
-
className: "absolute right-1 top-1/2 h-7 w-7 -translate-y-1/2",
|
|
545
|
-
onClick: h,
|
|
546
|
-
children: [
|
|
547
|
-
/* @__PURE__ */ r($, { className: "h-4 w-4" }),
|
|
548
|
-
/* @__PURE__ */ r("span", { className: "sr-only", children: "Clear" })
|
|
549
|
-
]
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
m && /* @__PURE__ */ r("div", { className: "absolute right-3 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ r("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent" }) })
|
|
553
|
-
] });
|
|
554
|
-
}
|
|
555
|
-
);
|
|
556
|
-
Mt.displayName = "SearchInput";
|
|
557
|
-
const Rt = x.forwardRef(
|
|
558
|
-
({
|
|
559
|
-
value: e = [],
|
|
560
|
-
onChange: s,
|
|
561
|
-
accept: t,
|
|
562
|
-
multiple: l = !1,
|
|
563
|
-
maxFiles: a = 10,
|
|
564
|
-
maxSize: c = 10 * 1024 * 1024,
|
|
565
|
-
disabled: m = !1,
|
|
566
|
-
className: f
|
|
567
|
-
}, b) => {
|
|
568
|
-
const g = x.useRef(null), [S, h] = x.useState(!1), d = (o) => {
|
|
569
|
-
if (!o) return;
|
|
570
|
-
const n = Array.from(o).filter((C) => !(C.size > c)), k = l ? [...e, ...n].slice(0, a) : n.slice(0, 1);
|
|
571
|
-
s == null || s(k);
|
|
572
|
-
}, N = (o) => {
|
|
573
|
-
o.preventDefault(), o.stopPropagation(), o.type === "dragenter" || o.type === "dragover" ? h(!0) : o.type === "dragleave" && h(!1);
|
|
574
|
-
}, u = (o) => {
|
|
575
|
-
o.preventDefault(), o.stopPropagation(), h(!1), m || d(o.dataTransfer.files);
|
|
576
|
-
}, p = (o) => {
|
|
577
|
-
d(o.target.files);
|
|
578
|
-
}, y = (o) => {
|
|
579
|
-
const P = e.filter((n, k) => k !== o);
|
|
580
|
-
s == null || s(P);
|
|
581
|
-
}, w = (o) => {
|
|
582
|
-
if (o === 0) return "0 Bytes";
|
|
583
|
-
const P = 1024, n = ["Bytes", "KB", "MB", "GB"], k = Math.floor(Math.log(o) / Math.log(P));
|
|
584
|
-
return parseFloat((o / Math.pow(P, k)).toFixed(2)) + " " + n[k];
|
|
585
|
-
};
|
|
586
|
-
return /* @__PURE__ */ i("div", { ref: b, className: F("space-y-4", f), children: [
|
|
587
|
-
/* @__PURE__ */ i(
|
|
588
|
-
"div",
|
|
589
|
-
{
|
|
590
|
-
className: F(
|
|
591
|
-
"relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed p-6 transition-colors",
|
|
592
|
-
S ? "border-primary bg-primary/5" : "border-muted-foreground/25",
|
|
593
|
-
m && "cursor-not-allowed opacity-50"
|
|
594
|
-
),
|
|
595
|
-
onDragEnter: N,
|
|
596
|
-
onDragLeave: N,
|
|
597
|
-
onDragOver: N,
|
|
598
|
-
onDrop: u,
|
|
599
|
-
children: [
|
|
600
|
-
/* @__PURE__ */ r(
|
|
601
|
-
"input",
|
|
602
|
-
{
|
|
603
|
-
ref: g,
|
|
604
|
-
type: "file",
|
|
605
|
-
accept: t,
|
|
606
|
-
multiple: l,
|
|
607
|
-
disabled: m,
|
|
608
|
-
onChange: p,
|
|
609
|
-
className: "absolute inset-0 cursor-pointer opacity-0"
|
|
610
|
-
}
|
|
611
|
-
),
|
|
612
|
-
/* @__PURE__ */ r(ot, { className: "mb-2 h-10 w-10 text-muted-foreground" }),
|
|
613
|
-
/* @__PURE__ */ r("p", { className: "mb-1 text-sm font-medium", children: "Drag & drop files here, or click to select" }),
|
|
614
|
-
/* @__PURE__ */ i("p", { className: "text-xs text-muted-foreground", children: [
|
|
615
|
-
l ? `Up to ${a} files` : "Single file",
|
|
616
|
-
" (max",
|
|
617
|
-
" ",
|
|
618
|
-
w(c),
|
|
619
|
-
" each)"
|
|
620
|
-
] })
|
|
621
|
-
]
|
|
622
|
-
}
|
|
623
|
-
),
|
|
624
|
-
e.length > 0 && /* @__PURE__ */ r("div", { className: "space-y-2", children: e.map((o, P) => /* @__PURE__ */ i(
|
|
625
|
-
"div",
|
|
626
|
-
{
|
|
627
|
-
className: "flex items-center justify-between rounded-lg border p-3",
|
|
628
|
-
children: [
|
|
629
|
-
/* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
|
|
630
|
-
/* @__PURE__ */ r(Ye, { className: "h-8 w-8 text-muted-foreground" }),
|
|
631
|
-
/* @__PURE__ */ i("div", { children: [
|
|
632
|
-
/* @__PURE__ */ r("p", { className: "text-sm font-medium", children: o.name }),
|
|
633
|
-
/* @__PURE__ */ r("p", { className: "text-xs text-muted-foreground", children: w(o.size) })
|
|
634
|
-
] })
|
|
635
|
-
] }),
|
|
636
|
-
/* @__PURE__ */ r(
|
|
637
|
-
A,
|
|
638
|
-
{
|
|
639
|
-
type: "button",
|
|
640
|
-
variant: "ghost",
|
|
641
|
-
size: "icon",
|
|
642
|
-
onClick: () => y(P),
|
|
643
|
-
disabled: m,
|
|
644
|
-
children: /* @__PURE__ */ r($, { className: "h-4 w-4" })
|
|
645
|
-
}
|
|
646
|
-
)
|
|
647
|
-
]
|
|
648
|
-
},
|
|
649
|
-
`${o.name}-${P}`
|
|
650
|
-
)) })
|
|
651
|
-
] });
|
|
652
|
-
}
|
|
653
|
-
);
|
|
654
|
-
Rt.displayName = "FileUpload";
|
|
655
|
-
const Ct = x.forwardRef(
|
|
656
|
-
({
|
|
657
|
-
options: e,
|
|
658
|
-
value: s,
|
|
659
|
-
onChange: t,
|
|
660
|
-
placeholder: l = "Select option...",
|
|
661
|
-
searchPlaceholder: a = "Search...",
|
|
662
|
-
emptyMessage: c = "No results found.",
|
|
663
|
-
disabled: m = !1,
|
|
664
|
-
className: f
|
|
665
|
-
}, b) => {
|
|
666
|
-
const [g, S] = x.useState(!1), h = e.find((d) => d.value === s);
|
|
667
|
-
return /* @__PURE__ */ i(H, { open: g, onOpenChange: S, children: [
|
|
668
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
669
|
-
A,
|
|
670
|
-
{
|
|
671
|
-
ref: b,
|
|
672
|
-
variant: "outline",
|
|
673
|
-
role: "combobox",
|
|
674
|
-
"aria-expanded": g,
|
|
675
|
-
disabled: m,
|
|
676
|
-
className: F("w-full justify-between", !s && "text-muted-foreground", f),
|
|
677
|
-
children: [
|
|
678
|
-
h ? h.label : l,
|
|
679
|
-
/* @__PURE__ */ r(ie, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
680
|
-
]
|
|
681
|
-
}
|
|
682
|
-
) }),
|
|
683
|
-
/* @__PURE__ */ r(B, { className: "w-full p-0", align: "start", children: /* @__PURE__ */ i(ee, { children: [
|
|
684
|
-
/* @__PURE__ */ r(te, { placeholder: a }),
|
|
685
|
-
/* @__PURE__ */ i(re, { children: [
|
|
686
|
-
/* @__PURE__ */ r(se, { children: c }),
|
|
687
|
-
/* @__PURE__ */ r(Y, { children: e.map((d) => /* @__PURE__ */ i(
|
|
688
|
-
Q,
|
|
689
|
-
{
|
|
690
|
-
value: d.value,
|
|
691
|
-
disabled: d.disabled,
|
|
692
|
-
onSelect: (N) => {
|
|
693
|
-
t == null || t(N === s ? "" : N), S(!1);
|
|
694
|
-
},
|
|
695
|
-
children: [
|
|
696
|
-
/* @__PURE__ */ r(
|
|
697
|
-
J,
|
|
698
|
-
{
|
|
699
|
-
className: F(
|
|
700
|
-
"mr-2 h-4 w-4",
|
|
701
|
-
s === d.value ? "opacity-100" : "opacity-0"
|
|
702
|
-
)
|
|
703
|
-
}
|
|
704
|
-
),
|
|
705
|
-
d.label
|
|
706
|
-
]
|
|
707
|
-
},
|
|
708
|
-
d.value
|
|
709
|
-
)) })
|
|
710
|
-
] })
|
|
711
|
-
] }) })
|
|
712
|
-
] });
|
|
713
|
-
}
|
|
714
|
-
);
|
|
715
|
-
Ct.displayName = "Combobox";
|
|
716
|
-
const It = x.forwardRef(
|
|
717
|
-
({
|
|
718
|
-
value: e = [],
|
|
719
|
-
onChange: s,
|
|
720
|
-
placeholder: t = "Add tag...",
|
|
721
|
-
maxTags: l = 10,
|
|
722
|
-
allowDuplicates: a = !1,
|
|
723
|
-
disabled: c = !1,
|
|
724
|
-
className: m
|
|
725
|
-
}, f) => {
|
|
726
|
-
const [b, g] = x.useState(""), S = x.useRef(null), h = (u) => {
|
|
727
|
-
const p = u.trim();
|
|
728
|
-
p && (e.length >= l || !a && e.includes(p) || (s == null || s([...e, p]), g("")));
|
|
729
|
-
}, d = (u) => {
|
|
730
|
-
const p = e.filter((y, w) => w !== u);
|
|
731
|
-
s == null || s(p);
|
|
732
|
-
}, N = (u) => {
|
|
733
|
-
u.key === "Enter" ? (u.preventDefault(), h(b)) : u.key === "Backspace" && !b && e.length > 0 ? d(e.length - 1) : u.key === "," && (u.preventDefault(), h(b));
|
|
734
|
-
};
|
|
735
|
-
return /* @__PURE__ */ i(
|
|
736
|
-
"div",
|
|
737
|
-
{
|
|
738
|
-
ref: f,
|
|
739
|
-
className: F(
|
|
740
|
-
"flex min-h-10 w-full flex-wrap items-center gap-2 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
|
|
741
|
-
c && "cursor-not-allowed opacity-50",
|
|
742
|
-
m
|
|
743
|
-
),
|
|
744
|
-
onClick: () => {
|
|
745
|
-
var u;
|
|
746
|
-
return (u = S.current) == null ? void 0 : u.focus();
|
|
747
|
-
},
|
|
748
|
-
children: [
|
|
749
|
-
e.map((u, p) => /* @__PURE__ */ i(j, { variant: "secondary", className: "gap-1", children: [
|
|
750
|
-
u,
|
|
751
|
-
!c && /* @__PURE__ */ r(
|
|
752
|
-
"button",
|
|
753
|
-
{
|
|
754
|
-
type: "button",
|
|
755
|
-
onClick: (y) => {
|
|
756
|
-
y.stopPropagation(), d(p);
|
|
757
|
-
},
|
|
758
|
-
className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
759
|
-
children: /* @__PURE__ */ r($, { className: "h-3 w-3" })
|
|
760
|
-
}
|
|
761
|
-
)
|
|
762
|
-
] }, `${u}-${p}`)),
|
|
763
|
-
/* @__PURE__ */ r(
|
|
764
|
-
G,
|
|
765
|
-
{
|
|
766
|
-
ref: S,
|
|
767
|
-
type: "text",
|
|
768
|
-
value: b,
|
|
769
|
-
onChange: (u) => g(u.target.value),
|
|
770
|
-
onKeyDown: N,
|
|
771
|
-
placeholder: e.length === 0 ? t : "",
|
|
772
|
-
disabled: c || e.length >= l,
|
|
773
|
-
className: "flex-1 border-0 bg-transparent p-0 placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0"
|
|
774
|
-
}
|
|
775
|
-
)
|
|
776
|
-
]
|
|
777
|
-
}
|
|
778
|
-
);
|
|
779
|
-
}
|
|
780
|
-
);
|
|
781
|
-
It.displayName = "TagInput";
|
|
782
|
-
const At = x.forwardRef(
|
|
783
|
-
({
|
|
784
|
-
value: e,
|
|
785
|
-
onChange: s,
|
|
786
|
-
format: t = "24h",
|
|
787
|
-
minuteStep: l = 1,
|
|
788
|
-
placeholder: a,
|
|
789
|
-
disabled: c = !1,
|
|
790
|
-
className: m,
|
|
791
|
-
error: f
|
|
792
|
-
}, b) => {
|
|
793
|
-
const { t: g } = ke(), [S, h] = x.useState(!1), [d, N] = x.useState(0), [u, p] = x.useState(0), [y, w] = x.useState("AM");
|
|
794
|
-
x.useEffect(() => {
|
|
795
|
-
if (e) {
|
|
796
|
-
const [R, v] = e.split(":").map(Number);
|
|
797
|
-
t === "12h" ? (N(R > 12 ? R - 12 : R === 0 ? 12 : R), w(R >= 12 ? "PM" : "AM")) : N(R), p(v);
|
|
798
|
-
}
|
|
799
|
-
}, [e, t]);
|
|
800
|
-
const o = (R, v, V) => {
|
|
801
|
-
let I = R;
|
|
802
|
-
if (t === "12h") {
|
|
803
|
-
const T = V ?? y;
|
|
804
|
-
T === "PM" && I !== 12 && (I += 12), T === "AM" && I === 12 && (I = 0);
|
|
805
|
-
}
|
|
806
|
-
const E = `${I.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
|
|
807
|
-
s == null || s(E);
|
|
808
|
-
}, P = () => {
|
|
809
|
-
const R = t === "12h" ? 12 : 23, v = t === "12h" ? 1 : 0, V = d >= R ? v : d + 1;
|
|
810
|
-
N(V), o(V, u);
|
|
811
|
-
}, n = () => {
|
|
812
|
-
const R = t === "12h" ? 12 : 23, V = d <= (t === "12h" ? 1 : 0) ? R : d - 1;
|
|
813
|
-
N(V), o(V, u);
|
|
814
|
-
}, k = () => {
|
|
815
|
-
const R = u >= 60 - l, v = R ? 0 : u + l;
|
|
816
|
-
let V = d, I = y;
|
|
817
|
-
if (R) {
|
|
818
|
-
const E = t === "12h" ? 12 : 23, T = t === "12h" ? 1 : 0;
|
|
819
|
-
V = d >= E ? T : d + 1, t === "12h" && d === 11 && (I = y === "AM" ? "PM" : "AM", w(I)), N(V);
|
|
820
|
-
}
|
|
821
|
-
p(v), o(V, v, t === "12h" ? I : void 0);
|
|
822
|
-
}, C = () => {
|
|
823
|
-
const R = u < l, v = R ? 60 - l : u - l;
|
|
824
|
-
let V = d, I = y;
|
|
825
|
-
if (R) {
|
|
826
|
-
const E = t === "12h" ? 12 : 23;
|
|
827
|
-
V = d <= (t === "12h" ? 1 : 0) ? E : d - 1, t === "12h" && d === 12 && (I = y === "AM" ? "PM" : "AM", w(I)), N(V);
|
|
828
|
-
}
|
|
829
|
-
p(v), o(V, v, t === "12h" ? I : void 0);
|
|
830
|
-
}, _ = () => {
|
|
831
|
-
const R = y === "AM" ? "PM" : "AM";
|
|
832
|
-
w(R), o(d, u, R);
|
|
833
|
-
}, L = x.useMemo(() => e ? t === "12h" ? `${d.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")} ${y}` : `${d.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")}` : "", [e, t, d, u, y]), M = a || g("time.selectTime");
|
|
834
|
-
return /* @__PURE__ */ i(H, { open: S, onOpenChange: h, children: [
|
|
835
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i("div", { className: F("relative", m), children: [
|
|
836
|
-
/* @__PURE__ */ r(
|
|
837
|
-
G,
|
|
838
|
-
{
|
|
839
|
-
ref: b,
|
|
840
|
-
readOnly: !0,
|
|
841
|
-
value: L,
|
|
842
|
-
placeholder: M,
|
|
843
|
-
disabled: c,
|
|
844
|
-
className: F("pr-10 cursor-pointer", f && "border-destructive"),
|
|
845
|
-
onClick: () => !c && h(!0)
|
|
846
|
-
}
|
|
847
|
-
),
|
|
848
|
-
/* @__PURE__ */ r(Te, { className: "absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" })
|
|
849
|
-
] }) }),
|
|
850
|
-
/* @__PURE__ */ r(B, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-4", children: [
|
|
851
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-1", children: [
|
|
852
|
-
/* @__PURE__ */ r(W, { className: "text-xs text-muted-foreground", children: g("time.hours") }),
|
|
853
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col items-center", children: [
|
|
854
|
-
/* @__PURE__ */ r(
|
|
855
|
-
A,
|
|
856
|
-
{
|
|
857
|
-
variant: "ghost",
|
|
858
|
-
size: "icon",
|
|
859
|
-
className: "h-8 w-8",
|
|
860
|
-
onClick: P,
|
|
861
|
-
children: /* @__PURE__ */ r(pe, { className: "h-4 w-4" })
|
|
862
|
-
}
|
|
863
|
-
),
|
|
864
|
-
/* @__PURE__ */ r("span", { className: "text-2xl font-bold tabular-nums", children: d.toString().padStart(2, "0") }),
|
|
865
|
-
/* @__PURE__ */ r(
|
|
866
|
-
A,
|
|
867
|
-
{
|
|
868
|
-
variant: "ghost",
|
|
869
|
-
size: "icon",
|
|
870
|
-
className: "h-8 w-8",
|
|
871
|
-
onClick: n,
|
|
872
|
-
children: /* @__PURE__ */ r(q, { className: "h-4 w-4" })
|
|
873
|
-
}
|
|
874
|
-
)
|
|
875
|
-
] })
|
|
876
|
-
] }),
|
|
877
|
-
/* @__PURE__ */ r("span", { className: "text-2xl font-bold", children: ":" }),
|
|
878
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-1", children: [
|
|
879
|
-
/* @__PURE__ */ r(W, { className: "text-xs text-muted-foreground", children: g("time.minutes") }),
|
|
880
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col items-center", children: [
|
|
881
|
-
/* @__PURE__ */ r(
|
|
882
|
-
A,
|
|
883
|
-
{
|
|
884
|
-
variant: "ghost",
|
|
885
|
-
size: "icon",
|
|
886
|
-
className: "h-8 w-8",
|
|
887
|
-
onClick: k,
|
|
888
|
-
children: /* @__PURE__ */ r(pe, { className: "h-4 w-4" })
|
|
889
|
-
}
|
|
890
|
-
),
|
|
891
|
-
/* @__PURE__ */ r("span", { className: "text-2xl font-bold tabular-nums", children: u.toString().padStart(2, "0") }),
|
|
892
|
-
/* @__PURE__ */ r(
|
|
893
|
-
A,
|
|
894
|
-
{
|
|
895
|
-
variant: "ghost",
|
|
896
|
-
size: "icon",
|
|
897
|
-
className: "h-8 w-8",
|
|
898
|
-
onClick: C,
|
|
899
|
-
children: /* @__PURE__ */ r(q, { className: "h-4 w-4" })
|
|
900
|
-
}
|
|
901
|
-
)
|
|
902
|
-
] })
|
|
903
|
-
] }),
|
|
904
|
-
t === "12h" && /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-1", children: [
|
|
905
|
-
/* @__PURE__ */ r(W, { className: "text-xs text-muted-foreground", children: g("time.period") }),
|
|
906
|
-
/* @__PURE__ */ r(
|
|
907
|
-
A,
|
|
908
|
-
{
|
|
909
|
-
variant: "outline",
|
|
910
|
-
className: "h-auto px-3 py-2 text-lg font-bold",
|
|
911
|
-
onClick: _,
|
|
912
|
-
children: y
|
|
913
|
-
}
|
|
914
|
-
)
|
|
915
|
-
] })
|
|
916
|
-
] }) })
|
|
917
|
-
] });
|
|
918
|
-
}
|
|
919
|
-
);
|
|
920
|
-
At.displayName = "TimePicker";
|
|
921
|
-
const _t = [
|
|
922
|
-
"#000000",
|
|
923
|
-
"#ffffff",
|
|
924
|
-
"#ef4444",
|
|
925
|
-
"#f97316",
|
|
926
|
-
"#f59e0b",
|
|
927
|
-
"#eab308",
|
|
928
|
-
"#84cc16",
|
|
929
|
-
"#22c55e",
|
|
930
|
-
"#10b981",
|
|
931
|
-
"#14b8a6",
|
|
932
|
-
"#06b6d4",
|
|
933
|
-
"#0ea5e9",
|
|
934
|
-
"#3b82f6",
|
|
935
|
-
"#6366f1",
|
|
936
|
-
"#8b5cf6",
|
|
937
|
-
"#a855f7",
|
|
938
|
-
"#d946ef",
|
|
939
|
-
"#ec4899",
|
|
940
|
-
"#f43f5e",
|
|
941
|
-
"#78716c",
|
|
942
|
-
"#737373",
|
|
943
|
-
"#71717a",
|
|
944
|
-
"#6b7280",
|
|
945
|
-
"#64748b"
|
|
946
|
-
], Lt = x.forwardRef(
|
|
947
|
-
({
|
|
948
|
-
value: e = "#000000",
|
|
949
|
-
onChange: s,
|
|
950
|
-
presetColors: t = _t,
|
|
951
|
-
showInput: l = !0,
|
|
952
|
-
showEyeDropper: a = !0,
|
|
953
|
-
placeholder: c = "Select color",
|
|
954
|
-
disabled: m = !1,
|
|
955
|
-
className: f
|
|
956
|
-
}, b) => {
|
|
957
|
-
const [g, S] = x.useState(!1), [h, d] = x.useState(e), N = typeof window < "u" && "EyeDropper" in window;
|
|
958
|
-
x.useEffect(() => {
|
|
959
|
-
d(e);
|
|
960
|
-
}, [e]);
|
|
961
|
-
const u = (w) => {
|
|
962
|
-
d(w), s == null || s(w);
|
|
963
|
-
}, p = (w) => {
|
|
964
|
-
const o = w.target.value;
|
|
965
|
-
d(o), /^#[0-9A-Fa-f]{6}$/.test(o) && (s == null || s(o));
|
|
966
|
-
}, y = async () => {
|
|
967
|
-
if (N)
|
|
968
|
-
try {
|
|
969
|
-
const o = await new window.EyeDropper().open();
|
|
970
|
-
u(o.sRGBHex);
|
|
971
|
-
} catch {
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
return /* @__PURE__ */ i(H, { open: g, onOpenChange: S, children: [
|
|
975
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
976
|
-
A,
|
|
977
|
-
{
|
|
978
|
-
ref: b,
|
|
979
|
-
variant: "outline",
|
|
980
|
-
disabled: m,
|
|
981
|
-
className: F("w-full justify-start gap-2", f),
|
|
982
|
-
children: [
|
|
983
|
-
/* @__PURE__ */ r(
|
|
984
|
-
"div",
|
|
985
|
-
{
|
|
986
|
-
className: "h-5 w-5 rounded border",
|
|
987
|
-
style: { backgroundColor: h }
|
|
988
|
-
}
|
|
989
|
-
),
|
|
990
|
-
/* @__PURE__ */ r("span", { className: "flex-1 text-left font-mono text-sm", children: h || c })
|
|
991
|
-
]
|
|
992
|
-
}
|
|
993
|
-
) }),
|
|
994
|
-
/* @__PURE__ */ r(B, { className: "w-64 p-3", align: "start", children: /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
995
|
-
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
996
|
-
/* @__PURE__ */ r(
|
|
997
|
-
"div",
|
|
998
|
-
{
|
|
999
|
-
className: "h-10 w-10 rounded-lg border",
|
|
1000
|
-
style: { backgroundColor: h }
|
|
1001
|
-
}
|
|
1002
|
-
),
|
|
1003
|
-
/* @__PURE__ */ i("div", { className: "flex-1", children: [
|
|
1004
|
-
/* @__PURE__ */ r(W, { className: "text-xs text-muted-foreground", children: "Current Color" }),
|
|
1005
|
-
/* @__PURE__ */ r("p", { className: "font-mono text-sm font-medium", children: h })
|
|
1006
|
-
] }),
|
|
1007
|
-
a && N && /* @__PURE__ */ r(
|
|
1008
|
-
A,
|
|
1009
|
-
{
|
|
1010
|
-
variant: "outline",
|
|
1011
|
-
size: "icon",
|
|
1012
|
-
onClick: y,
|
|
1013
|
-
title: "Pick color from screen",
|
|
1014
|
-
children: /* @__PURE__ */ r(nt, { className: "h-4 w-4" })
|
|
1015
|
-
}
|
|
1016
|
-
)
|
|
1017
|
-
] }),
|
|
1018
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-6 gap-1", children: t.map((w) => /* @__PURE__ */ r(
|
|
1019
|
-
"button",
|
|
1020
|
-
{
|
|
1021
|
-
className: F(
|
|
1022
|
-
"h-7 w-7 rounded-md border-2 transition-transform hover:scale-110",
|
|
1023
|
-
h.toLowerCase() === w.toLowerCase() ? "border-primary" : "border-transparent"
|
|
1024
|
-
),
|
|
1025
|
-
style: { backgroundColor: w },
|
|
1026
|
-
onClick: () => u(w),
|
|
1027
|
-
title: w
|
|
1028
|
-
},
|
|
1029
|
-
w
|
|
1030
|
-
)) }),
|
|
1031
|
-
l && /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
|
|
1032
|
-
/* @__PURE__ */ r(
|
|
1033
|
-
G,
|
|
1034
|
-
{
|
|
1035
|
-
type: "text",
|
|
1036
|
-
value: h,
|
|
1037
|
-
onChange: p,
|
|
1038
|
-
placeholder: "#000000",
|
|
1039
|
-
className: "font-mono",
|
|
1040
|
-
maxLength: 7
|
|
1041
|
-
}
|
|
1042
|
-
),
|
|
1043
|
-
/* @__PURE__ */ r(
|
|
1044
|
-
"input",
|
|
1045
|
-
{
|
|
1046
|
-
type: "color",
|
|
1047
|
-
value: h,
|
|
1048
|
-
onChange: (w) => u(w.target.value),
|
|
1049
|
-
className: "h-10 w-10 cursor-pointer rounded border bg-transparent p-1"
|
|
1050
|
-
}
|
|
1051
|
-
)
|
|
1052
|
-
] })
|
|
1053
|
-
] }) })
|
|
1054
|
-
] });
|
|
1055
|
-
}
|
|
1056
|
-
);
|
|
1057
|
-
Lt.displayName = "ColorPicker";
|
|
1058
|
-
const Ot = x.forwardRef(
|
|
1059
|
-
({
|
|
1060
|
-
options: e,
|
|
1061
|
-
value: s = [],
|
|
1062
|
-
onChange: t,
|
|
1063
|
-
placeholder: l = "Select items...",
|
|
1064
|
-
searchPlaceholder: a = "Search...",
|
|
1065
|
-
emptyMessage: c = "No items found.",
|
|
1066
|
-
maxDisplayedItems: m = 3,
|
|
1067
|
-
maxSelections: f,
|
|
1068
|
-
disabled: b = !1,
|
|
1069
|
-
className: g
|
|
1070
|
-
}, S) => {
|
|
1071
|
-
const [h, d] = x.useState(!1), N = e.filter((o) => s.includes(o.value)), u = f !== void 0 && s.length >= f, p = (o) => {
|
|
1072
|
-
s.includes(o) ? t == null || t(s.filter((P) => P !== o)) : u || t == null || t([...s, o]);
|
|
1073
|
-
}, y = (o, P) => {
|
|
1074
|
-
P.stopPropagation(), t == null || t(s.filter((n) => n !== o));
|
|
1075
|
-
}, w = (o) => {
|
|
1076
|
-
o.stopPropagation(), t == null || t([]);
|
|
1077
|
-
};
|
|
1078
|
-
return /* @__PURE__ */ i(H, { open: h, onOpenChange: d, children: [
|
|
1079
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1080
|
-
A,
|
|
1081
|
-
{
|
|
1082
|
-
ref: S,
|
|
1083
|
-
variant: "outline",
|
|
1084
|
-
role: "combobox",
|
|
1085
|
-
"aria-expanded": h,
|
|
1086
|
-
disabled: b,
|
|
1087
|
-
className: F(
|
|
1088
|
-
"w-full justify-between font-normal",
|
|
1089
|
-
N.length === 0 && "text-muted-foreground",
|
|
1090
|
-
g
|
|
1091
|
-
),
|
|
1092
|
-
children: [
|
|
1093
|
-
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: N.length === 0 ? l : N.length <= m ? N.map((o) => /* @__PURE__ */ i(
|
|
1094
|
-
j,
|
|
1095
|
-
{
|
|
1096
|
-
variant: "secondary",
|
|
1097
|
-
className: "gap-1 pr-1",
|
|
1098
|
-
children: [
|
|
1099
|
-
o.label,
|
|
1100
|
-
/* @__PURE__ */ r(
|
|
1101
|
-
"button",
|
|
1102
|
-
{
|
|
1103
|
-
className: "rounded-full hover:bg-muted-foreground/20",
|
|
1104
|
-
onClick: (P) => y(o.value, P),
|
|
1105
|
-
children: /* @__PURE__ */ r($, { className: "h-3 w-3" })
|
|
1106
|
-
}
|
|
1107
|
-
)
|
|
1108
|
-
]
|
|
1109
|
-
},
|
|
1110
|
-
o.value
|
|
1111
|
-
)) : /* @__PURE__ */ i(ve, { children: [
|
|
1112
|
-
N.slice(0, m).map((o) => /* @__PURE__ */ i(
|
|
1113
|
-
j,
|
|
1114
|
-
{
|
|
1115
|
-
variant: "secondary",
|
|
1116
|
-
className: "gap-1 pr-1",
|
|
1117
|
-
children: [
|
|
1118
|
-
o.label,
|
|
1119
|
-
/* @__PURE__ */ r(
|
|
1120
|
-
"button",
|
|
1121
|
-
{
|
|
1122
|
-
className: "rounded-full hover:bg-muted-foreground/20",
|
|
1123
|
-
onClick: (P) => y(o.value, P),
|
|
1124
|
-
children: /* @__PURE__ */ r($, { className: "h-3 w-3" })
|
|
1125
|
-
}
|
|
1126
|
-
)
|
|
1127
|
-
]
|
|
1128
|
-
},
|
|
1129
|
-
o.value
|
|
1130
|
-
)),
|
|
1131
|
-
/* @__PURE__ */ i(j, { variant: "secondary", children: [
|
|
1132
|
-
"+",
|
|
1133
|
-
N.length - m
|
|
1134
|
-
] })
|
|
1135
|
-
] }) }),
|
|
1136
|
-
/* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
1137
|
-
N.length > 0 && /* @__PURE__ */ r(
|
|
1138
|
-
"button",
|
|
1139
|
-
{
|
|
1140
|
-
className: "rounded p-0.5 hover:bg-muted",
|
|
1141
|
-
onClick: w,
|
|
1142
|
-
children: /* @__PURE__ */ r($, { className: "h-4 w-4 text-muted-foreground" })
|
|
1143
|
-
}
|
|
1144
|
-
),
|
|
1145
|
-
/* @__PURE__ */ r(q, { className: "h-4 w-4 shrink-0 opacity-50" })
|
|
1146
|
-
] })
|
|
1147
|
-
]
|
|
1148
|
-
}
|
|
1149
|
-
) }),
|
|
1150
|
-
/* @__PURE__ */ r(B, { className: "w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: /* @__PURE__ */ i(ee, { children: [
|
|
1151
|
-
/* @__PURE__ */ r(te, { placeholder: a }),
|
|
1152
|
-
/* @__PURE__ */ i(re, { children: [
|
|
1153
|
-
/* @__PURE__ */ r(se, { children: c }),
|
|
1154
|
-
/* @__PURE__ */ r(Y, { children: e.map((o) => {
|
|
1155
|
-
const P = s.includes(o.value), n = o.disabled || u && !P;
|
|
1156
|
-
return /* @__PURE__ */ i(
|
|
1157
|
-
Q,
|
|
1158
|
-
{
|
|
1159
|
-
value: o.value,
|
|
1160
|
-
disabled: n,
|
|
1161
|
-
onSelect: () => p(o.value),
|
|
1162
|
-
className: "flex items-center gap-2",
|
|
1163
|
-
children: [
|
|
1164
|
-
/* @__PURE__ */ r(
|
|
1165
|
-
"div",
|
|
1166
|
-
{
|
|
1167
|
-
className: F(
|
|
1168
|
-
"flex h-4 w-4 items-center justify-center rounded border",
|
|
1169
|
-
s.includes(o.value) ? "border-primary bg-primary text-primary-foreground" : "border-muted-foreground/30"
|
|
1170
|
-
),
|
|
1171
|
-
children: s.includes(o.value) && /* @__PURE__ */ r(J, { className: "h-3 w-3" })
|
|
1172
|
-
}
|
|
1173
|
-
),
|
|
1174
|
-
o.icon && /* @__PURE__ */ r("span", { className: "h-4 w-4", children: o.icon }),
|
|
1175
|
-
/* @__PURE__ */ r("span", { children: o.label })
|
|
1176
|
-
]
|
|
1177
|
-
},
|
|
1178
|
-
o.value
|
|
1179
|
-
);
|
|
1180
|
-
}) })
|
|
1181
|
-
] })
|
|
1182
|
-
] }) })
|
|
1183
|
-
] });
|
|
1184
|
-
}
|
|
1185
|
-
);
|
|
1186
|
-
Ot.displayName = "MultiSelect";
|
|
1187
|
-
const Et = Oe("relative flex", {
|
|
1188
|
-
variants: {
|
|
1189
|
-
size: {
|
|
1190
|
-
sm: "w-24",
|
|
1191
|
-
md: "w-32",
|
|
1192
|
-
lg: "w-40"
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
defaultVariants: {
|
|
1196
|
-
size: "md"
|
|
1197
|
-
}
|
|
1198
|
-
}), we = {
|
|
1199
|
-
sm: "h-8 w-8",
|
|
1200
|
-
md: "h-10 w-10",
|
|
1201
|
-
lg: "h-12 w-12"
|
|
1202
|
-
}, Tt = {
|
|
1203
|
-
sm: "h-8 text-sm",
|
|
1204
|
-
md: "h-10 text-base",
|
|
1205
|
-
lg: "h-12 text-lg"
|
|
1206
|
-
}, $t = x.forwardRef(
|
|
1207
|
-
({
|
|
1208
|
-
className: e,
|
|
1209
|
-
value: s,
|
|
1210
|
-
onChange: t,
|
|
1211
|
-
min: l,
|
|
1212
|
-
max: a,
|
|
1213
|
-
step: c = 1,
|
|
1214
|
-
precision: m = 0,
|
|
1215
|
-
showStepper: f = !0,
|
|
1216
|
-
prefix: b,
|
|
1217
|
-
suffix: g,
|
|
1218
|
-
disabled: S,
|
|
1219
|
-
size: h = "md",
|
|
1220
|
-
...d
|
|
1221
|
-
}, N) => {
|
|
1222
|
-
const [u, p] = x.useState((s == null ? void 0 : s.toString()) ?? "");
|
|
1223
|
-
x.useEffect(() => {
|
|
1224
|
-
p((s == null ? void 0 : s.toString()) ?? "");
|
|
1225
|
-
}, [s]);
|
|
1226
|
-
const y = (L) => {
|
|
1227
|
-
let M = L;
|
|
1228
|
-
return l !== void 0 && (M = Math.max(l, M)), a !== void 0 && (M = Math.min(a, M)), Number(M.toFixed(m));
|
|
1229
|
-
}, w = (L) => {
|
|
1230
|
-
const M = L.target.value;
|
|
1231
|
-
if (p(M), M === "" || M === "-") {
|
|
1232
|
-
t == null || t(void 0);
|
|
1233
|
-
return;
|
|
1234
|
-
}
|
|
1235
|
-
const R = parseFloat(M);
|
|
1236
|
-
isNaN(R) || t == null || t(y(R));
|
|
1237
|
-
}, o = () => {
|
|
1238
|
-
if (u === "" || u === "-") {
|
|
1239
|
-
p(""), t == null || t(void 0);
|
|
1240
|
-
return;
|
|
1241
|
-
}
|
|
1242
|
-
const L = parseFloat(u);
|
|
1243
|
-
if (!isNaN(L)) {
|
|
1244
|
-
const M = y(L);
|
|
1245
|
-
p(M.toString()), t == null || t(M);
|
|
1246
|
-
}
|
|
1247
|
-
}, P = () => {
|
|
1248
|
-
const M = y((s ?? 0) + c);
|
|
1249
|
-
p(M.toString()), t == null || t(M);
|
|
1250
|
-
}, n = () => {
|
|
1251
|
-
const M = y((s ?? 0) - c);
|
|
1252
|
-
p(M.toString()), t == null || t(M);
|
|
1253
|
-
}, k = a === void 0 || (s ?? 0) < a, C = l === void 0 || (s ?? 0) > l, _ = h || "md";
|
|
1254
|
-
return /* @__PURE__ */ i("div", { className: F(Et({ size: h }), e), children: [
|
|
1255
|
-
f && /* @__PURE__ */ r(
|
|
1256
|
-
A,
|
|
1257
|
-
{
|
|
1258
|
-
type: "button",
|
|
1259
|
-
variant: "outline",
|
|
1260
|
-
size: "icon",
|
|
1261
|
-
className: F("rounded-r-none", we[_]),
|
|
1262
|
-
onClick: n,
|
|
1263
|
-
disabled: S || !C,
|
|
1264
|
-
children: /* @__PURE__ */ r(Qe, { className: F(_ === "sm" ? "h-3 w-3" : "h-4 w-4") })
|
|
1265
|
-
}
|
|
1266
|
-
),
|
|
1267
|
-
/* @__PURE__ */ i("div", { className: "relative flex-1", children: [
|
|
1268
|
-
b && /* @__PURE__ */ r("span", { className: F(
|
|
1269
|
-
"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",
|
|
1270
|
-
_ === "sm" && "text-sm",
|
|
1271
|
-
_ === "lg" && "text-lg"
|
|
1272
|
-
), children: b }),
|
|
1273
|
-
/* @__PURE__ */ r(
|
|
1274
|
-
G,
|
|
1275
|
-
{
|
|
1276
|
-
ref: N,
|
|
1277
|
-
type: "text",
|
|
1278
|
-
inputMode: "decimal",
|
|
1279
|
-
value: u,
|
|
1280
|
-
onChange: w,
|
|
1281
|
-
onBlur: o,
|
|
1282
|
-
disabled: S,
|
|
1283
|
-
className: F(
|
|
1284
|
-
"text-center",
|
|
1285
|
-
Tt[_],
|
|
1286
|
-
f && "rounded-none border-x-0",
|
|
1287
|
-
b && "pl-8",
|
|
1288
|
-
g && "pr-8"
|
|
1289
|
-
),
|
|
1290
|
-
...d
|
|
1291
|
-
}
|
|
1292
|
-
),
|
|
1293
|
-
g && /* @__PURE__ */ r("span", { className: F(
|
|
1294
|
-
"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",
|
|
1295
|
-
_ === "sm" && "text-sm",
|
|
1296
|
-
_ === "lg" && "text-lg"
|
|
1297
|
-
), children: g })
|
|
1298
|
-
] }),
|
|
1299
|
-
f && /* @__PURE__ */ r(
|
|
1300
|
-
A,
|
|
1301
|
-
{
|
|
1302
|
-
type: "button",
|
|
1303
|
-
variant: "outline",
|
|
1304
|
-
size: "icon",
|
|
1305
|
-
className: F("rounded-l-none", we[_]),
|
|
1306
|
-
onClick: P,
|
|
1307
|
-
disabled: S || !k,
|
|
1308
|
-
children: /* @__PURE__ */ r(Xe, { className: F(_ === "sm" ? "h-3 w-3" : "h-4 w-4") })
|
|
1309
|
-
}
|
|
1310
|
-
)
|
|
1311
|
-
] });
|
|
1312
|
-
}
|
|
1313
|
-
);
|
|
1314
|
-
$t.displayName = "NumberInput";
|
|
1315
|
-
const Ht = [
|
|
1316
|
-
{ code: "US", dialCode: "+1", name: "United States", flag: "🇺🇸" },
|
|
1317
|
-
{ code: "GB", dialCode: "+44", name: "United Kingdom", flag: "🇬🇧" },
|
|
1318
|
-
{ code: "DE", dialCode: "+49", name: "Germany", flag: "🇩🇪" },
|
|
1319
|
-
{ code: "FR", dialCode: "+33", name: "France", flag: "🇫🇷" },
|
|
1320
|
-
{ code: "IT", dialCode: "+39", name: "Italy", flag: "🇮🇹" },
|
|
1321
|
-
{ code: "ES", dialCode: "+34", name: "Spain", flag: "🇪🇸" },
|
|
1322
|
-
{ code: "TR", dialCode: "+90", name: "Turkey", flag: "🇹🇷" },
|
|
1323
|
-
{ code: "NL", dialCode: "+31", name: "Netherlands", flag: "🇳🇱" },
|
|
1324
|
-
{ code: "BE", dialCode: "+32", name: "Belgium", flag: "🇧🇪" },
|
|
1325
|
-
{ code: "AT", dialCode: "+43", name: "Austria", flag: "🇦🇹" },
|
|
1326
|
-
{ code: "CH", dialCode: "+41", name: "Switzerland", flag: "🇨🇭" },
|
|
1327
|
-
{ code: "PL", dialCode: "+48", name: "Poland", flag: "🇵🇱" },
|
|
1328
|
-
{ code: "SE", dialCode: "+46", name: "Sweden", flag: "🇸🇪" },
|
|
1329
|
-
{ code: "NO", dialCode: "+47", name: "Norway", flag: "🇳🇴" },
|
|
1330
|
-
{ code: "DK", dialCode: "+45", name: "Denmark", flag: "🇩🇰" },
|
|
1331
|
-
{ code: "FI", dialCode: "+358", name: "Finland", flag: "🇫🇮" },
|
|
1332
|
-
{ code: "PT", dialCode: "+351", name: "Portugal", flag: "🇵🇹" },
|
|
1333
|
-
{ code: "GR", dialCode: "+30", name: "Greece", flag: "🇬🇷" },
|
|
1334
|
-
{ code: "CZ", dialCode: "+420", name: "Czech Republic", flag: "🇨🇿" },
|
|
1335
|
-
{ code: "RO", dialCode: "+40", name: "Romania", flag: "🇷🇴" },
|
|
1336
|
-
{ code: "HU", dialCode: "+36", name: "Hungary", flag: "🇭🇺" },
|
|
1337
|
-
{ code: "IE", dialCode: "+353", name: "Ireland", flag: "🇮🇪" },
|
|
1338
|
-
{ code: "AU", dialCode: "+61", name: "Australia", flag: "🇦🇺" },
|
|
1339
|
-
{ code: "CA", dialCode: "+1", name: "Canada", flag: "🇨🇦" },
|
|
1340
|
-
{ code: "BR", dialCode: "+55", name: "Brazil", flag: "🇧🇷" },
|
|
1341
|
-
{ code: "MX", dialCode: "+52", name: "Mexico", flag: "🇲🇽" },
|
|
1342
|
-
{ code: "JP", dialCode: "+81", name: "Japan", flag: "🇯🇵" },
|
|
1343
|
-
{ code: "CN", dialCode: "+86", name: "China", flag: "🇨🇳" },
|
|
1344
|
-
{ code: "IN", dialCode: "+91", name: "India", flag: "🇮🇳" },
|
|
1345
|
-
{ code: "RU", dialCode: "+7", name: "Russia", flag: "🇷🇺" }
|
|
1346
|
-
], Ut = x.forwardRef(
|
|
1347
|
-
({
|
|
1348
|
-
value: e,
|
|
1349
|
-
onChange: s,
|
|
1350
|
-
defaultCountry: t = "US",
|
|
1351
|
-
countries: l = Ht,
|
|
1352
|
-
placeholder: a = "Phone number",
|
|
1353
|
-
disabled: c = !1,
|
|
1354
|
-
className: m,
|
|
1355
|
-
error: f
|
|
1356
|
-
}, b) => {
|
|
1357
|
-
const [g, S] = x.useState(
|
|
1358
|
-
l.find((p) => p.code === t) || l[0]
|
|
1359
|
-
), [h, d] = x.useState("");
|
|
1360
|
-
x.useEffect(() => {
|
|
1361
|
-
if (e) {
|
|
1362
|
-
const p = l.find((y) => e.startsWith(y.dialCode));
|
|
1363
|
-
p ? (S(p), d(e.slice(p.dialCode.length).trim())) : d(e);
|
|
1364
|
-
}
|
|
1365
|
-
}, [e, l]);
|
|
1366
|
-
const N = (p) => {
|
|
1367
|
-
S(p);
|
|
1368
|
-
const y = `${p.dialCode} ${h}`.trim();
|
|
1369
|
-
s == null || s(y, p);
|
|
1370
|
-
}, u = (p) => {
|
|
1371
|
-
const y = p.target.value.replace(/[^\d\s\-()]/g, "");
|
|
1372
|
-
d(y);
|
|
1373
|
-
const w = `${g.dialCode} ${y}`.trim();
|
|
1374
|
-
s == null || s(w, g);
|
|
1375
|
-
};
|
|
1376
|
-
return /* @__PURE__ */ i("div", { className: F("flex", m), children: [
|
|
1377
|
-
/* @__PURE__ */ i(je, { children: [
|
|
1378
|
-
/* @__PURE__ */ r(Ke, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1379
|
-
A,
|
|
1380
|
-
{
|
|
1381
|
-
variant: "outline",
|
|
1382
|
-
disabled: c,
|
|
1383
|
-
className: F(
|
|
1384
|
-
"flex shrink-0 items-center gap-1 rounded-r-none border-r-0 px-3",
|
|
1385
|
-
f && "border-destructive"
|
|
1386
|
-
),
|
|
1387
|
-
children: [
|
|
1388
|
-
/* @__PURE__ */ r("span", { className: "text-base", children: g.flag }),
|
|
1389
|
-
/* @__PURE__ */ r("span", { className: "text-sm text-muted-foreground", children: g.dialCode }),
|
|
1390
|
-
/* @__PURE__ */ r(q, { className: "h-4 w-4 opacity-50" })
|
|
1391
|
-
]
|
|
1392
|
-
}
|
|
1393
|
-
) }),
|
|
1394
|
-
/* @__PURE__ */ r(We, { className: "max-h-64 overflow-y-auto", children: l.map((p) => /* @__PURE__ */ i(
|
|
1395
|
-
Je,
|
|
1396
|
-
{
|
|
1397
|
-
onClick: () => N(p),
|
|
1398
|
-
className: "flex items-center gap-2",
|
|
1399
|
-
children: [
|
|
1400
|
-
/* @__PURE__ */ r("span", { className: "text-base", children: p.flag }),
|
|
1401
|
-
/* @__PURE__ */ r("span", { className: "flex-1", children: p.name }),
|
|
1402
|
-
/* @__PURE__ */ r("span", { className: "text-sm text-muted-foreground", children: p.dialCode })
|
|
1403
|
-
]
|
|
1404
|
-
},
|
|
1405
|
-
p.code
|
|
1406
|
-
)) })
|
|
1407
|
-
] }),
|
|
1408
|
-
/* @__PURE__ */ r(
|
|
1409
|
-
G,
|
|
1410
|
-
{
|
|
1411
|
-
ref: b,
|
|
1412
|
-
type: "tel",
|
|
1413
|
-
value: h,
|
|
1414
|
-
onChange: u,
|
|
1415
|
-
placeholder: a,
|
|
1416
|
-
disabled: c,
|
|
1417
|
-
className: F("rounded-l-none", f && "border-destructive")
|
|
1418
|
-
}
|
|
1419
|
-
)
|
|
1420
|
-
] });
|
|
1421
|
-
}
|
|
1422
|
-
);
|
|
1423
|
-
Ut.displayName = "PhoneInput";
|
|
1424
|
-
const Bt = x.forwardRef(
|
|
1425
|
-
({
|
|
1426
|
-
value: e,
|
|
1427
|
-
onChange: s,
|
|
1428
|
-
onSearch: t,
|
|
1429
|
-
placeholder: l = "Select...",
|
|
1430
|
-
dialogTitle: a = "Search",
|
|
1431
|
-
searchPlaceholder: c = "Type to search...",
|
|
1432
|
-
emptyMessage: m = "No results found",
|
|
1433
|
-
multiple: f = !1,
|
|
1434
|
-
disabled: b = !1,
|
|
1435
|
-
className: g,
|
|
1436
|
-
renderItem: S
|
|
1437
|
-
}, h) => {
|
|
1438
|
-
const [d, N] = x.useState(!1), [u, p] = x.useState(""), [y, w] = x.useState([]), [o, P] = x.useState(!1), n = x.useRef(null), k = x.useMemo(() => e ? Array.isArray(e) ? e : [e] : [], [e]), C = x.useCallback(
|
|
1439
|
-
async (v) => {
|
|
1440
|
-
if (p(v), n.current && clearTimeout(n.current), !v.trim()) {
|
|
1441
|
-
w([]);
|
|
1442
|
-
return;
|
|
1443
|
-
}
|
|
1444
|
-
n.current = setTimeout(async () => {
|
|
1445
|
-
P(!0);
|
|
1446
|
-
try {
|
|
1447
|
-
const V = await t(v);
|
|
1448
|
-
w(V);
|
|
1449
|
-
} catch {
|
|
1450
|
-
w([]);
|
|
1451
|
-
} finally {
|
|
1452
|
-
P(!1);
|
|
1453
|
-
}
|
|
1454
|
-
}, 300);
|
|
1455
|
-
},
|
|
1456
|
-
[t]
|
|
1457
|
-
), _ = (v) => {
|
|
1458
|
-
if (f) {
|
|
1459
|
-
const V = k, E = V.some((T) => T.id === v.id) ? V.filter((T) => T.id !== v.id) : [...V, v];
|
|
1460
|
-
s == null || s(E.length > 0 ? E : void 0);
|
|
1461
|
-
} else
|
|
1462
|
-
s == null || s(v), N(!1);
|
|
1463
|
-
}, L = (v, V) => {
|
|
1464
|
-
if (V.stopPropagation(), f) {
|
|
1465
|
-
const I = k.filter((E) => E.id !== v);
|
|
1466
|
-
s == null || s(I.length > 0 ? I : void 0);
|
|
1467
|
-
} else
|
|
1468
|
-
s == null || s(void 0);
|
|
1469
|
-
}, M = (v) => {
|
|
1470
|
-
v.stopPropagation(), s == null || s(void 0);
|
|
1471
|
-
}, R = (v) => /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
|
|
1472
|
-
/* @__PURE__ */ i(Ze, { className: "h-8 w-8", children: [
|
|
1473
|
-
v.avatar && /* @__PURE__ */ r(qe, { src: v.avatar }),
|
|
1474
|
-
/* @__PURE__ */ r(et, { className: "text-xs", children: v.label.split(" ").map((V) => V[0]).join("").toUpperCase().slice(0, 2) })
|
|
1475
|
-
] }),
|
|
1476
|
-
/* @__PURE__ */ i("div", { className: "flex flex-1 flex-col", children: [
|
|
1477
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children: v.label }),
|
|
1478
|
-
v.description && /* @__PURE__ */ r("span", { className: "text-xs text-muted-foreground", children: v.description })
|
|
1479
|
-
] }),
|
|
1480
|
-
v.badges && v.badges.length > 0 && /* @__PURE__ */ r("div", { className: "flex gap-1", children: v.badges.map((V, I) => /* @__PURE__ */ r(j, { variant: "secondary", className: "text-xs", children: V }, I)) })
|
|
1481
|
-
] });
|
|
1482
|
-
return /* @__PURE__ */ i($e, { open: d, onOpenChange: N, children: [
|
|
1483
|
-
/* @__PURE__ */ r(He, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1484
|
-
A,
|
|
1485
|
-
{
|
|
1486
|
-
ref: h,
|
|
1487
|
-
variant: "outline",
|
|
1488
|
-
role: "combobox",
|
|
1489
|
-
disabled: b,
|
|
1490
|
-
className: F(
|
|
1491
|
-
"w-full justify-between font-normal",
|
|
1492
|
-
k.length === 0 && "text-muted-foreground",
|
|
1493
|
-
g
|
|
1494
|
-
),
|
|
1495
|
-
children: [
|
|
1496
|
-
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-wrap items-center gap-1 overflow-hidden", children: k.length === 0 ? /* @__PURE__ */ r("span", { children: l }) : f ? k.map((v) => /* @__PURE__ */ i(j, { variant: "secondary", className: "gap-1 pr-1", children: [
|
|
1497
|
-
v.label,
|
|
1498
|
-
/* @__PURE__ */ r(
|
|
1499
|
-
"button",
|
|
1500
|
-
{
|
|
1501
|
-
className: "rounded-full hover:bg-muted-foreground/20",
|
|
1502
|
-
onClick: (V) => L(v.id, V),
|
|
1503
|
-
children: /* @__PURE__ */ r($, { className: "h-3 w-3" })
|
|
1504
|
-
}
|
|
1505
|
-
)
|
|
1506
|
-
] }, v.id)) : /* @__PURE__ */ r("span", { className: "truncate", children: k[0].label }) }),
|
|
1507
|
-
/* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
1508
|
-
k.length > 0 && !f && /* @__PURE__ */ r(
|
|
1509
|
-
"button",
|
|
1510
|
-
{
|
|
1511
|
-
className: "rounded p-0.5 hover:bg-muted",
|
|
1512
|
-
onClick: M,
|
|
1513
|
-
children: /* @__PURE__ */ r($, { className: "h-4 w-4 text-muted-foreground" })
|
|
1514
|
-
}
|
|
1515
|
-
),
|
|
1516
|
-
/* @__PURE__ */ r(tt, { className: "h-4 w-4 shrink-0 opacity-50" })
|
|
1517
|
-
] })
|
|
1518
|
-
]
|
|
1519
|
-
}
|
|
1520
|
-
) }),
|
|
1521
|
-
/* @__PURE__ */ i(Ue, { className: "max-w-lg", children: [
|
|
1522
|
-
/* @__PURE__ */ r(Be, { children: /* @__PURE__ */ r(ze, { children: a }) }),
|
|
1523
|
-
/* @__PURE__ */ i("div", { className: "space-y-4", children: [
|
|
1524
|
-
/* @__PURE__ */ i("div", { className: "relative", children: [
|
|
1525
|
-
/* @__PURE__ */ r(Pe, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1526
|
-
/* @__PURE__ */ r(
|
|
1527
|
-
G,
|
|
1528
|
-
{
|
|
1529
|
-
placeholder: c,
|
|
1530
|
-
value: u,
|
|
1531
|
-
onChange: (v) => C(v.target.value),
|
|
1532
|
-
className: "pl-10",
|
|
1533
|
-
autoFocus: !0
|
|
1534
|
-
}
|
|
1535
|
-
)
|
|
1536
|
-
] }),
|
|
1537
|
-
/* @__PURE__ */ r(Ee, { className: "h-64", children: o ? /* @__PURE__ */ r("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ r(Ge, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) : y.length === 0 ? /* @__PURE__ */ r("div", { className: "py-8 text-center text-sm text-muted-foreground", children: u ? m : "Start typing to search..." }) : /* @__PURE__ */ r("div", { className: "space-y-1", children: y.map((v) => {
|
|
1538
|
-
const V = k.some((I) => I.id === v.id);
|
|
1539
|
-
return /* @__PURE__ */ r(
|
|
1540
|
-
"button",
|
|
1541
|
-
{
|
|
1542
|
-
onClick: () => _(v),
|
|
1543
|
-
className: F(
|
|
1544
|
-
"w-full rounded-md p-2 text-left transition-colors hover:bg-accent",
|
|
1545
|
-
V && "bg-accent"
|
|
1546
|
-
),
|
|
1547
|
-
children: S ? S(v) : R(v)
|
|
1548
|
-
},
|
|
1549
|
-
v.id
|
|
1550
|
-
);
|
|
1551
|
-
}) }) })
|
|
1552
|
-
] })
|
|
1553
|
-
] })
|
|
1554
|
-
] });
|
|
1555
|
-
}
|
|
1556
|
-
);
|
|
1557
|
-
Bt.displayName = "LookupField";
|
|
1558
|
-
const zt = ["USD", "EUR", "GBP", "TRY", "JPY", "CNY"];
|
|
1559
|
-
function mr({
|
|
1560
|
-
value: e,
|
|
1561
|
-
onChange: s,
|
|
1562
|
-
placeholder: t,
|
|
1563
|
-
searchPlaceholder: l,
|
|
1564
|
-
emptyMessage: a,
|
|
1565
|
-
disabled: c = !1,
|
|
1566
|
-
className: m,
|
|
1567
|
-
showSymbol: f = !0,
|
|
1568
|
-
showCode: b = !0,
|
|
1569
|
-
showName: g = !0,
|
|
1570
|
-
popularCurrencies: S = zt
|
|
1571
|
-
}) {
|
|
1572
|
-
const [h, d] = x.useState(!1), { t: N } = De(), u = rt(), p = e ? he[e] : void 0, y = S.map((n) => he[n]).filter(Boolean), w = u.filter(
|
|
1573
|
-
(n) => !S.includes(n.code)
|
|
1574
|
-
), P = p ? ((n) => {
|
|
1575
|
-
const k = [];
|
|
1576
|
-
return f && k.push(n.symbol), b && k.push(n.code), g && k.push(`- ${n.name}`), k.join(" ");
|
|
1577
|
-
})(p) : t || N("locale.selectCurrency");
|
|
1578
|
-
return /* @__PURE__ */ i(H, { open: h, onOpenChange: d, children: [
|
|
1579
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1580
|
-
A,
|
|
1581
|
-
{
|
|
1582
|
-
variant: "outline",
|
|
1583
|
-
role: "combobox",
|
|
1584
|
-
"aria-expanded": h,
|
|
1585
|
-
disabled: c,
|
|
1586
|
-
className: F(
|
|
1587
|
-
"w-full justify-between",
|
|
1588
|
-
!e && "text-muted-foreground",
|
|
1589
|
-
m
|
|
1590
|
-
),
|
|
1591
|
-
children: [
|
|
1592
|
-
/* @__PURE__ */ r("span", { className: "truncate", children: P }),
|
|
1593
|
-
/* @__PURE__ */ r(ie, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
1594
|
-
]
|
|
1595
|
-
}
|
|
1596
|
-
) }),
|
|
1597
|
-
/* @__PURE__ */ r(B, { className: "w-[300px] p-0", align: "start", children: /* @__PURE__ */ i(ee, { children: [
|
|
1598
|
-
/* @__PURE__ */ r(
|
|
1599
|
-
te,
|
|
1600
|
-
{
|
|
1601
|
-
placeholder: l || N("common.search"),
|
|
1602
|
-
className: "h-9"
|
|
1603
|
-
}
|
|
1604
|
-
),
|
|
1605
|
-
/* @__PURE__ */ i(re, { children: [
|
|
1606
|
-
/* @__PURE__ */ r(se, { children: a || N("common.noData") }),
|
|
1607
|
-
y.length > 0 && /* @__PURE__ */ r(Y, { heading: "Popular", children: y.map((n) => /* @__PURE__ */ i(
|
|
1608
|
-
Q,
|
|
1609
|
-
{
|
|
1610
|
-
value: `${n.code} ${n.name}`,
|
|
1611
|
-
onSelect: () => {
|
|
1612
|
-
s == null || s(n.code), d(!1);
|
|
1613
|
-
},
|
|
1614
|
-
children: [
|
|
1615
|
-
/* @__PURE__ */ r(
|
|
1616
|
-
J,
|
|
1617
|
-
{
|
|
1618
|
-
className: F(
|
|
1619
|
-
"mr-2 h-4 w-4",
|
|
1620
|
-
e === n.code ? "opacity-100" : "opacity-0"
|
|
1621
|
-
)
|
|
1622
|
-
}
|
|
1623
|
-
),
|
|
1624
|
-
/* @__PURE__ */ r("span", { className: "w-8 font-medium", children: n.symbol }),
|
|
1625
|
-
/* @__PURE__ */ r("span", { className: "w-12 text-muted-foreground", children: n.code }),
|
|
1626
|
-
/* @__PURE__ */ r("span", { className: "truncate", children: n.name })
|
|
1627
|
-
]
|
|
1628
|
-
},
|
|
1629
|
-
n.code
|
|
1630
|
-
)) }),
|
|
1631
|
-
/* @__PURE__ */ r(Y, { heading: "All Currencies", children: w.map((n) => /* @__PURE__ */ i(
|
|
1632
|
-
Q,
|
|
1633
|
-
{
|
|
1634
|
-
value: `${n.code} ${n.name}`,
|
|
1635
|
-
onSelect: () => {
|
|
1636
|
-
s == null || s(n.code), d(!1);
|
|
1637
|
-
},
|
|
1638
|
-
children: [
|
|
1639
|
-
/* @__PURE__ */ r(
|
|
1640
|
-
J,
|
|
1641
|
-
{
|
|
1642
|
-
className: F(
|
|
1643
|
-
"mr-2 h-4 w-4",
|
|
1644
|
-
e === n.code ? "opacity-100" : "opacity-0"
|
|
1645
|
-
)
|
|
1646
|
-
}
|
|
1647
|
-
),
|
|
1648
|
-
/* @__PURE__ */ r("span", { className: "w-8 font-medium", children: n.symbol }),
|
|
1649
|
-
/* @__PURE__ */ r("span", { className: "w-12 text-muted-foreground", children: n.code }),
|
|
1650
|
-
/* @__PURE__ */ r("span", { className: "truncate", children: n.name })
|
|
1651
|
-
]
|
|
1652
|
-
},
|
|
1653
|
-
n.code
|
|
1654
|
-
)) })
|
|
1655
|
-
] })
|
|
1656
|
-
] }) })
|
|
1657
|
-
] });
|
|
1658
|
-
}
|
|
1659
|
-
function fr({
|
|
1660
|
-
value: e,
|
|
1661
|
-
onChange: s,
|
|
1662
|
-
placeholder: t,
|
|
1663
|
-
searchPlaceholder: l,
|
|
1664
|
-
emptyMessage: a,
|
|
1665
|
-
disabled: c = !1,
|
|
1666
|
-
className: m,
|
|
1667
|
-
showFlag: f = !0,
|
|
1668
|
-
showNativeName: b = !0,
|
|
1669
|
-
showCode: g = !1,
|
|
1670
|
-
variant: S = "default"
|
|
1671
|
-
}) {
|
|
1672
|
-
const [h, d] = x.useState(!1), { t: N, config: u } = De(), p = st(), y = e ? at(e) : void 0, w = e || u.locale, P = y ? ((n, k = !1) => {
|
|
1673
|
-
if (S === "icon-only" && k)
|
|
1674
|
-
return f ? n.flag : /* @__PURE__ */ r(lt, { className: "h-4 w-4" });
|
|
1675
|
-
if (S === "compact" && k)
|
|
1676
|
-
return /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
|
|
1677
|
-
f && /* @__PURE__ */ r("span", { children: n.flag }),
|
|
1678
|
-
/* @__PURE__ */ r("span", { children: n.code.split("-")[0].toUpperCase() })
|
|
1679
|
-
] });
|
|
1680
|
-
const C = [];
|
|
1681
|
-
return f && C.push(/* @__PURE__ */ r("span", { className: "mr-1.5", children: n.flag }, "flag")), b && C.push(/* @__PURE__ */ r("span", { children: n.nativeName }, "native")), g && C.push(/* @__PURE__ */ i("span", { className: "text-muted-foreground ml-1", children: [
|
|
1682
|
-
"(",
|
|
1683
|
-
n.code,
|
|
1684
|
-
")"
|
|
1685
|
-
] }, "code")), /* @__PURE__ */ r("span", { className: "flex items-center", children: C });
|
|
1686
|
-
})(y, !0) : t || N("locale.selectLanguage");
|
|
1687
|
-
return /* @__PURE__ */ i(H, { open: h, onOpenChange: d, children: [
|
|
1688
|
-
/* @__PURE__ */ r(U, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1689
|
-
A,
|
|
1690
|
-
{
|
|
1691
|
-
variant: "outline",
|
|
1692
|
-
role: "combobox",
|
|
1693
|
-
"aria-expanded": h,
|
|
1694
|
-
disabled: c,
|
|
1695
|
-
className: F(
|
|
1696
|
-
"justify-between",
|
|
1697
|
-
S === "icon-only" ? "w-10 px-0" : S === "compact" ? "w-auto" : "w-full",
|
|
1698
|
-
!e && "text-muted-foreground",
|
|
1699
|
-
m
|
|
1700
|
-
),
|
|
1701
|
-
children: [
|
|
1702
|
-
/* @__PURE__ */ r("span", { className: F("truncate", S === "icon-only" && "text-lg"), children: P }),
|
|
1703
|
-
S !== "icon-only" && /* @__PURE__ */ r(ie, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
1704
|
-
]
|
|
1705
|
-
}
|
|
1706
|
-
) }),
|
|
1707
|
-
/* @__PURE__ */ r(B, { className: "w-[280px] p-0", align: "start", children: /* @__PURE__ */ i(ee, { children: [
|
|
1708
|
-
/* @__PURE__ */ r(
|
|
1709
|
-
te,
|
|
1710
|
-
{
|
|
1711
|
-
placeholder: l || N("common.search"),
|
|
1712
|
-
className: "h-9"
|
|
1713
|
-
}
|
|
1714
|
-
),
|
|
1715
|
-
/* @__PURE__ */ i(re, { children: [
|
|
1716
|
-
/* @__PURE__ */ r(se, { children: a || N("common.noData") }),
|
|
1717
|
-
/* @__PURE__ */ r(Y, { children: p.map((n) => /* @__PURE__ */ i(
|
|
1718
|
-
Q,
|
|
1719
|
-
{
|
|
1720
|
-
value: `${n.code} ${n.name} ${n.nativeName}`,
|
|
1721
|
-
onSelect: () => {
|
|
1722
|
-
s == null || s(n.code), d(!1);
|
|
1723
|
-
},
|
|
1724
|
-
children: [
|
|
1725
|
-
/* @__PURE__ */ r(
|
|
1726
|
-
J,
|
|
1727
|
-
{
|
|
1728
|
-
className: F(
|
|
1729
|
-
"mr-2 h-4 w-4",
|
|
1730
|
-
w === n.code ? "opacity-100" : "opacity-0"
|
|
1731
|
-
)
|
|
1732
|
-
}
|
|
1733
|
-
),
|
|
1734
|
-
/* @__PURE__ */ r("span", { className: "mr-2 text-lg", children: n.flag }),
|
|
1735
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col", children: [
|
|
1736
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children: n.nativeName }),
|
|
1737
|
-
/* @__PURE__ */ r("span", { className: "text-xs text-muted-foreground", children: n.name })
|
|
1738
|
-
] })
|
|
1739
|
-
]
|
|
1740
|
-
},
|
|
1741
|
-
n.code
|
|
1742
|
-
)) })
|
|
1743
|
-
] })
|
|
1744
|
-
] }) })
|
|
1745
|
-
] });
|
|
1746
|
-
}
|
|
1747
|
-
export {
|
|
1748
|
-
Ct as C,
|
|
1749
|
-
ur as D,
|
|
1750
|
-
ir as F,
|
|
1751
|
-
Bt as L,
|
|
1752
|
-
Ot as M,
|
|
1753
|
-
$t as N,
|
|
1754
|
-
Ut as P,
|
|
1755
|
-
Mt as S,
|
|
1756
|
-
It as T,
|
|
1757
|
-
St as a,
|
|
1758
|
-
kt as b,
|
|
1759
|
-
Ft as c,
|
|
1760
|
-
Pt as d,
|
|
1761
|
-
Dt as e,
|
|
1762
|
-
dr as f,
|
|
1763
|
-
Vt as g,
|
|
1764
|
-
Rt as h,
|
|
1765
|
-
At as i,
|
|
1766
|
-
Lt as j,
|
|
1767
|
-
Ht as k,
|
|
1768
|
-
mr as l,
|
|
1769
|
-
fr as m,
|
|
1770
|
-
le as u
|
|
1771
|
-
};
|
|
1772
|
-
//# sourceMappingURL=locale-selector-DLRSyVye.js.map
|