@alfadocs/ui-kit 0.1.4 → 0.1.5
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/{agenda-card-C_hQGErS.js → agenda-card-DIWDvWum.js} +10 -10
- package/dist/_chunks/agenda-card-DIWDvWum.js.map +1 -0
- package/dist/_chunks/{agenda-tray-CBaVMJLO.js → agenda-tray-BqQZwiHc.js} +5 -5
- package/dist/_chunks/{agenda-tray-CBaVMJLO.js.map → agenda-tray-BqQZwiHc.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-K94oVLG2.js → ai-prompt-input-CI27KmZ1.js} +4 -4
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js.map +1 -0
- package/dist/_chunks/{alert-rOM4EG0P.js → alert-BlOUMkXj.js} +39 -39
- package/dist/_chunks/alert-BlOUMkXj.js.map +1 -0
- package/dist/_chunks/{audio-recorder-Cn8z2zC9.js → audio-recorder-B-8SKgKn.js} +5 -5
- package/dist/_chunks/{audio-recorder-Cn8z2zC9.js.map → audio-recorder-B-8SKgKn.js.map} +1 -1
- package/dist/_chunks/{autocomplete.agent-DRrp-Rsx.js → autocomplete.agent-DqOy0_1P.js} +31 -31
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js.map +1 -0
- package/dist/_chunks/{avatar-Biffh-_H.js → avatar-Dcr6XuDQ.js} +19 -19
- package/dist/_chunks/avatar-Dcr6XuDQ.js.map +1 -0
- package/dist/_chunks/{balance-cell-renderer-CiyezQhi.js → balance-cell-renderer-BRWt3neo.js} +166 -166
- package/dist/_chunks/balance-cell-renderer-BRWt3neo.js.map +1 -0
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +293 -0
- package/dist/_chunks/breadcrumb-D6xpsP7n.js.map +1 -0
- package/dist/_chunks/{button-7dTew-IV.js → button-7mLWcMp_.js} +9 -9
- package/dist/_chunks/{button-7dTew-IV.js.map → button-7mLWcMp_.js.map} +1 -1
- package/dist/_chunks/{calendar-BkDeDTaX.js → calendar-nGEgelJs.js} +100 -100
- package/dist/_chunks/calendar-nGEgelJs.js.map +1 -0
- package/dist/_chunks/{chat-input-xiBIujMv.js → chat-input-DsIrWM4f.js} +2 -2
- package/dist/_chunks/{chat-input-xiBIujMv.js.map → chat-input-DsIrWM4f.js.map} +1 -1
- package/dist/_chunks/{chat-message-BtxUyugB.js → chat-message-ByouZpPP.js} +3 -3
- package/dist/_chunks/{chat-message-BtxUyugB.js.map → chat-message-ByouZpPP.js.map} +1 -1
- package/dist/_chunks/{checkbox-Ni6C_KJg.js → checkbox-DNK4qS2_.js} +13 -13
- package/dist/_chunks/checkbox-DNK4qS2_.js.map +1 -0
- package/dist/_chunks/{checkbox-group-BFZ4oN5t.js → checkbox-group-CWpGZEF6.js} +13 -13
- package/dist/_chunks/checkbox-group-CWpGZEF6.js.map +1 -0
- package/dist/_chunks/{collapsible-fFMqzpdL.js → collapsible-D4LOdLxp.js} +18 -18
- package/dist/_chunks/collapsible-D4LOdLxp.js.map +1 -0
- package/dist/_chunks/{color-picker-Cl3KdjJd.js → color-picker-e9PmpaGH.js} +161 -161
- package/dist/_chunks/color-picker-e9PmpaGH.js.map +1 -0
- package/dist/_chunks/{combobox.agent-DjdivI3X.js → combobox.agent-ByobCLJ_.js} +28 -28
- package/dist/_chunks/combobox.agent-ByobCLJ_.js.map +1 -0
- package/dist/_chunks/{command-palette.agent-BUjzr2ET.js → command-palette.agent-js2rxgeR.js} +117 -117
- package/dist/_chunks/command-palette.agent-js2rxgeR.js.map +1 -0
- package/dist/_chunks/{description-list-C_1NX8P3.js → description-list-DvJbp6Yg.js} +2 -2
- package/dist/_chunks/{description-list-C_1NX8P3.js.map → description-list-DvJbp6Yg.js.map} +1 -1
- package/dist/_chunks/{dialog.agent-C2lP9H0h.js → dialog.agent-DEG_fVzG.js} +42 -42
- package/dist/_chunks/dialog.agent-DEG_fVzG.js.map +1 -0
- package/dist/_chunks/{dropdown-menu-2HgU1Emf.js → dropdown-menu-JNo66A-j.js} +2 -2
- package/dist/_chunks/dropdown-menu-JNo66A-j.js.map +1 -0
- package/dist/_chunks/{empty-state-BHrItOiE.js → empty-state-DQPtRp2b.js} +2 -2
- package/dist/_chunks/{empty-state-BHrItOiE.js.map → empty-state-DQPtRp2b.js.map} +1 -1
- package/dist/_chunks/{file-upload.agent-LlC0W468.js → file-upload.agent-B9AN82LA.js} +2 -2
- package/dist/_chunks/{file-upload.agent-LlC0W468.js.map → file-upload.agent-B9AN82LA.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-Dr9aOtOC.js → freemium-paywall-CkefGLM_.js} +4 -4
- package/dist/_chunks/{freemium-paywall-Dr9aOtOC.js.map → freemium-paywall-CkefGLM_.js.map} +1 -1
- package/dist/_chunks/{header-BpU9U-1X.js → header-BGn1mRp8.js} +2 -2
- package/dist/_chunks/{header-BpU9U-1X.js.map → header-BGn1mRp8.js.map} +1 -1
- package/dist/_chunks/{icon-button-CNjWCD1X.js → icon-button-Wnnde5lc.js} +6 -6
- package/dist/_chunks/icon-button-Wnnde5lc.js.map +1 -0
- package/dist/_chunks/input-surface-u4QB0lxe.js +32 -0
- package/dist/_chunks/input-surface-u4QB0lxe.js.map +1 -0
- package/dist/_chunks/{key-value-pair-C9hpjC_B.js → key-value-pair-JRFS9Xrh.js} +10 -10
- package/dist/_chunks/key-value-pair-JRFS9Xrh.js.map +1 -0
- package/dist/_chunks/{leo-sidebar-CNjZqljo.js → leo-sidebar-BzN4pJ7j.js} +16 -16
- package/dist/_chunks/leo-sidebar-BzN4pJ7j.js.map +1 -0
- package/dist/_chunks/{message-card-CZzNO4ov.js → message-card-qAp2-WQK.js} +12 -12
- package/dist/_chunks/message-card-qAp2-WQK.js.map +1 -0
- package/dist/_chunks/{message-tray-BWbjXW3F.js → message-tray-VaLpQU5t.js} +5 -5
- package/dist/_chunks/{message-tray-BWbjXW3F.js.map → message-tray-VaLpQU5t.js.map} +1 -1
- package/dist/_chunks/{multi-select.agent-BSGEW10d.js → multi-select.agent-CNsyW3n9.js} +66 -66
- package/dist/_chunks/multi-select.agent-CNsyW3n9.js.map +1 -0
- package/dist/_chunks/navigation-menu-EVFau1O2.js +180 -0
- package/dist/_chunks/navigation-menu-EVFau1O2.js.map +1 -0
- package/dist/_chunks/{notification-card-DgW-vVg-.js → notification-card-BF2_veHy.js} +11 -11
- package/dist/_chunks/notification-card-BF2_veHy.js.map +1 -0
- package/dist/_chunks/{notification-tray-CKUgl2jc.js → notification-tray-Bq-08ReD.js} +5 -5
- package/dist/_chunks/{notification-tray-CKUgl2jc.js.map → notification-tray-Bq-08ReD.js.map} +1 -1
- package/dist/_chunks/{number-input-BPPhekLu.js → number-input-DjpT_RXJ.js} +46 -46
- package/dist/_chunks/number-input-DjpT_RXJ.js.map +1 -0
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +380 -0
- package/dist/_chunks/pagination.agent-oEaqmtx5.js.map +1 -0
- package/dist/_chunks/{password-input-DAT5HQth.js → password-input-DJDVznWH.js} +5 -5
- package/dist/_chunks/password-input-DJDVznWH.js.map +1 -0
- package/dist/_chunks/{patient-shell-BzHhg6uA.js → patient-shell-DP54y6rc.js} +5 -5
- package/dist/_chunks/{patient-shell-BzHhg6uA.js.map → patient-shell-DP54y6rc.js.map} +1 -1
- package/dist/_chunks/{payment-form-YlxrCpZQ.js → payment-form-hcl-gGrp.js} +2 -2
- package/dist/_chunks/{payment-form-YlxrCpZQ.js.map → payment-form-hcl-gGrp.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer.agent-sMned5Xn.js → pdf-viewer.agent-CfIHhcHx.js} +3 -3
- package/dist/_chunks/{pdf-viewer.agent-sMned5Xn.js.map → pdf-viewer.agent-CfIHhcHx.js.map} +1 -1
- package/dist/_chunks/{phone-input-BuRe5PyI.js → phone-input-DE_39q65.js} +103 -103
- package/dist/_chunks/phone-input-DE_39q65.js.map +1 -0
- package/dist/_chunks/{popover-Ds1iOdiv.js → popover-DvAtFOi-.js} +2 -2
- package/dist/_chunks/{popover-Ds1iOdiv.js.map → popover-DvAtFOi-.js.map} +1 -1
- package/dist/_chunks/{privacy-lock-up2ervfF.js → privacy-lock-DS6QRo2N.js} +3 -3
- package/dist/_chunks/{privacy-lock-up2ervfF.js.map → privacy-lock-DS6QRo2N.js.map} +1 -1
- package/dist/_chunks/{progress-D4ELgHG3.js → progress-B4Of_pzz.js} +57 -57
- package/dist/_chunks/progress-B4Of_pzz.js.map +1 -0
- package/dist/_chunks/{radio-XSSNX3Af.js → radio-cs8N1wJi.js} +29 -29
- package/dist/_chunks/radio-cs8N1wJi.js.map +1 -0
- package/dist/_chunks/{radio-group-DBrUOPcy.js → radio-group-BIUbpWml.js} +3 -3
- package/dist/_chunks/radio-group-BIUbpWml.js.map +1 -0
- package/dist/_chunks/{scroll-area-HIq0hJyJ.js → scroll-area-DLr5w9Dd.js} +9 -9
- package/dist/_chunks/scroll-area-DLr5w9Dd.js.map +1 -0
- package/dist/_chunks/{search-bar-9Zbew4yM.js → search-bar-fcGqDFW3.js} +30 -30
- package/dist/_chunks/{search-bar-9Zbew4yM.js.map → search-bar-fcGqDFW3.js.map} +1 -1
- package/dist/_chunks/{search-input-CtkWITO2.js → search-input-BVMCONyN.js} +2 -2
- package/dist/_chunks/{search-input-CtkWITO2.js.map → search-input-BVMCONyN.js.map} +1 -1
- package/dist/_chunks/{select-DdAOtomN.js → select-IY_JQa-F.js} +50 -50
- package/dist/_chunks/select-IY_JQa-F.js.map +1 -0
- package/dist/_chunks/{sheet-D7GRhnWw.js → sheet-BhNpLHc9.js} +8 -8
- package/dist/_chunks/sheet-BhNpLHc9.js.map +1 -0
- package/dist/_chunks/{sidebar-Dc2ffrbf.js → sidebar-OVzwN3jE.js} +294 -294
- package/dist/_chunks/sidebar-OVzwN3jE.js.map +1 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BotwPDcW.js → sign-in-with-alfadocs-button-BN_FPGHT.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BotwPDcW.js.map → sign-in-with-alfadocs-button-BN_FPGHT.js.map} +1 -1
- package/dist/_chunks/{skeleton-DAdPFx9d.js → skeleton-dtqyF09N.js} +8 -8
- package/dist/_chunks/skeleton-dtqyF09N.js.map +1 -0
- package/dist/_chunks/{slot-grid-WHc5A8-z.js → slot-grid-D_l5VsHG.js} +5 -5
- package/dist/_chunks/{slot-grid-WHc5A8-z.js.map → slot-grid-D_l5VsHG.js.map} +1 -1
- package/dist/_chunks/{stepper-accordion-2_7Pw0tC.js → stepper-accordion-CGog0JSF.js} +64 -64
- package/dist/_chunks/stepper-accordion-CGog0JSF.js.map +1 -0
- package/dist/_chunks/{stepper-calendar-CWZcFgt_.js → stepper-calendar-_fLOAjus.js} +7 -7
- package/dist/_chunks/{stepper-calendar-CWZcFgt_.js.map → stepper-calendar-_fLOAjus.js.map} +1 -1
- package/dist/_chunks/{switch-DhSORO9C.js → switch-aN2EYxHh.js} +4 -4
- package/dist/_chunks/switch-aN2EYxHh.js.map +1 -0
- package/dist/_chunks/{tabs.agent-BtaNGxRh.js → tabs.agent-BpbVA-Zh.js} +55 -55
- package/dist/_chunks/tabs.agent-BpbVA-Zh.js.map +1 -0
- package/dist/_chunks/{tag--uLKOb9f.js → tag-BqidXKo3.js} +2 -2
- package/dist/_chunks/tag-BqidXKo3.js.map +1 -0
- package/dist/_chunks/{task-card-BeSuntXP.js → task-card-yW7tKlG4.js} +17 -17
- package/dist/_chunks/task-card-yW7tKlG4.js.map +1 -0
- package/dist/_chunks/{task-tray-pRk6u8Ik.js → task-tray-BzahI5FQ.js} +5 -5
- package/dist/_chunks/{task-tray-pRk6u8Ik.js.map → task-tray-BzahI5FQ.js.map} +1 -1
- package/dist/_chunks/{text-area-xf9-6iDf.js → text-area-DmKSd2DG.js} +2 -2
- package/dist/_chunks/text-area-DmKSd2DG.js.map +1 -0
- package/dist/_chunks/{text-input-exh7VD7D.js → text-input-CRHvl5zk.js} +19 -19
- package/dist/_chunks/text-input-CRHvl5zk.js.map +1 -0
- package/dist/_chunks/{theme-toggle-CJgA6G24.js → theme-toggle-COHFwO2H.js} +4 -4
- package/dist/_chunks/{theme-toggle-CJgA6G24.js.map → theme-toggle-COHFwO2H.js.map} +1 -1
- package/dist/_chunks/{timeline-DIueH4TJ.js → timeline-RgAIzpMd.js} +2 -2
- package/dist/_chunks/{timeline-DIueH4TJ.js.map → timeline-RgAIzpMd.js.map} +1 -1
- package/dist/_chunks/{toast-q0SlabGr.js → toast-lOhJDKOH.js} +12 -12
- package/dist/_chunks/{toast-q0SlabGr.js.map → toast-lOhJDKOH.js.map} +1 -1
- package/dist/_chunks/{transcript-panel-DFnhbrlQ.js → transcript-panel-CNbVGG9L.js} +59 -59
- package/dist/_chunks/transcript-panel-CNbVGG9L.js.map +1 -0
- package/dist/_chunks/{visually-hidden-BlkhaZWe.js → visually-hidden-Bw7vBHLm.js} +6 -6
- package/dist/_chunks/{visually-hidden-BlkhaZWe.js.map → visually-hidden-Bw7vBHLm.js.map} +1 -1
- package/dist/_chunks/{warning-stack-DCmO0R07.js → warning-stack-8Pa3pekh.js} +24 -24
- package/dist/_chunks/warning-stack-8Pa3pekh.js.map +1 -0
- package/dist/_chunks/{workflow-map-CAM6Uy_J.js → workflow-map-DGJwVcO-.js} +106 -106
- package/dist/_chunks/workflow-map-DGJwVcO-.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/input-surface.d.ts +11 -11
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.js +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/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/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/empty-state/index.js +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/icon-button/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +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/number-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/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- 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/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +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-card/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-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/visually-hidden/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +72 -72
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card-C_hQGErS.js.map +0 -1
- package/dist/_chunks/ai-prompt-input-K94oVLG2.js.map +0 -1
- package/dist/_chunks/alert-rOM4EG0P.js.map +0 -1
- package/dist/_chunks/autocomplete.agent-DRrp-Rsx.js.map +0 -1
- package/dist/_chunks/avatar-Biffh-_H.js.map +0 -1
- package/dist/_chunks/balance-cell-renderer-CiyezQhi.js.map +0 -1
- package/dist/_chunks/breadcrumb-CcZovmIq.js +0 -293
- package/dist/_chunks/breadcrumb-CcZovmIq.js.map +0 -1
- package/dist/_chunks/calendar-BkDeDTaX.js.map +0 -1
- package/dist/_chunks/checkbox-Ni6C_KJg.js.map +0 -1
- package/dist/_chunks/checkbox-group-BFZ4oN5t.js.map +0 -1
- package/dist/_chunks/collapsible-fFMqzpdL.js.map +0 -1
- package/dist/_chunks/color-picker-Cl3KdjJd.js.map +0 -1
- package/dist/_chunks/combobox.agent-DjdivI3X.js.map +0 -1
- package/dist/_chunks/command-palette.agent-BUjzr2ET.js.map +0 -1
- package/dist/_chunks/dialog.agent-C2lP9H0h.js.map +0 -1
- package/dist/_chunks/dropdown-menu-2HgU1Emf.js.map +0 -1
- package/dist/_chunks/icon-button-CNjWCD1X.js.map +0 -1
- package/dist/_chunks/input-surface-D5OMCB1W.js +0 -32
- package/dist/_chunks/input-surface-D5OMCB1W.js.map +0 -1
- package/dist/_chunks/key-value-pair-C9hpjC_B.js.map +0 -1
- package/dist/_chunks/leo-sidebar-CNjZqljo.js.map +0 -1
- package/dist/_chunks/message-card-CZzNO4ov.js.map +0 -1
- package/dist/_chunks/multi-select.agent-BSGEW10d.js.map +0 -1
- package/dist/_chunks/navigation-menu-DxOMvrKM.js +0 -180
- package/dist/_chunks/navigation-menu-DxOMvrKM.js.map +0 -1
- package/dist/_chunks/notification-card-DgW-vVg-.js.map +0 -1
- package/dist/_chunks/number-input-BPPhekLu.js.map +0 -1
- package/dist/_chunks/pagination.agent-CmA0Ocr5.js +0 -380
- package/dist/_chunks/pagination.agent-CmA0Ocr5.js.map +0 -1
- package/dist/_chunks/password-input-DAT5HQth.js.map +0 -1
- package/dist/_chunks/phone-input-BuRe5PyI.js.map +0 -1
- package/dist/_chunks/progress-D4ELgHG3.js.map +0 -1
- package/dist/_chunks/radio-XSSNX3Af.js.map +0 -1
- package/dist/_chunks/radio-group-DBrUOPcy.js.map +0 -1
- package/dist/_chunks/scroll-area-HIq0hJyJ.js.map +0 -1
- package/dist/_chunks/select-DdAOtomN.js.map +0 -1
- package/dist/_chunks/sheet-D7GRhnWw.js.map +0 -1
- package/dist/_chunks/sidebar-Dc2ffrbf.js.map +0 -1
- package/dist/_chunks/skeleton-DAdPFx9d.js.map +0 -1
- package/dist/_chunks/stepper-accordion-2_7Pw0tC.js.map +0 -1
- package/dist/_chunks/switch-DhSORO9C.js.map +0 -1
- package/dist/_chunks/tabs.agent-BtaNGxRh.js.map +0 -1
- package/dist/_chunks/tag--uLKOb9f.js.map +0 -1
- package/dist/_chunks/task-card-BeSuntXP.js.map +0 -1
- package/dist/_chunks/text-area-xf9-6iDf.js.map +0 -1
- package/dist/_chunks/text-input-exh7VD7D.js.map +0 -1
- package/dist/_chunks/transcript-panel-DFnhbrlQ.js.map +0 -1
- package/dist/_chunks/warning-stack-DCmO0R07.js.map +0 -1
- package/dist/_chunks/workflow-map-CAM6Uy_J.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-7mLWcMp_.js","sources":["../../src/components/button/button.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes, useEffect } from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst buttonVariants = cva(\n // `forced-colors:*` — under Windows High Contrast Mode the OS strips our\n // bg/text tokens, so `ghost` / `outline` / `link` would lose their shape.\n // We repaint a `ButtonBorder` edge + swap the focus ring to `CanvasText`\n // so the control and its focused state both survive HCM.\n 'ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:font-medium ds:transition-colors ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:border ds:forced-colors:border-[ButtonBorder] ds:forced-colors:focus-visible:outline-[CanvasText] ds:disabled:opacity-50 ds:disabled:cursor-not-allowed ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-not-allowed ds:aria-busy:cursor-wait ds:relative',\n {\n variants: {\n intent: {\n primary:\n 'ds:bg-primary ds:text-primary-foreground ds:hover:bg-primary-hover ds:active:opacity-90 ds:shadow-sm',\n secondary:\n 'ds:bg-secondary ds:text-secondary-foreground ds:hover:bg-secondary-hover ds:active:opacity-90',\n outline:\n 'ds:bg-transparent ds:text-foreground ds:border ds:border-border ds:hover:bg-muted/10 ds:active:bg-muted/20',\n ghost:\n 'ds:bg-transparent ds:text-foreground ds:hover:bg-muted/10 ds:active:bg-muted/20',\n destructive:\n 'ds:bg-destructive ds:text-destructive-foreground ds:hover:bg-destructive-hover ds:active:opacity-90 ds:shadow-sm',\n link: 'ds:bg-transparent ds:text-primary ds:underline-offset-4 ds:hover:underline ds:active:opacity-80 ds:p-0 ds:h-auto ds:rounded-none',\n // `tonal` is a container-contextual intent. The button carries a\n // `data-intent=\"tonal\"` hook + baseline chrome (hover/active/shadow).\n // The ambient container (e.g. `Alert`) paints the colour via a\n // descendant selector — `[&_[data-intent=tonal]]:bg-…` — so the\n // button picks up the surrounding tint (amber on `warning`, red on\n // `error`, etc.). Outside such a container the button falls back to\n // the primary palette so a loose `<Button intent=\"tonal\">` is never\n // invisible.\n tonal:\n 'ds:bg-primary ds:text-primary-foreground ds:hover:opacity-90 ds:active:opacity-80 ds:shadow-sm',\n },\n size: {\n sm: 'ds:h-8 ds:ps-3 ds:pe-3 ds:text-[length:var(--font-size-sm)] ds:min-h-[var(--min-target-size)] ds:sm:min-h-0 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[\"\"] ds:sm:before:hidden',\n md: 'ds:h-10 ds:ps-4 ds:pe-4 ds:text-[length:var(--font-size-base)]',\n lg: 'ds:h-12 ds:ps-6 ds:pe-6 ds:text-[length:var(--font-size-lg)]',\n },\n },\n defaultVariants: {\n intent: 'primary',\n size: 'md',\n },\n },\n);\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n loading?: boolean;\n startIcon?: React.ReactNode;\n endIcon?: React.ReactNode;\n /**\n * Mirror directional icons (arrows, chevrons) horizontally when the\n * interface renders in RTL. Default `false` — most icons (trash, calendar,\n * plus) must NOT flip. Opt in per call-site for arrow / chevron glyphs.\n */\n flipIconInRtl?: boolean;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n intent,\n size,\n className,\n asChild = false,\n loading = false,\n startIcon,\n endIcon,\n flipIconInRtl = false,\n disabled,\n children,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : 'button';\n const isIconButton = !children && (startIcon || endIcon);\n\n const ariaLabel = props['aria-label'];\n useEffect(() => {\n if (import.meta.env.DEV && isIconButton && !ariaLabel) {\n console.warn(\n 'Button: Use IconButton for icon-only triggers to ensure accessibility and proper square sizing.',\n );\n }\n }, [isIconButton, ariaLabel]);\n\n const iconSize = size === 'sm' ? 16 : size === 'lg' ? 20 : 18;\n const iconSizeClass =\n size === 'sm' ? 'ds:size-4' : size === 'lg' ? 'ds:size-5' : 'ds:size-[18px]';\n const iconFlipClass = flipIconInRtl ? 'ds:rtl:rotate-180' : '';\n\n return (\n <Comp\n ref={ref}\n className={buttonVariants({ intent, size, className })}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n data-component=\"button\"\n data-intent={intent ?? undefined}\n {...props}\n >\n {loading && (\n <svg\n aria-hidden=\"true\"\n className=\"ds:animate-spin\"\n width={iconSize}\n height={iconSize}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" strokeOpacity=\"0.25\" strokeWidth=\"3\" />\n <path\n d=\"M22 12a10 10 0 0 1-10 10\"\n stroke=\"currentColor\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n />\n </svg>\n )}\n {!loading && startIcon && (\n <span\n aria-hidden=\"true\"\n className={`ds:inline-flex ds:items-center ${iconSizeClass} ${iconFlipClass}`.trim()}\n >\n {startIcon}\n </span>\n )}\n {asChild ? (\n <Slottable>{children}</Slottable>\n ) : (\n <span className={loading ? 'ds:sr-only' : 'ds:inline-flex'}>{children}</span>\n )}\n {!loading && endIcon && (\n <span\n aria-hidden=\"true\"\n className={`ds:inline-flex ds:items-center ${iconSizeClass} ${iconFlipClass}`.trim()}\n >\n {endIcon}\n </span>\n )}\n </Comp>\n );\n },\n);\n\nButton.displayName = 'Button';\n"],"names":["buttonVariants","cva","Button","forwardRef","intent","size","className","asChild","loading","startIcon","endIcon","flipIconInRtl","disabled","children","props","ref","Comp","Slot","isIconButton","ariaLabel","useEffect","iconSize","iconSizeClass","iconFlipClass","jsxs","jsx","Slottable"],"mappings":"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"}
|
|
@@ -10,8 +10,8 @@ import tt from "@fullcalendar/resource";
|
|
|
10
10
|
import rt from "@fullcalendar/resource-timegrid";
|
|
11
11
|
import nt from "@fullcalendar/resource-timeline";
|
|
12
12
|
import at from "@fullcalendar/timeline";
|
|
13
|
-
import
|
|
14
|
-
import { u as
|
|
13
|
+
import st from "@fullcalendar/interaction";
|
|
14
|
+
import { u as ot } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
15
15
|
import { u as it } from "./registry-C9nwlNyL.js";
|
|
16
16
|
import { C as de } from "./chevron-right-BrpYejk0.js";
|
|
17
17
|
import { C as ce } from "./chevron-left-CX1jqD2M.js";
|
|
@@ -138,8 +138,8 @@ const Nt = {
|
|
|
138
138
|
descriptionKey: "ui.agent.calendar.state.currentDate",
|
|
139
139
|
description: "ISO date anchor of the visible range.",
|
|
140
140
|
read: (r) => {
|
|
141
|
-
var
|
|
142
|
-
return ((
|
|
141
|
+
var s;
|
|
142
|
+
return ((s = r.getCurrentDate()) == null ? void 0 : s.toISOString()) ?? null;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
currentTitle: {
|
|
@@ -179,8 +179,8 @@ const Nt = {
|
|
|
179
179
|
argsType: "{ date: string | Date }",
|
|
180
180
|
descriptionKey: "ui.agent.calendar.actions.gotoDate",
|
|
181
181
|
description: "Navigate to a specific date.",
|
|
182
|
-
invoke: (r,
|
|
183
|
-
r.gotoDate(
|
|
182
|
+
invoke: (r, s) => {
|
|
183
|
+
r.gotoDate(s.date);
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
change_view: {
|
|
@@ -188,8 +188,8 @@ const Nt = {
|
|
|
188
188
|
argsType: "{ view: CalendarView }",
|
|
189
189
|
descriptionKey: "ui.agent.calendar.actions.changeView",
|
|
190
190
|
description: "Switch the calendar to the given view.",
|
|
191
|
-
invoke: (r,
|
|
192
|
-
r.changeView(
|
|
191
|
+
invoke: (r, s) => {
|
|
192
|
+
r.changeView(s.view);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
focus_event: {
|
|
@@ -197,8 +197,8 @@ const Nt = {
|
|
|
197
197
|
argsType: "{ eventId: string }",
|
|
198
198
|
descriptionKey: "ui.agent.calendar.actions.focusEvent",
|
|
199
199
|
description: "Scroll an event into view and briefly highlight it.",
|
|
200
|
-
invoke: (r,
|
|
201
|
-
r.focusEvent(
|
|
200
|
+
invoke: (r, s) => {
|
|
201
|
+
r.focusEvent(s.eventId);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
},
|
|
@@ -235,11 +235,11 @@ const Nt = {
|
|
|
235
235
|
"timeGridDay",
|
|
236
236
|
"listWeek"
|
|
237
237
|
]);
|
|
238
|
-
function le(r,
|
|
238
|
+
function le(r, s = "vertical") {
|
|
239
239
|
if (It.has(r))
|
|
240
240
|
return r;
|
|
241
241
|
const u = r.replace(/^resourceTimeGrid/, "").replace(/(Chair|Operator)$/, "");
|
|
242
|
-
return At[
|
|
242
|
+
return At[s][u];
|
|
243
243
|
}
|
|
244
244
|
const Mt = {
|
|
245
245
|
resourceTimeGridThreeDays: {
|
|
@@ -302,7 +302,7 @@ const Mt = {
|
|
|
302
302
|
};
|
|
303
303
|
function Rt(r) {
|
|
304
304
|
try {
|
|
305
|
-
const
|
|
305
|
+
const s = new Intl.Locale(r), d = typeof s.getWeekInfo == "function" ? s.getWeekInfo() : s.weekInfo;
|
|
306
306
|
if (d && typeof d.firstDay == "number")
|
|
307
307
|
return d.firstDay % 7;
|
|
308
308
|
} catch {
|
|
@@ -310,7 +310,7 @@ function Rt(r) {
|
|
|
310
310
|
return r.startsWith("en-US") || r.startsWith("he") || r.startsWith("ar-SA") ? 0 : 1;
|
|
311
311
|
}
|
|
312
312
|
function Et() {
|
|
313
|
-
const { i18n: r } = ae(), [
|
|
313
|
+
const { i18n: r } = ae(), [s, d] = ne(() => {
|
|
314
314
|
if (typeof document > "u") return !1;
|
|
315
315
|
const u = document.documentElement.getAttribute("dir"), h = typeof r.dir == "function" ? r.dir() : "ltr";
|
|
316
316
|
return u === "rtl" || h === "rtl";
|
|
@@ -325,11 +325,11 @@ function Et() {
|
|
|
325
325
|
attributes: !0,
|
|
326
326
|
attributeFilter: ["dir", "lang"]
|
|
327
327
|
}), () => u.disconnect();
|
|
328
|
-
}, [r]),
|
|
328
|
+
}, [r]), s;
|
|
329
329
|
}
|
|
330
330
|
function zt({
|
|
331
331
|
arg: r,
|
|
332
|
-
locale:
|
|
332
|
+
locale: s,
|
|
333
333
|
resources: d,
|
|
334
334
|
statusLabels: u,
|
|
335
335
|
privacyMode: h,
|
|
@@ -352,7 +352,7 @@ function zt({
|
|
|
352
352
|
let M = "";
|
|
353
353
|
if (x && T)
|
|
354
354
|
try {
|
|
355
|
-
const k = new Intl.DateTimeFormat(
|
|
355
|
+
const k = new Intl.DateTimeFormat(s, {
|
|
356
356
|
hour: "2-digit",
|
|
357
357
|
minute: "2-digit",
|
|
358
358
|
hour12: !1
|
|
@@ -369,8 +369,8 @@ function zt({
|
|
|
369
369
|
const X = [
|
|
370
370
|
Pt({ status: m ?? "default" }),
|
|
371
371
|
L ? "event-booked-online" : null,
|
|
372
|
-
v ? "[background-color:var(--calendar-event-bg)]" : null,
|
|
373
|
-
f ? "[color:var(--calendar-event-text)]" : null
|
|
372
|
+
v ? "ds:[background-color:var(--calendar-event-bg)]" : null,
|
|
373
|
+
f ? "ds:[color:var(--calendar-event-text)]" : null
|
|
374
374
|
].filter(Boolean).join(" ");
|
|
375
375
|
return /* @__PURE__ */ C(
|
|
376
376
|
"div",
|
|
@@ -402,34 +402,34 @@ function zt({
|
|
|
402
402
|
);
|
|
403
403
|
}
|
|
404
404
|
const fe = [
|
|
405
|
-
"inline-flex items-center justify-center",
|
|
406
|
-
"min-h-[var(--min-target-size)]",
|
|
407
|
-
"bg-[var(--background)] text-[var(--foreground)]",
|
|
408
|
-
"border border-[var(--border)]",
|
|
409
|
-
"rounded-[var(--radius-full)]",
|
|
410
|
-
"font-[var(--font-weight-medium)] text-[length:var(--font-size-sm)]",
|
|
411
|
-
"transition-colors duration-[var(--animation-duration)] ease-[var(--ease-out)]",
|
|
412
|
-
"hover:bg-[var(--muted)]",
|
|
413
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
414
|
-
"focus-visible:outline-[var(--ring)]",
|
|
415
|
-
"focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
416
|
-
"motion-reduce:transition-none"
|
|
405
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
406
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
407
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
408
|
+
"ds:border ds:border-[var(--border)]",
|
|
409
|
+
"ds:rounded-[var(--radius-full)]",
|
|
410
|
+
"ds:font-[var(--font-weight-medium)] ds:text-[length:var(--font-size-sm)]",
|
|
411
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
412
|
+
"ds:hover:bg-[var(--muted)]",
|
|
413
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
414
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
415
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
416
|
+
"ds:motion-reduce:transition-none"
|
|
417
417
|
].join(" "), Bt = [
|
|
418
418
|
fe,
|
|
419
|
-
"ps-[var(--spacing-md)] pe-[var(--spacing-md)]"
|
|
419
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
420
420
|
].join(" "), ue = [
|
|
421
421
|
fe,
|
|
422
|
-
"min-w-[var(--min-target-size)]"
|
|
423
|
-
].join(" "),
|
|
424
|
-
({ title: r, onToday:
|
|
422
|
+
"ds:min-w-[var(--min-target-size)]"
|
|
423
|
+
].join(" "), se = me(
|
|
424
|
+
({ title: r, onToday: s, onPrev: d, onNext: u, end: h, className: D }, N) => {
|
|
425
425
|
const { t: m } = ae(), v = Et(), f = v ? de : ce, y = v ? ce : de, A = [
|
|
426
|
-
"calendar-toolbar",
|
|
427
|
-
"sticky top-0 z-20",
|
|
428
|
-
"flex items-center gap-[var(--spacing-sm)]",
|
|
429
|
-
"ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
430
|
-
"py-[var(--spacing-sm)]",
|
|
431
|
-
"bg-[var(--background)]",
|
|
432
|
-
"border-b border-[var(--border)]",
|
|
426
|
+
"ds:calendar-toolbar",
|
|
427
|
+
"ds:sticky ds:top-0 ds:z-20",
|
|
428
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
429
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
430
|
+
"ds:py-[var(--spacing-sm)]",
|
|
431
|
+
"ds:bg-[var(--background)]",
|
|
432
|
+
"ds:border-b ds:border-[var(--border)]",
|
|
433
433
|
D
|
|
434
434
|
].filter(Boolean).join(" ");
|
|
435
435
|
return /* @__PURE__ */ C("div", { ref: N, className: A, children: [
|
|
@@ -438,7 +438,7 @@ const fe = [
|
|
|
438
438
|
"button",
|
|
439
439
|
{
|
|
440
440
|
type: "button",
|
|
441
|
-
onClick:
|
|
441
|
+
onClick: s,
|
|
442
442
|
className: Bt,
|
|
443
443
|
children: m("calendar.today")
|
|
444
444
|
}
|
|
@@ -489,11 +489,11 @@ const fe = [
|
|
|
489
489
|
] });
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
|
-
|
|
492
|
+
se.displayName = "Calendar.Toolbar";
|
|
493
493
|
const ve = me(
|
|
494
494
|
({
|
|
495
495
|
id: r,
|
|
496
|
-
events:
|
|
496
|
+
events: s,
|
|
497
497
|
resources: d,
|
|
498
498
|
view: u = "dayGridMonth",
|
|
499
499
|
initialDate: h,
|
|
@@ -528,9 +528,9 @@ const ve = me(
|
|
|
528
528
|
toolbar: he = !0,
|
|
529
529
|
toolbarEnd: be,
|
|
530
530
|
resourceLayout: W = "vertical",
|
|
531
|
-
showResourceInitials:
|
|
531
|
+
showResourceInitials: oe = !1
|
|
532
532
|
}, ye) => {
|
|
533
|
-
const { t:
|
|
533
|
+
const { t: o, i18n: S } = ae(), P = z(null), ee = z(null), b = z(null), w = z(null), R = z(null), F = D ?? S.language ?? "en", [xe, Te] = ne(() => {
|
|
534
534
|
if (typeof document > "u") return "ltr";
|
|
535
535
|
const e = document.documentElement.getAttribute("dir"), t = typeof S.dir == "function" ? S.dir() : "ltr";
|
|
536
536
|
return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
|
|
@@ -586,8 +586,8 @@ const ve = me(
|
|
|
586
586
|
attributes: !0,
|
|
587
587
|
attributeFilter: ["aria-hidden"]
|
|
588
588
|
}), () => n.disconnect();
|
|
589
|
-
}, [
|
|
590
|
-
const q =
|
|
589
|
+
}, [o]);
|
|
590
|
+
const q = ot(), [ke, we] = ne(""), te = l(() => {
|
|
591
591
|
const e = () => {
|
|
592
592
|
var t;
|
|
593
593
|
return (t = P.current) == null ? void 0 : t.getApi();
|
|
@@ -641,7 +641,7 @@ const ve = me(
|
|
|
641
641
|
block: "center"
|
|
642
642
|
}), i.classList.add("calendar-event-focused"), R.current = i, b.current) {
|
|
643
643
|
const g = i.getAttribute("aria-label") ?? t, E = p ? "•••" : g;
|
|
644
|
-
b.current.textContent =
|
|
644
|
+
b.current.textContent = o("calendar.focusedEvent", {
|
|
645
645
|
title: E
|
|
646
646
|
});
|
|
647
647
|
}
|
|
@@ -651,7 +651,7 @@ const ve = me(
|
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
}, [q, p,
|
|
654
|
+
}, [q, p, o, W]);
|
|
655
655
|
Ze(ye, () => te, [te]), it(Nt, te, r), B(
|
|
656
656
|
() => () => {
|
|
657
657
|
w.current && (clearTimeout(w.current), w.current = null);
|
|
@@ -660,24 +660,24 @@ const ve = me(
|
|
|
660
660
|
);
|
|
661
661
|
const Ce = l(
|
|
662
662
|
() => ({
|
|
663
|
-
confirmed:
|
|
664
|
-
waiting:
|
|
665
|
-
in_care:
|
|
666
|
-
done:
|
|
667
|
-
cancelled:
|
|
668
|
-
absent:
|
|
663
|
+
confirmed: o("calendar.status.confirmed"),
|
|
664
|
+
waiting: o("calendar.status.waiting"),
|
|
665
|
+
in_care: o("calendar.status.inCare"),
|
|
666
|
+
done: o("calendar.status.done"),
|
|
667
|
+
cancelled: o("calendar.status.cancelled"),
|
|
668
|
+
absent: o("calendar.status.absent")
|
|
669
669
|
}),
|
|
670
|
-
[
|
|
670
|
+
[o]
|
|
671
671
|
), ie = z(!0);
|
|
672
672
|
B(() => {
|
|
673
673
|
if (ie.current) {
|
|
674
674
|
ie.current = !1;
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
|
-
b.current && (b.current.textContent =
|
|
678
|
-
}, [p,
|
|
677
|
+
b.current && (b.current.textContent = o(p ? "calendar.privacyModeOn" : "calendar.privacyModeOff"));
|
|
678
|
+
}, [p, o]);
|
|
679
679
|
const De = l(
|
|
680
|
-
() =>
|
|
680
|
+
() => s.map((e) => ({
|
|
681
681
|
id: e.id,
|
|
682
682
|
title: e.title,
|
|
683
683
|
start: e.start,
|
|
@@ -703,7 +703,7 @@ const ve = me(
|
|
|
703
703
|
operatorId: e.operatorId
|
|
704
704
|
}
|
|
705
705
|
})),
|
|
706
|
-
[
|
|
706
|
+
[s]
|
|
707
707
|
), Ne = l(
|
|
708
708
|
() => ({
|
|
709
709
|
year: "numeric",
|
|
@@ -762,12 +762,12 @@ const ve = me(
|
|
|
762
762
|
newStart: e.event.start
|
|
763
763
|
}), b.current)) {
|
|
764
764
|
const n = e.event.extendedProps ?? {}, c = p ? n.privacyModeTitle ?? "•••" : e.event.title;
|
|
765
|
-
b.current.textContent =
|
|
765
|
+
b.current.textContent = o("calendar.eventMoved", {
|
|
766
766
|
title: c
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
}, [N, p,
|
|
770
|
+
}, [N, p, o]), _e = l(() => {
|
|
771
771
|
if (m)
|
|
772
772
|
return (e) => {
|
|
773
773
|
if (!e.event.end) return;
|
|
@@ -783,13 +783,13 @@ const ve = me(
|
|
|
783
783
|
const i = Math.round(
|
|
784
784
|
(n.getTime() - c.getTime()) / 6e4
|
|
785
785
|
), g = e.event.extendedProps ?? {}, E = p ? g.privacyModeTitle ?? "•••" : e.event.title;
|
|
786
|
-
b.current.textContent =
|
|
786
|
+
b.current.textContent = o("calendar.eventResized", {
|
|
787
787
|
title: E,
|
|
788
788
|
duration: i
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
|
-
}, [m, p,
|
|
792
|
+
}, [m, p, o]), Se = l(() => {
|
|
793
793
|
if (f)
|
|
794
794
|
return (e) => {
|
|
795
795
|
e.event.start && f(re(e.event));
|
|
@@ -812,7 +812,7 @@ const ve = me(
|
|
|
812
812
|
Qe,
|
|
813
813
|
Xe,
|
|
814
814
|
et,
|
|
815
|
-
|
|
815
|
+
st,
|
|
816
816
|
tt,
|
|
817
817
|
rt,
|
|
818
818
|
nt,
|
|
@@ -830,12 +830,12 @@ const ve = me(
|
|
|
830
830
|
"--resource-initials-text-color": g
|
|
831
831
|
} : {}
|
|
832
832
|
} : void 0;
|
|
833
|
-
if (
|
|
833
|
+
if (oe && c && i) {
|
|
834
834
|
`${e.resource.id}`;
|
|
835
835
|
const Ke = [
|
|
836
836
|
"resource-initials",
|
|
837
|
-
"[background-color:var(--resource-color)]",
|
|
838
|
-
g ? "[color:var(--resource-initials-text-color)]" : null
|
|
837
|
+
"ds:[background-color:var(--resource-color)]",
|
|
838
|
+
g ? "ds:[color:var(--resource-initials-text-color)]" : null
|
|
839
839
|
].filter(Boolean).join(" ");
|
|
840
840
|
return /* @__PURE__ */ C("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
841
841
|
/* @__PURE__ */ a(
|
|
@@ -862,7 +862,7 @@ const ve = me(
|
|
|
862
862
|
/* @__PURE__ */ a("span", { className: "ds:truncate ds:text-start", children: n })
|
|
863
863
|
] })) : /* @__PURE__ */ a("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ a("span", { className: "ds:truncate ds:text-start", children: n }) });
|
|
864
864
|
},
|
|
865
|
-
[
|
|
865
|
+
[oe]
|
|
866
866
|
), Oe = l(
|
|
867
867
|
() => d == null ? void 0 : d.map((e) => ({
|
|
868
868
|
id: e.id,
|
|
@@ -887,36 +887,36 @@ const ve = me(
|
|
|
887
887
|
(t = (e = P.current) == null ? void 0 : e.getApi()) == null || t.next();
|
|
888
888
|
}, []), We = [
|
|
889
889
|
"fc-theme-alfadocs",
|
|
890
|
-
"bg-background text-foreground",
|
|
891
|
-
"rounded-[var(--radius-md)]",
|
|
890
|
+
"ds:bg-background ds:text-foreground",
|
|
891
|
+
"ds:rounded-[var(--radius-md)]",
|
|
892
892
|
K
|
|
893
893
|
].filter(Boolean).join(" "), Fe = x || T ? {
|
|
894
894
|
...x ? { "--calendar-mode-bg": x } : {},
|
|
895
895
|
...T ? { "--calendar-mode-fg": T } : {}
|
|
896
|
-
} : void 0, qe = I !== "default" ? O ??
|
|
897
|
-
"sticky top-0 z-10",
|
|
898
|
-
"flex items-center gap-[var(--spacing-sm)]",
|
|
899
|
-
"ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
900
|
-
"py-[var(--spacing-sm)]",
|
|
896
|
+
} : void 0, qe = I !== "default" ? O ?? o(St[I]) : "", $e = [
|
|
897
|
+
"ds:sticky ds:top-0 ds:z-10",
|
|
898
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
899
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
900
|
+
"ds:py-[var(--spacing-sm)]",
|
|
901
901
|
/* Caller-supplied colours flow through CSS custom properties set
|
|
902
902
|
in `modeBannerStyle`; fallback tokens apply when the caller
|
|
903
903
|
doesn't supply a hex. */
|
|
904
|
-
x ? "[background-color:var(--calendar-mode-bg)]" : "bg-[var(--muted)]",
|
|
905
|
-
T ? "[color:var(--calendar-mode-fg)]" : "text-[var(--muted-foreground)]"
|
|
904
|
+
x ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
|
|
905
|
+
T ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
|
|
906
906
|
].filter(Boolean).join(" "), Ue = [
|
|
907
|
-
"inline-flex items-center justify-center",
|
|
908
|
-
"min-h-[var(--min-target-size)]",
|
|
909
|
-
"ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
910
|
-
"rounded-[var(--radius-full)]",
|
|
911
|
-
"bg-[var(--background)] text-[var(--foreground)]",
|
|
912
|
-
"border border-[var(--border)]",
|
|
913
|
-
"font-[var(--font-weight-medium)] text-[length:var(--font-size-sm)]",
|
|
914
|
-
"transition-colors duration-[var(--animation-duration)] ease-[var(--ease-out)]",
|
|
915
|
-
"hover:bg-[var(--muted)]",
|
|
916
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
917
|
-
"focus-visible:outline-[var(--ring)]",
|
|
918
|
-
"focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
919
|
-
"motion-reduce:transition-none"
|
|
907
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
908
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
909
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
910
|
+
"ds:rounded-[var(--radius-full)]",
|
|
911
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
912
|
+
"ds:border ds:border-[var(--border)]",
|
|
913
|
+
"ds:font-[var(--font-weight-medium)] ds:text-[length:var(--font-size-sm)]",
|
|
914
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
915
|
+
"ds:hover:bg-[var(--muted)]",
|
|
916
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
917
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
918
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
919
|
+
"ds:motion-reduce:transition-none"
|
|
920
920
|
].join(" ");
|
|
921
921
|
return /* @__PURE__ */ C(
|
|
922
922
|
"div",
|
|
@@ -924,7 +924,7 @@ const ve = me(
|
|
|
924
924
|
ref: ee,
|
|
925
925
|
className: We,
|
|
926
926
|
role: "region",
|
|
927
|
-
"aria-label":
|
|
927
|
+
"aria-label": o("calendar.ariaLabel"),
|
|
928
928
|
"data-component": "calendar",
|
|
929
929
|
"data-component-id": r,
|
|
930
930
|
"data-mode": I,
|
|
@@ -953,14 +953,14 @@ const ve = me(
|
|
|
953
953
|
type: "button",
|
|
954
954
|
onClick: j,
|
|
955
955
|
className: Ue,
|
|
956
|
-
children:
|
|
956
|
+
children: o("calendar.modeBanner.cancel")
|
|
957
957
|
}
|
|
958
958
|
) : null
|
|
959
959
|
]
|
|
960
960
|
}
|
|
961
961
|
) : null,
|
|
962
962
|
he !== !1 ? /* @__PURE__ */ a(
|
|
963
|
-
|
|
963
|
+
se,
|
|
964
964
|
{
|
|
965
965
|
title: ke,
|
|
966
966
|
onToday: je,
|
|
@@ -992,8 +992,8 @@ const ve = me(
|
|
|
992
992
|
resourceOrder: "sequenceNumber",
|
|
993
993
|
resourceLabelContent: Le,
|
|
994
994
|
headerToolbar: !1,
|
|
995
|
-
allDayText:
|
|
996
|
-
noEventsText:
|
|
995
|
+
allDayText: o("calendar.allDay"),
|
|
996
|
+
noEventsText: o("calendar.noEvents"),
|
|
997
997
|
titleFormat: Ne,
|
|
998
998
|
dayHeaderFormat: Ae,
|
|
999
999
|
eventTimeFormat: Ie,
|
|
@@ -1031,11 +1031,11 @@ const ve = me(
|
|
|
1031
1031
|
);
|
|
1032
1032
|
ve.displayName = "Calendar";
|
|
1033
1033
|
const Vt = ve;
|
|
1034
|
-
Vt.Toolbar =
|
|
1034
|
+
Vt.Toolbar = se;
|
|
1035
1035
|
export {
|
|
1036
1036
|
Vt as C,
|
|
1037
1037
|
Rt as a,
|
|
1038
1038
|
Nt as c,
|
|
1039
1039
|
le as r
|
|
1040
1040
|
};
|
|
1041
|
-
//# sourceMappingURL=calendar-
|
|
1041
|
+
//# sourceMappingURL=calendar-nGEgelJs.js.map
|