@alfadocs/ui-kit 0.1.9 → 0.2.0
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/README.md +30 -0
- package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
- package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
- package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
- package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
- package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
- package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
- package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
- package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
- package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
- package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
- package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
- package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
- package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
- package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
- package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
- package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
- package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
- package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
- package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
- package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
- package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
- package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
- package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
- package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
- package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
- package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
- package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
- package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
- package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
- package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
- package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
- package/dist/_chunks/file-upload-C947ACDK.js +829 -0
- package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
- package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
- package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
- package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
- package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
- package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
- package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
- package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
- package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
- package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
- package/dist/_chunks/list-qP6p0NTw.js +434 -0
- package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
- package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
- package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
- package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
- package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
- package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
- package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
- package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
- package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
- package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
- package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
- package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
- package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
- package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
- package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
- package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
- package/dist/_chunks/popover-DekUKNBk.js +293 -0
- package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
- package/dist/_chunks/progress-C11tqhoI.js +298 -0
- package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
- package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
- package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
- package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
- package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
- package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
- package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
- package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
- package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
- package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
- package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
- package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
- package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
- package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
- package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
- package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
- package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
- package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
- package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
- package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
- package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
- package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
- package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
- package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
- package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
- package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
- package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
- package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
- package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
- package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
- package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
- package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
- package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
- package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
- package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
- package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
- package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
- package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
- package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
- package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
- package/dist/agent-catalog.json +580 -15
- package/dist/components/_shared/index.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +5 -6
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +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/card/index.js +1 -1
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +1 -1
- package/dist/components/chat-container/index.js +2 -3
- package/dist/components/chat-input/chat-input.d.ts +1 -1
- package/dist/components/chat-input/index.js +3 -4
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +46 -13
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts +6 -5
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/description-list.d.ts +1 -2
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
- package/dist/components/dropdown-menu/index.js +3 -4
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +2 -2
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +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/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.d.ts +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 +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification-card/index.d.ts +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 +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/pagination/pagination.d.ts +4 -6
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +7 -8
- package/dist/components/payment-form/payment-form.d.ts +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.d.ts +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +3 -4
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
- package/dist/components/progress/index.js +3 -4
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.d.ts +1 -1
- package/dist/components/resizable/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-bar/search-bar.d.ts +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +3 -4
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/sidebar/index.js +7 -8
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +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/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
- package/dist/components/stepper-progress/index.d.ts +1 -1
- package/dist/components/stepper-progress/index.js +1 -2
- package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.d.ts +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/task-tray/task-tray.d.ts +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-root/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
- package/dist/components/typing-indicator/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/components/workflow/workflow-editor.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +392 -402
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/safe-html/index.js +20 -3
- package/dist/tokens.css +2 -2
- package/package.json +12 -2
- package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
- package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
- package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
- package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
- package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
- package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
- package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
- package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
- package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
- package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
- package/dist/_chunks/popover-kFN8s84V.js +0 -229
- package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
- package/dist/_chunks/progress-wNsqkw8I.js +0 -253
- package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"types": "./dist/components/key-value-pair/index.d.ts",
|
|
212
212
|
"import": "./dist/components/key-value-pair/index.js"
|
|
213
213
|
},
|
|
214
|
+
"./link": {
|
|
215
|
+
"types": "./dist/components/link/index.d.ts",
|
|
216
|
+
"import": "./dist/components/link/index.js"
|
|
217
|
+
},
|
|
214
218
|
"./list": {
|
|
215
219
|
"types": "./dist/components/list/index.d.ts",
|
|
216
220
|
"import": "./dist/components/list/index.js"
|
|
@@ -291,6 +295,10 @@
|
|
|
291
295
|
"types": "./dist/components/radio-group/index.d.ts",
|
|
292
296
|
"import": "./dist/components/radio-group/index.js"
|
|
293
297
|
},
|
|
298
|
+
"./recaptcha-widget": {
|
|
299
|
+
"types": "./dist/components/recaptcha-widget/index.d.ts",
|
|
300
|
+
"import": "./dist/components/recaptcha-widget/index.js"
|
|
301
|
+
},
|
|
294
302
|
"./resizable": {
|
|
295
303
|
"types": "./dist/components/resizable/index.d.ts",
|
|
296
304
|
"import": "./dist/components/resizable/index.js"
|
|
@@ -473,7 +481,8 @@
|
|
|
473
481
|
"lint:fix": "eslint . --fix",
|
|
474
482
|
"format": "prettier --write .",
|
|
475
483
|
"format:check": "prettier --check .",
|
|
476
|
-
"stylelint": "stylelint \"src/**/*.css\""
|
|
484
|
+
"stylelint": "stylelint \"src/**/*.css\"",
|
|
485
|
+
"chromatic": "chromatic --exit-zero-on-changes"
|
|
477
486
|
},
|
|
478
487
|
"peerDependencies": {
|
|
479
488
|
"@fullcalendar/core": "^6.1.20",
|
|
@@ -682,6 +691,7 @@
|
|
|
682
691
|
"ag-grid-react": "^35.2.1",
|
|
683
692
|
"apexcharts": "^5.10.1",
|
|
684
693
|
"autoprefixer": "^10.5.0",
|
|
694
|
+
"chromatic": "^16.10.0",
|
|
685
695
|
"eslint": "^9.39.4",
|
|
686
696
|
"eslint-config-prettier": "^9.1.2",
|
|
687
697
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { jsx as d, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as i, useContext as x, useRef as A, createContext as N } from "react";
|
|
3
|
-
import * as e from "@radix-ui/react-accordion";
|
|
4
|
-
import { c as n } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { u as w } from "./use-direction-D6rvvG9G.js";
|
|
6
|
-
import { c as C } from "./compose-refs-C0k0tdqF.js";
|
|
7
|
-
import { C as V } from "./chevron-down-BX_NP2Yh.js";
|
|
8
|
-
const m = N({ variant: "default" }), y = n("", {
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "ds:divide-y ds:divide-border",
|
|
12
|
-
card: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
13
|
-
separated: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: "default"
|
|
18
|
-
}
|
|
19
|
-
}), R = n("", {
|
|
20
|
-
variants: {
|
|
21
|
-
variant: {
|
|
22
|
-
default: "",
|
|
23
|
-
card: "ds:bg-[var(--card)] ds:border ds:border-[var(--card-border,var(--border))] ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
|
|
24
|
-
separated: "ds:border ds:border-border ds:rounded-[var(--radius-md)] ds:overflow-hidden"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
variant: "default"
|
|
29
|
-
}
|
|
30
|
-
}), j = n(
|
|
31
|
-
[
|
|
32
|
-
"ds:overflow-hidden",
|
|
33
|
-
"ds:data-[state=open]:animate-[accordion-down_calc(var(--animation-duration)*1.5)_var(--ease-out)]",
|
|
34
|
-
"ds:data-[state=closed]:animate-[accordion-up_calc(var(--animation-duration)*1.5)_var(--ease-in)]"
|
|
35
|
-
].join(" ")
|
|
36
|
-
), I = n(
|
|
37
|
-
"ds:ms-auto ds:size-4 ds:shrink-0 ds:transition-transform ds:duration-[calc(var(--animation-duration)*1.5)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none ds:group-data-[state=open]:rotate-180"
|
|
38
|
-
), T = n(
|
|
39
|
-
[
|
|
40
|
-
"ds:group ds:flex ds:w-full ds:items-center ds:[min-block-size:var(--min-target-size)]",
|
|
41
|
-
"ds:py-[var(--spacing-md)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
42
|
-
"ds:text-start ds:font-medium ds:hover:underline",
|
|
43
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
44
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
45
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
46
|
-
"ds:transition-all ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
47
|
-
].join(" ")
|
|
48
|
-
), u = i(
|
|
49
|
-
({ variant: a = "default", className: o, children: r, id: s, ...c }, l) => {
|
|
50
|
-
const t = A(null), g = C(l, t), b = w(t);
|
|
51
|
-
return /* @__PURE__ */ d(m.Provider, { value: { variant: a ?? "default" }, children: /* @__PURE__ */ d(
|
|
52
|
-
e.Root,
|
|
53
|
-
{
|
|
54
|
-
ref: g,
|
|
55
|
-
dir: b,
|
|
56
|
-
id: s,
|
|
57
|
-
"data-component": "accordion",
|
|
58
|
-
"data-component-id": s,
|
|
59
|
-
className: y({ variant: a, className: o }),
|
|
60
|
-
...c,
|
|
61
|
-
children: r
|
|
62
|
-
}
|
|
63
|
-
) });
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
u.displayName = "Accordion";
|
|
67
|
-
const v = i(
|
|
68
|
-
({ variant: a, className: o, children: r, ...s }, c) => {
|
|
69
|
-
const { variant: l } = x(m), t = a ?? l;
|
|
70
|
-
return /* @__PURE__ */ d(
|
|
71
|
-
e.Item,
|
|
72
|
-
{
|
|
73
|
-
ref: c,
|
|
74
|
-
className: R({ variant: t, className: o }),
|
|
75
|
-
...s,
|
|
76
|
-
children: r
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
v.displayName = "AccordionItem";
|
|
82
|
-
const f = i(
|
|
83
|
-
({ className: a, children: o, ...r }, s) => /* @__PURE__ */ d(e.Header, { className: "ds:flex", children: /* @__PURE__ */ h(
|
|
84
|
-
e.Trigger,
|
|
85
|
-
{
|
|
86
|
-
ref: s,
|
|
87
|
-
className: T({ className: a }),
|
|
88
|
-
...r,
|
|
89
|
-
children: [
|
|
90
|
-
o,
|
|
91
|
-
/* @__PURE__ */ d(V, { "aria-hidden": "true", className: I() })
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
) })
|
|
95
|
-
);
|
|
96
|
-
f.displayName = "AccordionTrigger";
|
|
97
|
-
const p = i(
|
|
98
|
-
({ className: a, children: o, ...r }, s) => /* @__PURE__ */ d(
|
|
99
|
-
e.Content,
|
|
100
|
-
{
|
|
101
|
-
ref: s,
|
|
102
|
-
className: j({ className: a }),
|
|
103
|
-
...r,
|
|
104
|
-
children: /* @__PURE__ */ d("div", { className: "ds:pb-[var(--spacing-md)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]", children: o })
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
);
|
|
108
|
-
p.displayName = "AccordionContent";
|
|
109
|
-
const O = Object.assign(u, {
|
|
110
|
-
Item: v,
|
|
111
|
-
Trigger: f,
|
|
112
|
-
Content: p
|
|
113
|
-
});
|
|
114
|
-
export {
|
|
115
|
-
O as A,
|
|
116
|
-
p as a,
|
|
117
|
-
v as b,
|
|
118
|
-
f as c
|
|
119
|
-
};
|
|
120
|
-
//# sourceMappingURL=accordion-BEnrZmAn.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const i = {
|
|
2
|
-
id: "accordion",
|
|
3
|
-
capabilities: ["expand", "select_single", "select_multiple"],
|
|
4
|
-
state: {
|
|
5
|
-
openItems: {
|
|
6
|
-
type: "string[]",
|
|
7
|
-
description: "Ids (values) of currently-expanded items. Single-mode accordions return an array with 0 or 1 entries.",
|
|
8
|
-
read: (e) => e.getOpenItems()
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
actions: {
|
|
12
|
-
expand: {
|
|
13
|
-
safety: "read",
|
|
14
|
-
argsType: "{ itemId: string }",
|
|
15
|
-
description: "Expand the item with the given value.",
|
|
16
|
-
invoke: (e, t) => {
|
|
17
|
-
e.expand(t.itemId);
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
collapse: {
|
|
21
|
-
safety: "read",
|
|
22
|
-
argsType: "{ itemId: string }",
|
|
23
|
-
description: "Collapse the item with the given value.",
|
|
24
|
-
invoke: (e, t) => {
|
|
25
|
-
e.collapse(t.itemId);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
clear: {
|
|
29
|
-
safety: "read",
|
|
30
|
-
description: "Collapse all items. Only meaningful for multi-mode accordions; single-mode equivalent to collapsing the active item.",
|
|
31
|
-
invoke: (e) => {
|
|
32
|
-
e.clear();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
domHooks: {
|
|
37
|
-
root: { attr: "data-component", value: "accordion" },
|
|
38
|
-
instanceId: {
|
|
39
|
-
attr: "data-component-id",
|
|
40
|
-
sourceProp: "id",
|
|
41
|
-
description: "Sourced from the id prop."
|
|
42
|
-
},
|
|
43
|
-
item: {
|
|
44
|
-
attr: "data-item-id",
|
|
45
|
-
description: "Each Accordion.Item emits its value as data-item-id."
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
i as a
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=accordion.agent-BTjeO1Sx.js.map
|
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as R } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Xe, useId as Je, useState as N, useRef as g, useCallback as D, useEffect as O, useMemo as ce } from "react";
|
|
3
|
-
import { _ as c } from "./index-4xgbg-sn.js";
|
|
4
|
-
import * as T from "@radix-ui/react-popover";
|
|
5
|
-
import { c as F } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as We } from "react-i18next";
|
|
7
|
-
import { S as pe } from "./spinner-GCcv67vh.js";
|
|
8
|
-
import { u as Ye } from "./form-field-context-94LwgYTQ.js";
|
|
9
|
-
import { u as Ze } from "./use-debounced-callback-BisrB-Fq.js";
|
|
10
|
-
import { g as et } from "./group-options-BvKhQ3xb.js";
|
|
11
|
-
import { I as tt, a as K, b as Q, c as st } from "./input-surface-u4QB0lxe.js";
|
|
12
|
-
const ot = F(
|
|
13
|
-
["ds:flex ds:w-full ds:items-center", st].join(" "),
|
|
14
|
-
{
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
sm: `${K.sm} ${Q.sm}`,
|
|
18
|
-
md: `${K.md} ${Q.md}`,
|
|
19
|
-
lg: `${K.lg} ${Q.lg}`
|
|
20
|
-
},
|
|
21
|
-
tone: tt
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: { size: "md", tone: "default" }
|
|
24
|
-
}
|
|
25
|
-
), nt = F(
|
|
26
|
-
[
|
|
27
|
-
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground",
|
|
28
|
-
"ds:placeholder:text-muted-foreground",
|
|
29
|
-
"ds:outline-none ds:focus:outline-none ds:focus-visible:outline-none",
|
|
30
|
-
"ds:disabled:cursor-not-allowed",
|
|
31
|
-
"ds:read-only:cursor-default"
|
|
32
|
-
].join(" "),
|
|
33
|
-
{
|
|
34
|
-
variants: {
|
|
35
|
-
hasStart: { true: "ds:ps-2", false: "ds:ps-3" },
|
|
36
|
-
hasEnd: { true: "ds:pe-2", false: "ds:pe-3" }
|
|
37
|
-
},
|
|
38
|
-
defaultVariants: { hasStart: !1, hasEnd: !1 }
|
|
39
|
-
}
|
|
40
|
-
), at = F(
|
|
41
|
-
[
|
|
42
|
-
"ds:z-[var(--z-dropdown)] ds:overflow-hidden",
|
|
43
|
-
"ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-background",
|
|
44
|
-
"ds:shadow-[var(--shadow-md)]",
|
|
45
|
-
"ds:w-[var(--radix-popover-trigger-width)]",
|
|
46
|
-
"ds:animate-in ds:fade-in ds:zoom-in-95",
|
|
47
|
-
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
|
|
48
|
-
"ds:data-[state=closed]:zoom-out-95",
|
|
49
|
-
"ds:motion-reduce:animate-none"
|
|
50
|
-
].join(" ")
|
|
51
|
-
), me = F(
|
|
52
|
-
[
|
|
53
|
-
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
54
|
-
"ds:ps-3 ds:pe-3 ds:py-2 ds:text-[length:var(--font-size-sm)] ds:text-foreground",
|
|
55
|
-
"ds:rounded-[var(--radius-sm)] ds:select-none ds:cursor-pointer",
|
|
56
|
-
"ds:data-[disabled=true]:pointer-events-none ds:data-[disabled=true]:opacity-50",
|
|
57
|
-
"ds:data-[selected=true]:bg-primary ds:data-[selected=true]:text-primary-foreground",
|
|
58
|
-
"ds:hover:bg-muted ds:data-[selected=true]:hover:bg-primary"
|
|
59
|
-
].join(" ")
|
|
60
|
-
), fe = [
|
|
61
|
-
"ds:[&_[cmdk-group-heading]]:ps-3",
|
|
62
|
-
"ds:[&_[cmdk-group-heading]]:pe-3",
|
|
63
|
-
"ds:[&_[cmdk-group-heading]]:py-1.5",
|
|
64
|
-
"ds:[&_[cmdk-group-heading]]:type-eyebrow",
|
|
65
|
-
"ds:[&_[cmdk-group-heading]]:text-muted-foreground"
|
|
66
|
-
].join(" "), S = "ds:inline-flex ds:items-center ds:shrink-0 ds:text-muted-foreground ds:[&_svg]:size-4";
|
|
67
|
-
function X(s, r, B) {
|
|
68
|
-
return `${s}-${r}-${B}`;
|
|
69
|
-
}
|
|
70
|
-
function ge(s, r) {
|
|
71
|
-
return `${s}:${r}`;
|
|
72
|
-
}
|
|
73
|
-
const rt = Xe(
|
|
74
|
-
function({
|
|
75
|
-
loadOptions: r,
|
|
76
|
-
debounceMs: B = 250,
|
|
77
|
-
value: J,
|
|
78
|
-
defaultValue: he,
|
|
79
|
-
onChange: V,
|
|
80
|
-
onSelect: i,
|
|
81
|
-
recents: h,
|
|
82
|
-
onRecentSelect: A,
|
|
83
|
-
snapOnBlur: ve = !1,
|
|
84
|
-
size: be = "md",
|
|
85
|
-
tone: ye = "default",
|
|
86
|
-
startAdornment: P,
|
|
87
|
-
endAdornment: z,
|
|
88
|
-
placeholder: W,
|
|
89
|
-
disabled: we,
|
|
90
|
-
readOnly: v,
|
|
91
|
-
required: ke,
|
|
92
|
-
name: xe,
|
|
93
|
-
id: Y,
|
|
94
|
-
className: Ce,
|
|
95
|
-
"aria-label": Z
|
|
96
|
-
}, w) {
|
|
97
|
-
const { t: k, i18n: Ne } = We(), x = Ye(), Ve = Je(), p = Y ?? x.id ?? Ve, ee = `${p}-listbox`, Ie = `${p}-live`, m = !!(x.disabled || we), Ee = !!(x.required || ke), te = x.invalid, _e = te ? "error" : ye ?? "default", $e = x.describedBy || void 0, M = J !== void 0, [Re, De] = N(
|
|
98
|
-
he ?? ""
|
|
99
|
-
), d = M ? J : Re, [f, l] = N(!1), [b, se] = N([]), [C, j] = N(!1), [u, Te] = N(""), I = g(!1), U = g(null), q = g(d), oe = g(/* @__PURE__ */ new Map()), ne = g(/* @__PURE__ */ new Map()), G = g(null), H = g(null), Fe = D(
|
|
100
|
-
(e) => {
|
|
101
|
-
G.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
|
|
102
|
-
},
|
|
103
|
-
[w]
|
|
104
|
-
), ae = Ne.language;
|
|
105
|
-
O(() => {
|
|
106
|
-
const e = /* @__PURE__ */ new Map();
|
|
107
|
-
for (const t of b) e.set(t.value, t);
|
|
108
|
-
oe.current = e;
|
|
109
|
-
}, [b]), O(() => {
|
|
110
|
-
const e = /* @__PURE__ */ new Map();
|
|
111
|
-
if (h) for (const t of h) e.set(t.value, t);
|
|
112
|
-
ne.current = e;
|
|
113
|
-
}, [h]);
|
|
114
|
-
const Be = D(
|
|
115
|
-
(e) => {
|
|
116
|
-
var o;
|
|
117
|
-
if (m || v || I.current) return;
|
|
118
|
-
(o = U.current) == null || o.abort();
|
|
119
|
-
const t = new AbortController();
|
|
120
|
-
U.current = t, q.current = e, j(!0), r(e, { signal: t.signal, locale: ae }).then((a) => {
|
|
121
|
-
t.signal.aborted || q.current === e && (se(a), j(!1));
|
|
122
|
-
}).catch((a) => {
|
|
123
|
-
t.signal.aborted || a && typeof a == "object" && "name" in a && a.name === "AbortError" || q.current === e && (se([]), j(!1));
|
|
124
|
-
});
|
|
125
|
-
},
|
|
126
|
-
[m, v, r, ae]
|
|
127
|
-
), y = Ze(Be, B);
|
|
128
|
-
O(() => () => {
|
|
129
|
-
var e;
|
|
130
|
-
y.cancel(), (e = U.current) == null || e.abort();
|
|
131
|
-
}, [y]);
|
|
132
|
-
const E = D(
|
|
133
|
-
(e) => {
|
|
134
|
-
M || De(e), V == null || V(e);
|
|
135
|
-
},
|
|
136
|
-
[M, V]
|
|
137
|
-
), re = D(
|
|
138
|
-
(e) => {
|
|
139
|
-
const [t, o] = e.split(":");
|
|
140
|
-
if (!o || t !== "recent" && t !== "option") return null;
|
|
141
|
-
const ue = (t === "recent" ? ne.current : oe.current).get(o);
|
|
142
|
-
return ue ? { kind: t, option: ue } : null;
|
|
143
|
-
},
|
|
144
|
-
[]
|
|
145
|
-
), Ae = (e) => {
|
|
146
|
-
E(e), !(m || v) && (f || l(!0), !I.current && y(e));
|
|
147
|
-
}, Pe = (e) => {
|
|
148
|
-
I.current = !0;
|
|
149
|
-
}, ze = (e) => {
|
|
150
|
-
I.current = !1;
|
|
151
|
-
const t = e.currentTarget.value;
|
|
152
|
-
y(t);
|
|
153
|
-
}, Me = (e) => {
|
|
154
|
-
m || v || (l(!0), d && y(d));
|
|
155
|
-
}, je = (e) => {
|
|
156
|
-
const t = e.relatedTarget;
|
|
157
|
-
if (!(t && H.current && H.current.contains(t))) {
|
|
158
|
-
if (ve && u) {
|
|
159
|
-
const o = re(u);
|
|
160
|
-
o && (E(o.option.label), i == null || i(o.option));
|
|
161
|
-
}
|
|
162
|
-
l(!1);
|
|
163
|
-
}
|
|
164
|
-
}, Ue = (e) => {
|
|
165
|
-
if (!e.nativeEvent.isComposing) {
|
|
166
|
-
if (e.key === "Escape") {
|
|
167
|
-
f && (e.preventDefault(), e.stopPropagation(), l(!1));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
if (e.key === "ArrowDown" && !f) {
|
|
171
|
-
e.preventDefault(), l(!0), d && y(d);
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (e.key === "Tab" && f && u) {
|
|
175
|
-
const t = re(u);
|
|
176
|
-
t && (E(t.option.label), i == null || i(t.option), l(!1));
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}, ie = (e, t) => {
|
|
180
|
-
var o;
|
|
181
|
-
E(t.label), e === "recent" ? A == null || A(t) : i == null || i(t), l(!1), (o = G.current) == null || o.focus();
|
|
182
|
-
}, L = (e) => {
|
|
183
|
-
e.preventDefault();
|
|
184
|
-
}, _ = !!(h && h.length > 0) && d.length === 0, qe = ce(
|
|
185
|
-
() => et(b),
|
|
186
|
-
[b]
|
|
187
|
-
), Ge = !!P, He = !!z || C, Le = ot({
|
|
188
|
-
size: be,
|
|
189
|
-
tone: _e,
|
|
190
|
-
className: Ce
|
|
191
|
-
}), Oe = ce(() => {
|
|
192
|
-
if (!u) return;
|
|
193
|
-
const [e, t] = u.split(":");
|
|
194
|
-
if (!(!t || e !== "recent" && e !== "option"))
|
|
195
|
-
return X(p, e, t);
|
|
196
|
-
}, [u, p]), $ = b.length > 0, de = !_ && !$ && !C && d.length > 0, le = C && !$, Ke = _ || $ || de || le, Qe = b.length, Se = C ? k("ui.common.loading", "Loading…") : f && d.length > 0 ? k("ui.inputs.autocomplete.results", {
|
|
197
|
-
count: Qe,
|
|
198
|
-
defaultValue: "{{count}} results"
|
|
199
|
-
}) : "";
|
|
200
|
-
return /* @__PURE__ */ n(
|
|
201
|
-
c,
|
|
202
|
-
{
|
|
203
|
-
shouldFilter: !1,
|
|
204
|
-
value: u,
|
|
205
|
-
onValueChange: Te,
|
|
206
|
-
label: Z ?? W,
|
|
207
|
-
className: "ds:w-full",
|
|
208
|
-
children: /* @__PURE__ */ R(
|
|
209
|
-
T.Root,
|
|
210
|
-
{
|
|
211
|
-
open: f && !m && !v && Ke,
|
|
212
|
-
children: [
|
|
213
|
-
/* @__PURE__ */ n(T.Anchor, { asChild: !0, children: /* @__PURE__ */ R(
|
|
214
|
-
"div",
|
|
215
|
-
{
|
|
216
|
-
className: Le,
|
|
217
|
-
"data-component": "autocomplete",
|
|
218
|
-
"data-component-id": Y,
|
|
219
|
-
"data-disabled": m || void 0,
|
|
220
|
-
children: [
|
|
221
|
-
P ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: `${S} ds:ps-3`, children: P }) : null,
|
|
222
|
-
/* @__PURE__ */ n(
|
|
223
|
-
c.Input,
|
|
224
|
-
{
|
|
225
|
-
ref: Fe,
|
|
226
|
-
id: p,
|
|
227
|
-
name: xe,
|
|
228
|
-
placeholder: W,
|
|
229
|
-
value: d,
|
|
230
|
-
onValueChange: Ae,
|
|
231
|
-
onFocus: Me,
|
|
232
|
-
onBlur: je,
|
|
233
|
-
onKeyDown: Ue,
|
|
234
|
-
onCompositionStart: Pe,
|
|
235
|
-
onCompositionEnd: ze,
|
|
236
|
-
disabled: m,
|
|
237
|
-
readOnly: v,
|
|
238
|
-
required: Ee,
|
|
239
|
-
role: "combobox",
|
|
240
|
-
"aria-autocomplete": "both",
|
|
241
|
-
"aria-expanded": f,
|
|
242
|
-
"aria-controls": ee,
|
|
243
|
-
"aria-activedescendant": Oe,
|
|
244
|
-
"aria-describedby": $e,
|
|
245
|
-
"aria-invalid": te || void 0,
|
|
246
|
-
"aria-label": Z,
|
|
247
|
-
autoComplete: "off",
|
|
248
|
-
className: nt({ hasStart: Ge, hasEnd: He })
|
|
249
|
-
}
|
|
250
|
-
),
|
|
251
|
-
C ? /* @__PURE__ */ n("span", { className: `${S} ds:pe-3`, "aria-hidden": "true", children: /* @__PURE__ */ n(pe, { size: "sm" }) }) : z ? /* @__PURE__ */ n("span", { "aria-hidden": "true", className: `${S} ds:pe-3`, children: z }) : null,
|
|
252
|
-
/* @__PURE__ */ n(
|
|
253
|
-
"span",
|
|
254
|
-
{
|
|
255
|
-
id: Ie,
|
|
256
|
-
role: "status",
|
|
257
|
-
"aria-live": "polite",
|
|
258
|
-
"aria-atomic": "true",
|
|
259
|
-
className: "ds:sr-only",
|
|
260
|
-
children: Se
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
]
|
|
264
|
-
}
|
|
265
|
-
) }),
|
|
266
|
-
/* @__PURE__ */ n(T.Portal, { children: /* @__PURE__ */ n(
|
|
267
|
-
T.Content,
|
|
268
|
-
{
|
|
269
|
-
ref: H,
|
|
270
|
-
side: "bottom",
|
|
271
|
-
align: "start",
|
|
272
|
-
sideOffset: 4,
|
|
273
|
-
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
274
|
-
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
275
|
-
onPointerDownOutside: (e) => {
|
|
276
|
-
var o;
|
|
277
|
-
const t = e.target;
|
|
278
|
-
if (t && ((o = G.current) != null && o.contains(t))) {
|
|
279
|
-
e.preventDefault();
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
l(!1);
|
|
283
|
-
},
|
|
284
|
-
onEscapeKeyDown: () => l(!1),
|
|
285
|
-
onMouseDown: L,
|
|
286
|
-
className: at(),
|
|
287
|
-
children: /* @__PURE__ */ R(
|
|
288
|
-
c.List,
|
|
289
|
-
{
|
|
290
|
-
id: ee,
|
|
291
|
-
className: "ds:max-h-[min(24rem,var(--radix-popover-content-available-height))] ds:overflow-auto ds:p-1",
|
|
292
|
-
children: [
|
|
293
|
-
_ ? /* @__PURE__ */ n(
|
|
294
|
-
c.Group,
|
|
295
|
-
{
|
|
296
|
-
heading: k("ui.inputs.autocomplete.recent", "Recent"),
|
|
297
|
-
className: fe,
|
|
298
|
-
children: (h ?? []).map((e) => /* @__PURE__ */ n(
|
|
299
|
-
c.Item,
|
|
300
|
-
{
|
|
301
|
-
id: X(p, "recent", e.value),
|
|
302
|
-
value: ge("recent", e.value),
|
|
303
|
-
disabled: e.disabled,
|
|
304
|
-
onSelect: () => ie("recent", e),
|
|
305
|
-
onMouseDown: L,
|
|
306
|
-
className: me(),
|
|
307
|
-
children: e.label
|
|
308
|
-
},
|
|
309
|
-
`recent-${e.value}`
|
|
310
|
-
))
|
|
311
|
-
}
|
|
312
|
-
) : null,
|
|
313
|
-
de ? /* @__PURE__ */ n("div", { className: "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: k("ui.inputs.autocomplete.noResults", "No results") }) : null,
|
|
314
|
-
le ? /* @__PURE__ */ R("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: [
|
|
315
|
-
/* @__PURE__ */ n(pe, { size: "sm" }),
|
|
316
|
-
/* @__PURE__ */ n("span", { children: k("ui.common.loading", "Loading…") })
|
|
317
|
-
] }) : null,
|
|
318
|
-
!_ && $ ? qe.map((e, t) => {
|
|
319
|
-
const o = e.items.map((a) => /* @__PURE__ */ n(
|
|
320
|
-
c.Item,
|
|
321
|
-
{
|
|
322
|
-
id: X(p, "option", a.value),
|
|
323
|
-
value: ge("option", a.value),
|
|
324
|
-
disabled: a.disabled,
|
|
325
|
-
onSelect: () => ie("option", a),
|
|
326
|
-
onMouseDown: L,
|
|
327
|
-
className: me(),
|
|
328
|
-
children: a.label
|
|
329
|
-
},
|
|
330
|
-
`option-${a.value}`
|
|
331
|
-
));
|
|
332
|
-
return e.group ? /* @__PURE__ */ n(
|
|
333
|
-
c.Group,
|
|
334
|
-
{
|
|
335
|
-
heading: e.group,
|
|
336
|
-
className: fe,
|
|
337
|
-
children: o
|
|
338
|
-
},
|
|
339
|
-
`group-${e.group}`
|
|
340
|
-
) : /* @__PURE__ */ n(c.Group, { children: o }, `group-${t}`);
|
|
341
|
-
}) : null
|
|
342
|
-
]
|
|
343
|
-
}
|
|
344
|
-
)
|
|
345
|
-
}
|
|
346
|
-
) })
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
)
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
), it = rt;
|
|
354
|
-
it.displayName = "Autocomplete";
|
|
355
|
-
const bt = {
|
|
356
|
-
id: "autocomplete",
|
|
357
|
-
capabilities: ["filter", "pick", "open", "close"],
|
|
358
|
-
state: {
|
|
359
|
-
value: {
|
|
360
|
-
type: "string | null",
|
|
361
|
-
description: "Currently-selected option value, or null when nothing is committed.",
|
|
362
|
-
read: (s) => s.getValue()
|
|
363
|
-
},
|
|
364
|
-
query: {
|
|
365
|
-
type: "string",
|
|
366
|
-
description: "Current free-text query in the input.",
|
|
367
|
-
read: (s) => s.getQuery()
|
|
368
|
-
},
|
|
369
|
-
isOpen: {
|
|
370
|
-
type: "boolean",
|
|
371
|
-
description: "True when the suggestion list is visible.",
|
|
372
|
-
read: (s) => s.getIsOpen()
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
actions: {
|
|
376
|
-
set_value: {
|
|
377
|
-
safety: "read",
|
|
378
|
-
argsType: "{ value: string | null }",
|
|
379
|
-
description: "Set the committed value programmatically.",
|
|
380
|
-
invoke: (s, r) => {
|
|
381
|
-
s.setValue(r.value);
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
apply_filter: {
|
|
385
|
-
safety: "read",
|
|
386
|
-
argsType: "{ query: string }",
|
|
387
|
-
description: "Set the input query, which filters the suggestion list.",
|
|
388
|
-
invoke: (s, r) => {
|
|
389
|
-
s.setQuery(r.query);
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
clear: {
|
|
393
|
-
safety: "read",
|
|
394
|
-
description: "Clear the value and the query.",
|
|
395
|
-
invoke: (s) => {
|
|
396
|
-
s.clear();
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
open: {
|
|
400
|
-
safety: "read",
|
|
401
|
-
description: "Open the suggestion list.",
|
|
402
|
-
invoke: (s) => {
|
|
403
|
-
s.open();
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
close: {
|
|
407
|
-
safety: "read",
|
|
408
|
-
description: "Close the suggestion list.",
|
|
409
|
-
invoke: (s) => {
|
|
410
|
-
s.close();
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
domHooks: {
|
|
415
|
-
root: { attr: "data-component", value: "autocomplete" },
|
|
416
|
-
instanceId: {
|
|
417
|
-
attr: "data-component-id",
|
|
418
|
-
sourceProp: "id",
|
|
419
|
-
description: "Sourced from the id prop."
|
|
420
|
-
},
|
|
421
|
-
item: {
|
|
422
|
-
attr: "data-option-id",
|
|
423
|
-
description: "Each suggestion emits its value as data-option-id."
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
export {
|
|
428
|
-
it as A,
|
|
429
|
-
bt as a,
|
|
430
|
-
ot as b
|
|
431
|
-
};
|
|
432
|
-
//# sourceMappingURL=autocomplete.agent-Dh7KioS6.js.map
|