@alfadocs/ui-kit-debug 0.30.5 → 0.31.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/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
- package/dist/_chunks/{accordion-CNcodXuO.js.map → accordion-bSU21uTV.js.map} +1 -1
- package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
- package/dist/_chunks/{agenda-card-DO9_yogb.js.map → agenda-card-UJA6Arbs.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
- package/dist/_chunks/{agenda-tray-WLbfMip6.js.map → agenda-tray-1fAxNOMz.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
- package/dist/_chunks/ai-prompt-input-C6sCr1Vi.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
- package/dist/_chunks/{alia-sidebar-C-232sD7.js.map → alia-sidebar-BEoMl6UL.js.map} +1 -1
- package/dist/_chunks/ar-CEpIJtcO.js +399 -0
- package/dist/_chunks/ar-CEpIJtcO.js.map +1 -0
- package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
- package/dist/_chunks/audio-recorder-C1rhKhSN.js.map +1 -0
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js.map +1 -0
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js.map → autocomplete-DIgdhCGJ.js.map} +1 -1
- package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
- package/dist/_chunks/avatar-BNQNhoyL.js.map +1 -0
- package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
- package/dist/_chunks/{badge-CIjQ1Us1.js.map → badge-CptERaHx.js.map} +1 -1
- package/dist/_chunks/{booking-Cw92aqo3.js → booking-BIZ9GSer.js} +149 -160
- package/dist/_chunks/booking-BIZ9GSer.js.map +1 -0
- package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
- package/dist/_chunks/{breadcrumb--YI7lcHA.js.map → breadcrumb-CLlhx7qo.js.map} +1 -1
- package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
- package/dist/_chunks/button-group-Ciq6J4IW.js.map +1 -0
- package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
- package/dist/_chunks/{calendar-WWNx448i.js.map → calendar-YHFknAGv.js.map} +1 -1
- package/dist/_chunks/calendar-clock-CYkcqdwl.js +19 -0
- package/dist/_chunks/calendar-clock-CYkcqdwl.js.map +1 -0
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js.map → carousel.agent-DrX96W-1.js.map} +1 -1
- package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
- package/dist/_chunks/{chart-BLvFl169.js.map → chart-DLkVn_ex.js.map} +1 -1
- package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
- package/dist/_chunks/chat-container-ogB4OskO.js.map +1 -0
- package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
- package/dist/_chunks/chat-input-CQe7nR_v.js.map +1 -0
- package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
- package/dist/_chunks/{chat-message-fg221-yx.js.map → chat-message-D53_fH2w.js.map} +1 -1
- package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
- package/dist/_chunks/{checkbox-Dgp_cfUr.js.map → checkbox-DRcOdmXv.js.map} +1 -1
- package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
- package/dist/_chunks/{checkbox-group-eVowqKcT.js.map → checkbox-group-CpUwlHug.js.map} +1 -1
- package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
- package/dist/_chunks/{collapsible-hHiyZp0b.js.map → collapsible-CERONory.js.map} +1 -1
- package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
- package/dist/_chunks/color-picker-9tL7pz5y.js.map +1 -0
- package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
- package/dist/_chunks/combobox-BC-DFx8G.js.map +1 -0
- package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
- package/dist/_chunks/command-palette-BiPAAno-.js.map +1 -0
- package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
- package/dist/_chunks/{copy-field-BAF4mt9h.js.map → copy-field-CCq7j6Zc.js.map} +1 -1
- package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
- package/dist/_chunks/{date-picker-D0Ry1dMz.js.map → date-picker-B94HAV4A.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
- package/dist/_chunks/date-range-picker-D4dgDlLU.js.map +1 -0
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js.map → date-time-picker-D1GEzf8p.js.map} +1 -1
- package/dist/_chunks/de-Dfbeau59.js +477 -0
- package/dist/_chunks/de-Dfbeau59.js.map +1 -0
- package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
- package/dist/_chunks/{description-list-CWjnaDGn.js.map → description-list-BEbK2g93.js.map} +1 -1
- package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
- package/dist/_chunks/{dialog-C-lTGVkB.js.map → dialog-Cee13rHU.js.map} +1 -1
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js.map → dropdown-menu-BC5ZdOMo.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-CztRy_21.js → editable-currency-cell-renderer-BpicmolK.js} +308 -322
- package/dist/_chunks/editable-currency-cell-renderer-BpicmolK.js.map +1 -0
- package/dist/_chunks/el-Dro3J7CP.js +373 -0
- package/dist/_chunks/el-Dro3J7CP.js.map +1 -0
- package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
- package/dist/_chunks/{email-input-DvJ_kPKL.js.map → email-input-lQivsFrw.js.map} +1 -1
- package/dist/_chunks/es-Dvg8u70B.js +373 -0
- package/dist/_chunks/es-Dvg8u70B.js.map +1 -0
- package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
- package/dist/_chunks/file-upload-CdozCPct.js.map +1 -0
- package/dist/_chunks/fr-VOGjBSPP.js +338 -0
- package/dist/_chunks/fr-VOGjBSPP.js.map +1 -0
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js.map → freemium-paywall-D1N02Oam.js.map} +1 -1
- package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
- package/dist/_chunks/{header-DDj7uGD-.js.map → header-CTZWX-tm.js.map} +1 -1
- package/dist/_chunks/hi-BSDxWU_y.js +433 -0
- package/dist/_chunks/hi-BSDxWU_y.js.map +1 -0
- package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
- package/dist/_chunks/{icon-button-DPEqBKBQ.js.map → icon-button-CKEOrN37.js.map} +1 -1
- package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
- package/dist/_chunks/icon-button-group-C48khLE0.js.map +1 -0
- package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
- package/dist/_chunks/{isSameDay-DHG8Xade.js.map → isSameDay-DUEiAT0G.js.map} +1 -1
- package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
- package/dist/_chunks/isSameWeek-Dfzu29cW.js.map +1 -0
- package/dist/_chunks/it-CuonvcI_.js +401 -0
- package/dist/_chunks/it-CuonvcI_.js.map +1 -0
- package/dist/_chunks/ja-DO57gIOT.js +366 -0
- package/dist/_chunks/ja-DO57gIOT.js.map +1 -0
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js.map → key-value-pair-C8DaR3Xs.js.map} +1 -1
- package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
- package/dist/_chunks/list-BOwqwy03.js.map +1 -0
- package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
- package/dist/_chunks/{locale-picker-CY89MChR.js.map → locale-picker-D99UyZVJ.js.map} +1 -1
- package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
- package/dist/_chunks/{map-view-DyB8tr6c.js.map → map-view-WEWqXzof.js.map} +1 -1
- package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
- package/dist/_chunks/{message-card-D6iyPacd.js.map → message-card-BbRhZkDI.js.map} +1 -1
- package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
- package/dist/_chunks/message-tray-B762TKuv.js.map +1 -0
- package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
- package/dist/_chunks/multi-select-DOLO3K_z.js.map +1 -0
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js.map → navigation-menu-C6lBYVv9.js.map} +1 -1
- package/dist/_chunks/nl-DjPaaWaW.js +326 -0
- package/dist/_chunks/nl-DjPaaWaW.js.map +1 -0
- package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
- package/dist/_chunks/{notification-card-vaMaA7Wa.js.map → notification-card-DMdO4g54.js.map} +1 -1
- package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
- package/dist/_chunks/notification-tray-Dl3FTleW.js.map +1 -0
- package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
- package/dist/_chunks/{number-input-BZXu6bPY.js.map → number-input-Dj5L3pXK.js.map} +1 -1
- package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
- package/dist/_chunks/{otp-input-BDF_iNpa.js.map → otp-input-BEg_sn8A.js.map} +1 -1
- package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
- package/dist/_chunks/{pagination-BWaXF7W0.js.map → pagination-DQOgnxxw.js.map} +1 -1
- package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
- package/dist/_chunks/{parseISO-Dk4xa7q6.js.map → parseISO-DEpUNwxZ.js.map} +1 -1
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js.map → patient-search-hFiYbqcl.js.map} +1 -1
- package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
- package/dist/_chunks/{patient-shell-CYaNkbA1.js.map → patient-shell-CDvMw_Nk.js.map} +1 -1
- package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
- package/dist/_chunks/{payment-form-Ds3rxvad.js.map → payment-form-D5rgnZu7.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js.map → pdf-viewer-DvtEHcEP.js.map} +1 -1
- package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
- package/dist/_chunks/phone-input-DfZbPPvh.js.map +1 -0
- package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
- package/dist/_chunks/pl-Cl4lOx2N.js.map +1 -0
- package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
- package/dist/_chunks/{popover-BfHSBEKq.js.map → popover-Devce-tT.js.map} +1 -1
- package/dist/_chunks/practice-results-JQunxBIg.js +1618 -0
- package/dist/_chunks/practice-results-JQunxBIg.js.map +1 -0
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js.map → privacy-lock-DD-wHxBg.js.map} +1 -1
- package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
- package/dist/_chunks/progress-kzIRcdaq.js.map +1 -0
- package/dist/_chunks/pt-D7qO5CzD.js +370 -0
- package/dist/_chunks/pt-D7qO5CzD.js.map +1 -0
- package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
- package/dist/_chunks/public-footer.agent-Bh0rnx4i.js.map +1 -0
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js.map → public-header.agent-B2dDg2_d.js.map} +1 -1
- package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
- package/dist/_chunks/{radio-i4ogu3cq.js.map → radio-TWf9Q-mp.js.map} +1 -1
- package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
- package/dist/_chunks/{radio-group-CTlGc36r.js.map → radio-group-BcF92GEF.js.map} +1 -1
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js.map → react-day-picker-DsjfS7uI.js.map} +1 -1
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js.map +1 -0
- package/dist/_chunks/refresh-cw-CC8jSKMr.js +17 -0
- package/dist/_chunks/refresh-cw-CC8jSKMr.js.map +1 -0
- package/dist/_chunks/registry-nPAVE19X.js +21 -0
- package/dist/_chunks/registry-nPAVE19X.js.map +1 -0
- package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
- package/dist/_chunks/resizable-3vzqDlg6.js.map +1 -0
- package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
- package/dist/_chunks/{reviews-panel-bKEUKSic.js.map → reviews-panel-yanuBZs-.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js.map → rich-text-editor-CHmr9Bz8.js.map} +1 -1
- package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
- package/dist/_chunks/ro-CP2-VJ_O.js.map +1 -0
- package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
- package/dist/_chunks/ru-RPn9_Lpq.js.map +1 -0
- package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
- package/dist/_chunks/{scroll-area-DEDU-lp-.js.map → scroll-area-BWqCkEGz.js.map} +1 -1
- package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
- package/dist/_chunks/{search-bar-BRMW1-WG.js.map → search-bar-CP6wUJFY.js.map} +1 -1
- package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
- package/dist/_chunks/search-input-C1C3jQpD.js.map +1 -0
- package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
- package/dist/_chunks/{select-C92AT_OZ.js.map → select-hsCaJSX3.js.map} +1 -1
- package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
- package/dist/_chunks/{sheet-D8Yl0nKR.js.map → sheet-BV-yuLE2.js.map} +1 -1
- package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
- package/dist/_chunks/{sidebar-DkyC6GvS.js.map → sidebar-BbR8f6oe.js.map} +1 -1
- package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
- package/dist/_chunks/signature-capture-C-fF71xI.js.map +1 -0
- package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
- package/dist/_chunks/{slider-CfEzeseL.js.map → slider-BHWzXdjt.js.map} +1 -1
- package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
- package/dist/_chunks/{slot-grid-Q94gVmhn.js.map → slot-grid-Dz13dH82.js.map} +1 -1
- package/dist/_chunks/smile-BSYLAHy6.js +17 -0
- package/dist/_chunks/smile-BSYLAHy6.js.map +1 -0
- package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
- package/dist/_chunks/{sparkline-B5Ms55PZ.js.map → sparkline-DEROcSl0.js.map} +1 -1
- package/dist/_chunks/sq-AQvefouo.js +355 -0
- package/dist/_chunks/sq-AQvefouo.js.map +1 -0
- package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
- package/dist/_chunks/stepper-progress-DDjq5nei.js.map +1 -0
- package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
- package/dist/_chunks/streaming-text-GH07yIYh.js.map +1 -0
- package/dist/_chunks/sv-zkx9eBtD.js +376 -0
- package/dist/_chunks/sv-zkx9eBtD.js.map +1 -0
- package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
- package/dist/_chunks/{switch-D916VW86.js.map → switch-BJ6HD3Mn.js.map} +1 -1
- package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
- package/dist/_chunks/{tabs-aEQfQV3x.js.map → tabs-BpPYVme_.js.map} +1 -1
- package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
- package/dist/_chunks/{tag-bBPAvXyh.js.map → tag-CyoaEmf_.js.map} +1 -1
- package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
- package/dist/_chunks/{task-tray-6NlryfMJ.js.map → task-tray-DRK0b0Qb.js.map} +1 -1
- package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
- package/dist/_chunks/text-area-BIx0tZ05.js.map +1 -0
- package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
- package/dist/_chunks/{text-input-CakysYnD.js.map → text-input-BaClJL8Y.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js.map → theme-toggle-DpC28kt5.js.map} +1 -1
- package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
- package/dist/_chunks/{time-picker-DeVZkIY2.js.map → time-picker-B5umYwfv.js.map} +1 -1
- package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
- package/dist/_chunks/{timeline-CR7HjZCK.js.map → timeline-D0Wo7v_o.js.map} +1 -1
- package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
- package/dist/_chunks/{toast.agent-DVpKt38p.js.map → toast.agent-WHHfw5VX.js.map} +1 -1
- package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
- package/dist/_chunks/tooltip-DvmfrNvB.js.map +1 -0
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js.map → tooth-scheme-CxlsLjfN.js.map} +1 -1
- package/dist/_chunks/tr-Dmr412Ac.js +378 -0
- package/dist/_chunks/tr-Dmr412Ac.js.map +1 -0
- package/dist/_chunks/{transaction-chip-z9ENE50O.js → transaction-chip-B8ujzowA.js} +47 -60
- package/dist/_chunks/transaction-chip-B8ujzowA.js.map +1 -0
- package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
- package/dist/_chunks/transcript-panel-DyhTpAP7.js.map +1 -0
- package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
- package/dist/_chunks/use-direction-Dp8h70PP.js.map +1 -0
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js.map +1 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js.map +1 -0
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js.map → use-password-requirements-DsgduV1x.js.map} +1 -1
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js.map +1 -0
- package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
- package/dist/_chunks/{workflow-map-DlWBJJBt.js.map → workflow-map-BSvQS3be.js.map} +1 -1
- package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
- package/dist/_chunks/zh-CN-DxVt64Zk.js.map +1 -0
- package/dist/agent/registry.d.ts +1 -6
- package/dist/agent/registry.d.ts.map +1 -1
- package/dist/agent-catalog.json +42 -1
- package/dist/components/_shared/date-locale.d.ts +7 -2
- package/dist/components/_shared/date-locale.d.ts.map +1 -1
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts.map +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.d.ts.map +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/audio-visualiser.d.ts.map +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts.map +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts.map +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts.map +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/cell-renderers/color-dot-cell-renderer.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +6 -6
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts.map +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +10 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts.map +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.d.ts +4 -0
- package/dist/components/practice-results/index.d.ts.map +1 -0
- package/dist/components/practice-results/index.js +6 -0
- package/dist/components/practice-results/index.js.map +1 -0
- package/dist/components/practice-results/practice-results.agent.d.ts +4 -0
- package/dist/components/practice-results/practice-results.agent.d.ts.map +1 -0
- package/dist/components/practice-results/practice-results.d.ts +159 -0
- package/dist/components/practice-results/practice-results.d.ts.map +1 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts.map +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts.map +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.d.ts.map +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts.map +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/stepper-progress/stepper-progress.d.ts.map +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/streaming-text/streaming-text.d.ts.map +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts.map +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts.map +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +69 -66
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-debounced-value.d.ts.map +1 -1
- package/dist/hooks/use-direction.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-scroll-to-first-error.d.ts.map +1 -1
- package/dist/i18n/locales/ar.d.ts +92 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +82 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +92 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +81 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +92 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +82 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +92 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +92 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +92 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +81 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +92 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +81 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +92 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +82 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +92 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +81 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +92 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +82 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +92 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +81 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +92 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +82 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +92 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +83 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +92 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +82 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +92 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +82 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +92 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +82 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +92 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +82 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +92 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +82 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +92 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +82 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +532 -528
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +92 -0
- package/dist/locales/de.json +92 -0
- package/dist/locales/el.json +92 -0
- package/dist/locales/en.json +92 -0
- package/dist/locales/es.json +92 -0
- package/dist/locales/fr.json +92 -0
- package/dist/locales/hi.json +92 -0
- package/dist/locales/it.json +92 -0
- package/dist/locales/ja.json +92 -0
- package/dist/locales/nl.json +92 -0
- package/dist/locales/pl.json +92 -0
- package/dist/locales/pt.json +92 -0
- package/dist/locales/ro.json +92 -0
- package/dist/locales/ru.json +92 -0
- package/dist/locales/sq.json +92 -0
- package/dist/locales/sv.json +92 -0
- package/dist/locales/tr.json +92 -0
- package/dist/locales/zh.json +92 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -2
- package/dist/_chunks/ai-prompt-input-BXlwNnWe.js.map +0 -1
- package/dist/_chunks/audio-recorder-DL800PE_.js.map +0 -1
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js.map +0 -1
- package/dist/_chunks/avatar-D_H4emLo.js.map +0 -1
- package/dist/_chunks/booking-Cw92aqo3.js.map +0 -1
- package/dist/_chunks/button-group-Bh2g_Ng-.js.map +0 -1
- package/dist/_chunks/chat-container-izziXViv.js.map +0 -1
- package/dist/_chunks/chat-input-cyl_y9bh.js.map +0 -1
- package/dist/_chunks/color-picker-Bm-gzpsh.js.map +0 -1
- package/dist/_chunks/combobox-Da9eq00i.js.map +0 -1
- package/dist/_chunks/command-palette-11BieSNq.js.map +0 -1
- package/dist/_chunks/date-range-picker-DYgHzMOo.js.map +0 -1
- package/dist/_chunks/editable-currency-cell-renderer-CztRy_21.js.map +0 -1
- package/dist/_chunks/file-upload-DxAQprcU.js.map +0 -1
- package/dist/_chunks/icon-button-group-DeV3FpNY.js.map +0 -1
- package/dist/_chunks/list-BdvDctBz.js.map +0 -1
- package/dist/_chunks/message-tray-Bh-0ra-Y.js.map +0 -1
- package/dist/_chunks/multi-select-dSe6Xtc4.js.map +0 -1
- package/dist/_chunks/notification-tray-Cnum6LwM.js.map +0 -1
- package/dist/_chunks/phone-input-DKSHX7NQ.js.map +0 -1
- package/dist/_chunks/progress-B-PSO5OS.js.map +0 -1
- package/dist/_chunks/public-footer.agent-Bc99tE5Z.js.map +0 -1
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js.map +0 -1
- package/dist/_chunks/registry-C9nwlNyL.js +0 -21
- package/dist/_chunks/registry-C9nwlNyL.js.map +0 -1
- package/dist/_chunks/resizable-COV-cnth.js.map +0 -1
- package/dist/_chunks/search-input-CIA6pPfn.js.map +0 -1
- package/dist/_chunks/signature-capture-DjMlFOzS.js.map +0 -1
- package/dist/_chunks/stepper-progress-jFY8BSf7.js.map +0 -1
- package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/streaming-text-BgjCTVOw.js.map +0 -1
- package/dist/_chunks/text-area-D5GAe8pV.js.map +0 -1
- package/dist/_chunks/tooltip-ClJd0ciy.js.map +0 -1
- package/dist/_chunks/transaction-chip-z9ENE50O.js.map +0 -1
- package/dist/_chunks/transcript-panel-QUQ9XJmf.js.map +0 -1
- package/dist/_chunks/use-direction-D6rvvG9G.js.map +0 -1
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
2
|
+
import { forwardRef as xe, useId as ke, useState as re, useRef as O, useCallback as y, useMemo as T, useEffect as we } from "react";
|
|
3
|
+
import { u as Ne } from "./index-BcMWc8W2.js";
|
|
4
|
+
import { c as B } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as Ue } from "react-i18next";
|
|
6
|
+
import { u as ze } from "./form-field-context-B3APVHKx.js";
|
|
7
|
+
import { u as je } from "./registry-nPAVE19X.js";
|
|
8
8
|
import { C as le } from "./circle-alert-ChA9opNA.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as N } from "./createLucideIcon-CrFbzy84.js";
|
|
10
10
|
import { X as ie } from "./x-CCcI3eJp.js";
|
|
11
|
-
import { F as
|
|
12
|
-
import { F as
|
|
13
|
-
import { C as
|
|
11
|
+
import { F as Me } from "./file-text-DSNuv2B8.js";
|
|
12
|
+
import { F as Ce } from "./file-spreadsheet-zUkY8rJ2.js";
|
|
13
|
+
import { C as Fe } from "./circle-check-9AeSgJD_.js";
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v1.8.0 - ISC
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the ISC license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
const
|
|
20
|
+
const Le = [
|
|
21
21
|
["path", { d: "M12 13v8", key: "1l5pq0" }],
|
|
22
22
|
["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
|
|
23
23
|
["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
|
|
24
|
-
],
|
|
24
|
+
], Ae = N("cloud-upload", Le);
|
|
25
25
|
/**
|
|
26
26
|
* @license lucide-react v1.8.0 - ISC
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
29
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const Re = [
|
|
32
32
|
[
|
|
33
33
|
"path",
|
|
34
34
|
{
|
|
@@ -41,14 +41,14 @@ const _e = [
|
|
|
41
41
|
["path", { d: "M8 18v-2", key: "qcmpov" }],
|
|
42
42
|
["path", { d: "M8 7V6", key: "1nbb54" }],
|
|
43
43
|
["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
|
|
44
|
-
],
|
|
44
|
+
], De = N("file-archive", Re);
|
|
45
45
|
/**
|
|
46
46
|
* @license lucide-react v1.8.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
|
-
const
|
|
51
|
+
const Ie = [
|
|
52
52
|
[
|
|
53
53
|
"path",
|
|
54
54
|
{
|
|
@@ -59,14 +59,14 @@ const He = [
|
|
|
59
59
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
60
60
|
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
61
61
|
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
62
|
-
],
|
|
62
|
+
], _e = N("file-image", Ie);
|
|
63
63
|
/**
|
|
64
64
|
* @license lucide-react v1.8.0 - ISC
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the ISC license.
|
|
67
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
68
|
*/
|
|
69
|
-
const
|
|
69
|
+
const Be = [
|
|
70
70
|
[
|
|
71
71
|
"path",
|
|
72
72
|
{
|
|
@@ -75,32 +75,32 @@ const Ee = [
|
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
78
|
-
],
|
|
78
|
+
], He = N("file", Be);
|
|
79
79
|
/**
|
|
80
80
|
* @license lucide-react v1.8.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
84
|
*/
|
|
85
|
-
const
|
|
85
|
+
const $e = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ee = N("loader-circle", $e);
|
|
86
86
|
/**
|
|
87
87
|
* @license lucide-react v1.8.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
91
|
*/
|
|
92
|
-
const
|
|
92
|
+
const Ve = [
|
|
93
93
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
94
94
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
95
95
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
96
|
-
],
|
|
96
|
+
], P = N("upload", Ve), qe = {
|
|
97
97
|
id: "file-upload",
|
|
98
98
|
capabilities: ["submit", "dismiss"],
|
|
99
99
|
state: {
|
|
100
100
|
files: {
|
|
101
101
|
type: "Array<{ id, name, size, status }>",
|
|
102
102
|
description: "Files currently tracked by the uploader. Identifiers and metadata only — never file content.",
|
|
103
|
-
read: (
|
|
103
|
+
read: (o) => o.getFiles()
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
actions: {
|
|
@@ -108,15 +108,15 @@ const Te = [
|
|
|
108
108
|
safety: "destructive",
|
|
109
109
|
argsType: "{ id: string }",
|
|
110
110
|
description: "Remove the file with the given id from the upload list.",
|
|
111
|
-
invoke: (
|
|
112
|
-
|
|
111
|
+
invoke: (o, a) => {
|
|
112
|
+
o.removeFile(a.id);
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
clear: {
|
|
116
116
|
safety: "destructive",
|
|
117
117
|
description: "Remove all files from the upload list.",
|
|
118
|
-
invoke: (
|
|
119
|
-
|
|
118
|
+
invoke: (o) => {
|
|
119
|
+
o.clear();
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -132,7 +132,7 @@ const Te = [
|
|
|
132
132
|
description: "Each tracked file emits its id as data-file-id."
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, Oe = B(
|
|
136
136
|
[
|
|
137
137
|
"ds:relative ds:flex ds:flex-col ds:items-center ds:justify-center",
|
|
138
138
|
"ds:min-h-48 ds:px-[var(--spacing-lg)] ds:py-[var(--spacing-xl)]",
|
|
@@ -165,7 +165,7 @@ const Te = [
|
|
|
165
165
|
isDisabled: !1
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
), ae =
|
|
168
|
+
), ae = B(
|
|
169
169
|
[
|
|
170
170
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
171
171
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
@@ -178,7 +178,7 @@ const Te = [
|
|
|
178
178
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
179
179
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
180
180
|
].join(" ")
|
|
181
|
-
),
|
|
181
|
+
), Te = B(
|
|
182
182
|
[
|
|
183
183
|
"ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
|
|
184
184
|
"ds:rounded-[var(--radius-md)] ds:border ds:bg-background",
|
|
@@ -199,7 +199,7 @@ const Te = [
|
|
|
199
199
|
status: "pending"
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
), oe =
|
|
202
|
+
), oe = B(
|
|
203
203
|
[
|
|
204
204
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
205
205
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
@@ -211,52 +211,52 @@ const Te = [
|
|
|
211
211
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
212
212
|
].join(" ")
|
|
213
213
|
);
|
|
214
|
-
function
|
|
214
|
+
function Pe() {
|
|
215
215
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
217
|
+
function Ke(o) {
|
|
218
|
+
return o.type.startsWith("image/");
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function We(o) {
|
|
221
221
|
var c;
|
|
222
|
-
const
|
|
223
|
-
return ["pdf", "doc", "docx", "txt", "rtf"].includes(
|
|
224
|
-
|
|
222
|
+
const a = ((c = o.name.split(".").pop()) == null ? void 0 : c.toLowerCase()) ?? "";
|
|
223
|
+
return ["pdf", "doc", "docx", "txt", "rtf"].includes(a) ? /* @__PURE__ */ r(
|
|
224
|
+
Me,
|
|
225
225
|
{
|
|
226
226
|
"aria-hidden": "true",
|
|
227
227
|
className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
|
|
228
228
|
}
|
|
229
|
-
) : ["zip", "rar", "7z", "tar", "gz"].includes(
|
|
230
|
-
|
|
229
|
+
) : ["zip", "rar", "7z", "tar", "gz"].includes(a) ? /* @__PURE__ */ r(
|
|
230
|
+
De,
|
|
231
231
|
{
|
|
232
232
|
"aria-hidden": "true",
|
|
233
233
|
className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
|
|
234
234
|
}
|
|
235
|
-
) : ["xls", "xlsx", "csv"].includes(
|
|
236
|
-
|
|
235
|
+
) : ["xls", "xlsx", "csv"].includes(a) ? /* @__PURE__ */ r(
|
|
236
|
+
Ce,
|
|
237
237
|
{
|
|
238
238
|
"aria-hidden": "true",
|
|
239
239
|
className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
|
|
240
240
|
}
|
|
241
|
-
) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(
|
|
242
|
-
|
|
241
|
+
) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(a) ? /* @__PURE__ */ r(
|
|
242
|
+
_e,
|
|
243
243
|
{
|
|
244
244
|
"aria-hidden": "true",
|
|
245
245
|
className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
|
|
246
246
|
}
|
|
247
247
|
) : /* @__PURE__ */ r(
|
|
248
|
-
|
|
248
|
+
He,
|
|
249
249
|
{
|
|
250
250
|
"aria-hidden": "true",
|
|
251
251
|
className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
switch (
|
|
255
|
+
function Ge(o) {
|
|
256
|
+
switch (o) {
|
|
257
257
|
case "uploading":
|
|
258
258
|
return /* @__PURE__ */ r(
|
|
259
|
-
|
|
259
|
+
Ee,
|
|
260
260
|
{
|
|
261
261
|
"aria-hidden": "true",
|
|
262
262
|
className: "ds:size-4 ds:shrink-0 ds:text-primary ds:animate-spin"
|
|
@@ -264,7 +264,7 @@ function Je(d) {
|
|
|
264
264
|
);
|
|
265
265
|
case "complete":
|
|
266
266
|
return /* @__PURE__ */ r(
|
|
267
|
-
|
|
267
|
+
Fe,
|
|
268
268
|
{
|
|
269
269
|
"aria-hidden": "true",
|
|
270
270
|
className: "ds:size-4 ds:shrink-0 ds:text-[var(--success)]"
|
|
@@ -282,23 +282,23 @@ function Je(d) {
|
|
|
282
282
|
return null;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const Xe = [
|
|
286
286
|
"inputs.fileUpload.units.bytes",
|
|
287
287
|
"inputs.fileUpload.units.kilobytes",
|
|
288
288
|
"inputs.fileUpload.units.megabytes",
|
|
289
289
|
"inputs.fileUpload.units.gigabytes"
|
|
290
290
|
], ne = ["B", "KB", "MB", "GB"];
|
|
291
|
-
function
|
|
292
|
-
let
|
|
293
|
-
for (;
|
|
294
|
-
|
|
295
|
-
const g = new Intl.NumberFormat(
|
|
296
|
-
maximumFractionDigits:
|
|
297
|
-
}).format(
|
|
298
|
-
return `${g} ${
|
|
291
|
+
function _(o, a, c) {
|
|
292
|
+
let l = o, u = 0;
|
|
293
|
+
for (; l >= 1024 && u < ne.length - 1; )
|
|
294
|
+
l /= 1024, u++;
|
|
295
|
+
const g = new Intl.NumberFormat(a, {
|
|
296
|
+
maximumFractionDigits: u === 0 ? 0 : 1
|
|
297
|
+
}).format(l), U = c(Xe[u], ne[u]);
|
|
298
|
+
return `${g} ${U}`;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
switch (
|
|
300
|
+
function Ye(o) {
|
|
301
|
+
switch (o) {
|
|
302
302
|
case "file-too-large":
|
|
303
303
|
return "file-too-large";
|
|
304
304
|
case "file-too-small":
|
|
@@ -311,89 +311,90 @@ function Ze(d) {
|
|
|
311
311
|
return "file-invalid-type";
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
const
|
|
316
|
-
return
|
|
314
|
+
function Je(o) {
|
|
315
|
+
const a = o.split(".");
|
|
316
|
+
return a.length > 1 ? `.${a.pop().toLowerCase()}` : "";
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const
|
|
320
|
-
for (const u of Object.
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
318
|
+
function de(o, a) {
|
|
319
|
+
const c = Je(o.name);
|
|
320
|
+
for (const [l, u] of Object.entries(a)) {
|
|
321
|
+
const g = l === "*/*" || l.endsWith("/*") && o.type.startsWith(l.replace("/*", "/")) || o.type === l, U = u.length === 0 || u.some((C) => C.toLowerCase() === c);
|
|
322
|
+
if (g && U) return !0;
|
|
323
|
+
}
|
|
324
|
+
return !1;
|
|
325
|
+
}
|
|
326
|
+
function Qe(o) {
|
|
327
|
+
const a = [];
|
|
328
|
+
for (const l of Object.values(o))
|
|
329
|
+
for (const u of l)
|
|
330
|
+
a.push(u.toUpperCase().replace(".", ""));
|
|
331
|
+
if (a.length > 0) return a.join(", ");
|
|
324
332
|
const c = [];
|
|
325
|
-
for (const
|
|
326
|
-
|
|
333
|
+
for (const l of Object.keys(o))
|
|
334
|
+
l.endsWith("/*") ? c.push(l.replace("/*", "").split("/").pop() ?? l) : c.push(l.split("/").pop() ?? l);
|
|
327
335
|
return c.join(", ");
|
|
328
336
|
}
|
|
329
|
-
const
|
|
337
|
+
const Ze = xe(
|
|
330
338
|
({
|
|
331
|
-
id:
|
|
332
|
-
accept:
|
|
339
|
+
id: o,
|
|
340
|
+
accept: a,
|
|
333
341
|
maxSize: c,
|
|
334
|
-
minSize:
|
|
335
|
-
maxFiles:
|
|
342
|
+
minSize: l,
|
|
343
|
+
maxFiles: u = 1,
|
|
336
344
|
multiple: g = !1,
|
|
337
|
-
disabled:
|
|
338
|
-
strictAccept:
|
|
345
|
+
disabled: U,
|
|
346
|
+
strictAccept: C = !1,
|
|
339
347
|
onDrop: F,
|
|
340
348
|
onUpload: H,
|
|
341
349
|
onRemove: L,
|
|
342
350
|
onReject: A,
|
|
343
|
-
variant:
|
|
351
|
+
variant: v = "both",
|
|
344
352
|
showPreview: ce = !0,
|
|
345
|
-
className:
|
|
346
|
-
},
|
|
347
|
-
const { t:
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
|
|
353
|
+
className: K
|
|
354
|
+
}, z) => {
|
|
355
|
+
const { t: i, i18n: k } = Ue(), h = ze(), ue = ke(), x = h.disabled || U, pe = h.invalid, W = h.id || ue, [R, b] = re([]), [G, fe] = re([]), D = O(/* @__PURE__ */ new Map()), $ = O(null), j = O(R);
|
|
356
|
+
j.current = R;
|
|
357
|
+
const w = y((e) => {
|
|
358
|
+
$.current && ($.current.textContent = e);
|
|
351
359
|
}, []), X = y(
|
|
352
|
-
(e) =>
|
|
353
|
-
|
|
354
|
-
for (const [s, a] of Object.entries(n)) {
|
|
355
|
-
const t = s === "*/*" || s.endsWith("/*") && e.type.startsWith(s.replace("/*", "/")) || e.type === s, i = de(e.name), f = a.length === 0 || a.some((U) => U.toLowerCase() === i);
|
|
356
|
-
if (t && f) return !0;
|
|
357
|
-
}
|
|
358
|
-
return !1;
|
|
359
|
-
},
|
|
360
|
-
[W, n]
|
|
360
|
+
(e) => !C || !a ? !0 : de(e, a),
|
|
361
|
+
[C, a]
|
|
361
362
|
), Y = y(
|
|
362
363
|
async (e) => {
|
|
363
364
|
if (!H) return;
|
|
364
365
|
const s = new AbortController();
|
|
365
366
|
D.current.set(e.id, s), b(
|
|
366
|
-
(
|
|
367
|
+
(n) => n.map(
|
|
367
368
|
(t) => t.id === e.id ? { ...t, status: "uploading", progress: 0 } : t
|
|
368
369
|
)
|
|
369
|
-
),
|
|
370
|
+
), w(i("inputs.fileUpload.uploading", "Uploading…"));
|
|
370
371
|
try {
|
|
371
372
|
await H(e.file, {
|
|
372
373
|
signal: s.signal,
|
|
373
|
-
onProgress: (
|
|
374
|
+
onProgress: (n) => {
|
|
374
375
|
b(
|
|
375
376
|
(t) => t.map(
|
|
376
|
-
(
|
|
377
|
+
(d) => d.id === e.id ? { ...d, progress: n } : d
|
|
377
378
|
)
|
|
378
|
-
),
|
|
379
|
-
|
|
380
|
-
percent:
|
|
379
|
+
), w(
|
|
380
|
+
i("inputs.fileUpload.progress", "{{percent}}% uploaded", {
|
|
381
|
+
percent: n
|
|
381
382
|
})
|
|
382
383
|
);
|
|
383
384
|
}
|
|
384
385
|
}), b(
|
|
385
|
-
(
|
|
386
|
+
(n) => n.map(
|
|
386
387
|
(t) => t.id === e.id ? { ...t, status: "complete", progress: 100 } : t
|
|
387
388
|
)
|
|
388
|
-
),
|
|
389
|
-
} catch (
|
|
389
|
+
), w(i("inputs.fileUpload.complete", "Upload complete"));
|
|
390
|
+
} catch (n) {
|
|
390
391
|
if (s.signal.aborted) {
|
|
391
|
-
b((
|
|
392
|
+
b((d) => d.filter((f) => f.id !== e.id));
|
|
392
393
|
return;
|
|
393
394
|
}
|
|
394
|
-
const t =
|
|
395
|
+
const t = n instanceof Error ? n.message : i("inputs.fileUpload.errors.uploadFailed", "Upload failed");
|
|
395
396
|
b(
|
|
396
|
-
(
|
|
397
|
+
(d) => d.map(
|
|
397
398
|
(f) => f.id === e.id ? { ...f, status: "error", error: t } : f
|
|
398
399
|
)
|
|
399
400
|
);
|
|
@@ -401,193 +402,185 @@ const es = Ne(
|
|
|
401
402
|
D.current.delete(e.id);
|
|
402
403
|
}
|
|
403
404
|
},
|
|
404
|
-
[H,
|
|
405
|
+
[H, w, i]
|
|
405
406
|
), E = y(
|
|
406
407
|
(e, s) => {
|
|
407
|
-
const
|
|
408
|
-
(
|
|
409
|
-
file:
|
|
410
|
-
reason:
|
|
408
|
+
const n = s.flatMap(
|
|
409
|
+
(p) => p.errors.map((I) => ({
|
|
410
|
+
file: p.file,
|
|
411
|
+
reason: Ye(I.code)
|
|
411
412
|
}))
|
|
412
|
-
), t = [],
|
|
413
|
-
for (const
|
|
414
|
-
X(
|
|
415
|
-
const f = [...
|
|
413
|
+
), t = [], d = [];
|
|
414
|
+
for (const p of e)
|
|
415
|
+
X(p) ? d.push(p) : t.push({ file: p, reason: "file-invalid-type" });
|
|
416
|
+
const f = [...n, ...t];
|
|
416
417
|
fe(f), f.length > 0 && (A == null || A(f));
|
|
417
|
-
const
|
|
418
|
-
file:
|
|
419
|
-
id:
|
|
418
|
+
const q = d.map((p) => ({
|
|
419
|
+
file: p,
|
|
420
|
+
id: Pe(),
|
|
420
421
|
status: "pending",
|
|
421
422
|
progress: 0,
|
|
422
|
-
preview:
|
|
423
|
+
preview: Ke(p) ? URL.createObjectURL(p) : void 0
|
|
423
424
|
}));
|
|
424
|
-
b((
|
|
425
|
-
if (!g &&
|
|
426
|
-
for (const
|
|
427
|
-
|
|
428
|
-
return
|
|
425
|
+
b((p) => {
|
|
426
|
+
if (!g && u === 1) {
|
|
427
|
+
for (const I of p)
|
|
428
|
+
I.preview && URL.revokeObjectURL(I.preview);
|
|
429
|
+
return q;
|
|
429
430
|
}
|
|
430
|
-
return [...
|
|
431
|
-
}), F == null || F(
|
|
432
|
-
|
|
433
|
-
count:
|
|
431
|
+
return [...p, ...q];
|
|
432
|
+
}), F == null || F(d, f), w(
|
|
433
|
+
i("inputs.fileUpload.filesSelected", "{{count}} file(s) selected", {
|
|
434
|
+
count: d.length
|
|
434
435
|
})
|
|
435
436
|
);
|
|
436
|
-
for (const
|
|
437
|
-
Y(
|
|
437
|
+
for (const p of q)
|
|
438
|
+
Y(p);
|
|
438
439
|
},
|
|
439
440
|
[
|
|
440
441
|
g,
|
|
441
|
-
|
|
442
|
+
u,
|
|
442
443
|
F,
|
|
443
444
|
A,
|
|
444
445
|
X,
|
|
445
|
-
|
|
446
|
+
w,
|
|
446
447
|
Y,
|
|
447
|
-
|
|
448
|
+
i
|
|
448
449
|
]
|
|
449
|
-
), { getRootProps: me, getInputProps: J, isDragActive:
|
|
450
|
-
accept:
|
|
450
|
+
), { getRootProps: me, getInputProps: J, isDragActive: M, open: Q } = Ne({
|
|
451
|
+
accept: a,
|
|
451
452
|
maxSize: c,
|
|
452
|
-
minSize:
|
|
453
|
-
maxFiles: g ?
|
|
453
|
+
minSize: l,
|
|
454
|
+
maxFiles: g ? u : 1,
|
|
454
455
|
multiple: g,
|
|
455
456
|
disabled: x,
|
|
456
457
|
onDrop: E,
|
|
457
|
-
noClick:
|
|
458
|
-
noKeyboard:
|
|
458
|
+
noClick: v === "button",
|
|
459
|
+
noKeyboard: v === "button"
|
|
459
460
|
}), ge = y((e) => {
|
|
460
461
|
const s = D.current.get(e);
|
|
461
|
-
s == null || s.abort(), b((
|
|
462
|
-
const t =
|
|
463
|
-
return t != null && t.preview && URL.revokeObjectURL(t.preview),
|
|
462
|
+
s == null || s.abort(), b((n) => {
|
|
463
|
+
const t = n.find((d) => d.id === e);
|
|
464
|
+
return t != null && t.preview && URL.revokeObjectURL(t.preview), n.filter((d) => d.id !== e);
|
|
464
465
|
});
|
|
465
|
-
}, []),
|
|
466
|
+
}, []), V = y(
|
|
466
467
|
(e) => {
|
|
467
|
-
const s =
|
|
468
|
-
s != null && s.preview && URL.revokeObjectURL(s.preview), b((
|
|
468
|
+
const s = j.current.find((n) => n.id === e);
|
|
469
|
+
s != null && s.preview && URL.revokeObjectURL(s.preview), b((n) => n.filter((t) => t.id !== e)), s && (L == null || L(s));
|
|
469
470
|
},
|
|
470
471
|
[L]
|
|
471
472
|
), Z = y(() => {
|
|
472
|
-
for (const e of
|
|
473
|
+
for (const e of j.current) {
|
|
473
474
|
const s = D.current.get(e.id);
|
|
474
475
|
s == null || s.abort(), e.preview && URL.revokeObjectURL(e.preview);
|
|
475
476
|
}
|
|
476
477
|
b([]);
|
|
477
|
-
}, []),
|
|
478
|
+
}, []), ve = T(
|
|
478
479
|
() => ({
|
|
479
|
-
getFiles: () =>
|
|
480
|
+
getFiles: () => j.current.map((e) => ({
|
|
480
481
|
id: e.id,
|
|
481
482
|
name: e.file.name,
|
|
482
483
|
size: e.file.size,
|
|
483
484
|
status: e.status
|
|
484
485
|
})),
|
|
485
|
-
removeFile: (e) =>
|
|
486
|
+
removeFile: (e) => V(e),
|
|
486
487
|
clear: () => Z()
|
|
487
488
|
}),
|
|
488
|
-
[
|
|
489
|
+
[V, Z]
|
|
489
490
|
);
|
|
490
|
-
|
|
491
|
+
je(qe, ve, o);
|
|
491
492
|
const S = y(
|
|
492
493
|
(e) => {
|
|
493
|
-
const s = [],
|
|
494
|
-
for (const
|
|
494
|
+
const s = [], n = [], t = g ? u : 1;
|
|
495
|
+
for (const d of e) {
|
|
495
496
|
if (s.length >= t) {
|
|
496
|
-
|
|
497
|
+
n.push({ file: d, reason: "too-many-files" });
|
|
497
498
|
continue;
|
|
498
499
|
}
|
|
499
|
-
if (c !== void 0 &&
|
|
500
|
-
|
|
500
|
+
if (c !== void 0 && d.size > c) {
|
|
501
|
+
n.push({ file: d, reason: "file-too-large" });
|
|
501
502
|
continue;
|
|
502
503
|
}
|
|
503
|
-
if (
|
|
504
|
-
|
|
504
|
+
if (l !== void 0 && d.size < l) {
|
|
505
|
+
n.push({ file: d, reason: "file-too-small" });
|
|
505
506
|
continue;
|
|
506
507
|
}
|
|
507
|
-
if (
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
([l, k]) => {
|
|
511
|
-
const xe = l === "*/*" || l.endsWith("/*") && i.type.startsWith(l.replace("/*", "/")) || i.type === l, ke = k.length > 0 && k.some((we) => we.toLowerCase() === f);
|
|
512
|
-
return xe || ke;
|
|
513
|
-
}
|
|
514
|
-
)) {
|
|
515
|
-
a.push({ file: i, reason: "file-invalid-type" });
|
|
516
|
-
continue;
|
|
517
|
-
}
|
|
508
|
+
if (a && !de(d, a)) {
|
|
509
|
+
n.push({ file: d, reason: "file-invalid-type" });
|
|
510
|
+
continue;
|
|
518
511
|
}
|
|
519
|
-
s.push(
|
|
512
|
+
s.push(d);
|
|
520
513
|
}
|
|
521
|
-
return { accepted: s, rejected:
|
|
514
|
+
return { accepted: s, rejected: n };
|
|
522
515
|
},
|
|
523
|
-
[
|
|
516
|
+
[a, c, l, u, g]
|
|
524
517
|
), ee = y(
|
|
525
518
|
(e) => {
|
|
526
519
|
if (x) return;
|
|
527
520
|
const s = Array.from(e.clipboardData.files);
|
|
528
521
|
if (s.length > 0) {
|
|
529
522
|
e.preventDefault();
|
|
530
|
-
const { accepted:
|
|
523
|
+
const { accepted: n, rejected: t } = S(s), d = t.map((f) => ({
|
|
531
524
|
file: f.file,
|
|
532
525
|
errors: [{ code: f.reason, message: f.reason }]
|
|
533
526
|
}));
|
|
534
|
-
E(
|
|
527
|
+
E(n, d);
|
|
535
528
|
}
|
|
536
529
|
},
|
|
537
530
|
[x, E, S]
|
|
538
531
|
);
|
|
539
|
-
|
|
540
|
-
for (const e of
|
|
532
|
+
we(() => () => {
|
|
533
|
+
for (const e of j.current)
|
|
541
534
|
e.preview && URL.revokeObjectURL(e.preview);
|
|
542
535
|
}, []);
|
|
543
|
-
const se =
|
|
536
|
+
const se = T(() => {
|
|
544
537
|
const e = [];
|
|
545
|
-
return
|
|
546
|
-
|
|
547
|
-
size:
|
|
538
|
+
return a && e.push(Qe(a)), c && e.push(
|
|
539
|
+
i("inputs.fileUpload.maxSizeHint", "Max {{size}}", {
|
|
540
|
+
size: _(c, k.language, i)
|
|
548
541
|
})
|
|
549
|
-
), g &&
|
|
550
|
-
|
|
551
|
-
count:
|
|
542
|
+
), g && u > 1 && e.push(
|
|
543
|
+
i("inputs.fileUpload.maxFilesHint", "Up to {{count}} files", {
|
|
544
|
+
count: u
|
|
552
545
|
})
|
|
553
546
|
), e;
|
|
554
|
-
}, [
|
|
547
|
+
}, [a, c, g, u, i, k.language]), te = T(() => G.map((e) => {
|
|
555
548
|
switch (e.reason) {
|
|
556
549
|
case "file-too-large":
|
|
557
|
-
return
|
|
550
|
+
return i(
|
|
558
551
|
"inputs.fileUpload.errors.fileTooLarge",
|
|
559
552
|
"File exceeds {{maxSize}}",
|
|
560
553
|
{
|
|
561
|
-
maxSize: c ?
|
|
554
|
+
maxSize: c ? _(c, k.language, i) : ""
|
|
562
555
|
}
|
|
563
556
|
);
|
|
564
557
|
case "file-too-small":
|
|
565
|
-
return
|
|
558
|
+
return i(
|
|
566
559
|
"inputs.fileUpload.errors.fileTooSmall",
|
|
567
560
|
"File is smaller than {{minSize}}",
|
|
568
561
|
{
|
|
569
|
-
minSize:
|
|
562
|
+
minSize: l ? _(l, k.language, i) : ""
|
|
570
563
|
}
|
|
571
564
|
);
|
|
572
565
|
case "file-invalid-type":
|
|
573
|
-
return
|
|
566
|
+
return i(
|
|
574
567
|
"inputs.fileUpload.errors.fileInvalidType",
|
|
575
568
|
"File type not accepted"
|
|
576
569
|
);
|
|
577
570
|
case "too-many-files":
|
|
578
|
-
return
|
|
571
|
+
return i(
|
|
579
572
|
"inputs.fileUpload.errors.tooManyFiles",
|
|
580
573
|
"Maximum {{maxFiles}} files allowed",
|
|
581
574
|
{
|
|
582
|
-
maxFiles:
|
|
575
|
+
maxFiles: u
|
|
583
576
|
}
|
|
584
577
|
);
|
|
585
578
|
}
|
|
586
|
-
}), [G,
|
|
579
|
+
}), [G, i, c, l, u, k.language]), he = () => R.length === 0 ? null : /* @__PURE__ */ r("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: R.map((e) => /* @__PURE__ */ m(
|
|
587
580
|
"li",
|
|
588
581
|
{
|
|
589
582
|
"data-file-id": e.id,
|
|
590
|
-
className:
|
|
583
|
+
className: Te({ status: e.status }),
|
|
591
584
|
children: [
|
|
592
585
|
ce && e.preview ? /* @__PURE__ */ r(
|
|
593
586
|
"img",
|
|
@@ -597,19 +590,19 @@ const es = Ne(
|
|
|
597
590
|
"aria-hidden": "true",
|
|
598
591
|
className: "ds:size-12 ds:shrink-0 ds:rounded-[var(--radius-md)] ds:object-cover ds:border ds:border-border"
|
|
599
592
|
}
|
|
600
|
-
) :
|
|
593
|
+
) : We(e.file),
|
|
601
594
|
/* @__PURE__ */ m("div", { className: "ds:flex-1 ds:min-w-0", children: [
|
|
602
595
|
/* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
603
596
|
/* @__PURE__ */ r("p", { className: "ds:truncate type-label ds:m-0", children: e.file.name }),
|
|
604
|
-
|
|
597
|
+
Ge(e.status)
|
|
605
598
|
] }),
|
|
606
599
|
/* @__PURE__ */ m("p", { className: "type-meta ds:text-muted-foreground ds:m-0 ds:mt-0.5", children: [
|
|
607
|
-
|
|
600
|
+
_(e.file.size, k.language, i),
|
|
608
601
|
e.status === "uploading" && /* @__PURE__ */ m("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-primary ds:font-medium", children: [
|
|
609
602
|
e.progress,
|
|
610
603
|
"%"
|
|
611
604
|
] }),
|
|
612
|
-
e.status === "complete" && /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-[var(--success)] ds:font-medium", children:
|
|
605
|
+
e.status === "complete" && /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-[var(--success)] ds:font-medium", children: i("inputs.fileUpload.complete", "Complete") })
|
|
613
606
|
] }),
|
|
614
607
|
e.status === "uploading" && /* @__PURE__ */ r(
|
|
615
608
|
"div",
|
|
@@ -643,7 +636,7 @@ const es = Ne(
|
|
|
643
636
|
{
|
|
644
637
|
type: "button",
|
|
645
638
|
onClick: () => ge(e.id),
|
|
646
|
-
"aria-label":
|
|
639
|
+
"aria-label": i("inputs.fileUpload.cancel", "Cancel upload"),
|
|
647
640
|
className: oe(),
|
|
648
641
|
children: /* @__PURE__ */ r(ie, { "aria-hidden": "true", className: "ds:size-4" })
|
|
649
642
|
}
|
|
@@ -652,8 +645,8 @@ const es = Ne(
|
|
|
652
645
|
"button",
|
|
653
646
|
{
|
|
654
647
|
type: "button",
|
|
655
|
-
onClick: () =>
|
|
656
|
-
"aria-label":
|
|
648
|
+
onClick: () => V(e.id),
|
|
649
|
+
"aria-label": i("inputs.fileUpload.remove", "Remove file"),
|
|
657
650
|
className: oe(),
|
|
658
651
|
children: /* @__PURE__ */ r(ie, { "aria-hidden": "true", className: "ds:size-4" })
|
|
659
652
|
}
|
|
@@ -662,13 +655,13 @@ const es = Ne(
|
|
|
662
655
|
},
|
|
663
656
|
e.id
|
|
664
657
|
)) }), be = () => {
|
|
665
|
-
if (
|
|
658
|
+
if (v === "button") return null;
|
|
666
659
|
const e = me({
|
|
667
|
-
className:
|
|
668
|
-
isDragActive:
|
|
660
|
+
className: Oe({
|
|
661
|
+
isDragActive: M,
|
|
669
662
|
hasError: pe ?? !1,
|
|
670
663
|
isDisabled: x ?? !1,
|
|
671
|
-
className:
|
|
664
|
+
className: K
|
|
672
665
|
}),
|
|
673
666
|
tabIndex: x ? -1 : 0
|
|
674
667
|
}), s = e.ref;
|
|
@@ -677,24 +670,24 @@ const es = Ne(
|
|
|
677
670
|
{
|
|
678
671
|
...e,
|
|
679
672
|
ref: (t) => {
|
|
680
|
-
typeof s == "function" ? s(t) : s && (s.current = t), typeof
|
|
673
|
+
typeof s == "function" ? s(t) : s && (s.current = t), typeof z == "function" ? z(t) : z && (z.current = t);
|
|
681
674
|
},
|
|
682
675
|
onPaste: ee,
|
|
683
|
-
id:
|
|
684
|
-
"aria-label":
|
|
676
|
+
id: W,
|
|
677
|
+
"aria-label": i(
|
|
685
678
|
"inputs.fileUpload.dropHere",
|
|
686
679
|
"Drop files here or click to browse"
|
|
687
680
|
),
|
|
688
|
-
"aria-describedby":
|
|
689
|
-
"aria-invalid":
|
|
690
|
-
"aria-required":
|
|
681
|
+
"aria-describedby": h.describedBy || void 0,
|
|
682
|
+
"aria-invalid": h.invalid || void 0,
|
|
683
|
+
"aria-required": h.required || void 0,
|
|
691
684
|
"data-testid": "file-upload-dropzone",
|
|
692
685
|
children: [
|
|
693
686
|
/* @__PURE__ */ r(
|
|
694
687
|
"input",
|
|
695
688
|
{
|
|
696
689
|
...J({
|
|
697
|
-
"aria-label":
|
|
690
|
+
"aria-label": i(
|
|
698
691
|
"inputs.fileUpload.dropHere",
|
|
699
692
|
"Drop files here or click to browse"
|
|
700
693
|
)
|
|
@@ -702,15 +695,15 @@ const es = Ne(
|
|
|
702
695
|
}
|
|
703
696
|
),
|
|
704
697
|
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
705
|
-
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children:
|
|
698
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: M ? /* @__PURE__ */ r(Ae, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ r(P, { "aria-hidden": "true", className: "ds:size-7" }) }),
|
|
706
699
|
/* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
707
|
-
/* @__PURE__ */ r("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children:
|
|
700
|
+
/* @__PURE__ */ r("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: M ? i("inputs.fileUpload.dropActive", "Drop files here") : i(
|
|
708
701
|
"inputs.fileUpload.dropHere",
|
|
709
702
|
"Drop files here or click to browse"
|
|
710
703
|
) }),
|
|
711
|
-
se.length > 0 && !
|
|
704
|
+
se.length > 0 && !M && /* @__PURE__ */ r("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: se.join(" · ") })
|
|
712
705
|
] }),
|
|
713
|
-
|
|
706
|
+
v === "both" && !M && /* @__PURE__ */ m(
|
|
714
707
|
"button",
|
|
715
708
|
{
|
|
716
709
|
type: "button",
|
|
@@ -722,8 +715,8 @@ const es = Ne(
|
|
|
722
715
|
className: "ds:mt-[var(--spacing-xs)]"
|
|
723
716
|
}),
|
|
724
717
|
children: [
|
|
725
|
-
/* @__PURE__ */ r(
|
|
726
|
-
|
|
718
|
+
/* @__PURE__ */ r(P, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
719
|
+
i("inputs.fileUpload.browse", "Browse files")
|
|
727
720
|
]
|
|
728
721
|
}
|
|
729
722
|
)
|
|
@@ -731,12 +724,12 @@ const es = Ne(
|
|
|
731
724
|
]
|
|
732
725
|
}
|
|
733
726
|
);
|
|
734
|
-
}, ye = () =>
|
|
727
|
+
}, ye = () => v === "dropzone" ? null : v === "button" ? /* @__PURE__ */ m("div", { onPaste: ee, ref: z, children: [
|
|
735
728
|
/* @__PURE__ */ r(
|
|
736
729
|
"input",
|
|
737
730
|
{
|
|
738
731
|
...J({
|
|
739
|
-
"aria-label":
|
|
732
|
+
"aria-label": i("inputs.fileUpload.browse", "Browse files")
|
|
740
733
|
})
|
|
741
734
|
}
|
|
742
735
|
),
|
|
@@ -746,22 +739,22 @@ const es = Ne(
|
|
|
746
739
|
type: "button",
|
|
747
740
|
onClick: Q,
|
|
748
741
|
disabled: x,
|
|
749
|
-
className: ae({ className:
|
|
750
|
-
id:
|
|
751
|
-
"aria-describedby":
|
|
752
|
-
"aria-invalid":
|
|
753
|
-
"aria-required":
|
|
742
|
+
className: ae({ className: K }),
|
|
743
|
+
id: v === "button" ? W : void 0,
|
|
744
|
+
"aria-describedby": v === "button" && h.describedBy || void 0,
|
|
745
|
+
"aria-invalid": v === "button" && h.invalid || void 0,
|
|
746
|
+
"aria-required": v === "button" && h.required || void 0,
|
|
754
747
|
children: [
|
|
755
|
-
/* @__PURE__ */ r(
|
|
756
|
-
|
|
748
|
+
/* @__PURE__ */ r(P, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
749
|
+
i("inputs.fileUpload.browse", "Browse files")
|
|
757
750
|
]
|
|
758
751
|
}
|
|
759
752
|
)
|
|
760
753
|
] }) : null;
|
|
761
|
-
return /* @__PURE__ */ m("div", { "data-component": "file-upload", "data-component-id":
|
|
754
|
+
return /* @__PURE__ */ m("div", { "data-component": "file-upload", "data-component-id": o, children: [
|
|
762
755
|
be(),
|
|
763
756
|
ye(),
|
|
764
|
-
|
|
757
|
+
he(),
|
|
765
758
|
te.length > 0 && /* @__PURE__ */ r(
|
|
766
759
|
"div",
|
|
767
760
|
{
|
|
@@ -789,7 +782,7 @@ const es = Ne(
|
|
|
789
782
|
/* @__PURE__ */ r(
|
|
790
783
|
"span",
|
|
791
784
|
{
|
|
792
|
-
ref:
|
|
785
|
+
ref: $,
|
|
793
786
|
role: "status",
|
|
794
787
|
"aria-live": "polite",
|
|
795
788
|
className: "ds:sr-only"
|
|
@@ -798,9 +791,9 @@ const es = Ne(
|
|
|
798
791
|
] });
|
|
799
792
|
}
|
|
800
793
|
);
|
|
801
|
-
|
|
794
|
+
Ze.displayName = "FileUpload";
|
|
802
795
|
export {
|
|
803
|
-
|
|
804
|
-
|
|
796
|
+
Ze as F,
|
|
797
|
+
qe as f
|
|
805
798
|
};
|
|
806
|
-
//# sourceMappingURL=file-upload-
|
|
799
|
+
//# sourceMappingURL=file-upload-CdozCPct.js.map
|