@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.
Files changed (281) hide show
  1. package/README.md +30 -0
  2. package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
  3. package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
  4. package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
  5. package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
  6. package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
  7. package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
  8. package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
  9. package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
  10. package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
  11. package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
  12. package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
  13. package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
  14. package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
  15. package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
  16. package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
  17. package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
  18. package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
  19. package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
  20. package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
  21. package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
  22. package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
  23. package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
  24. package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
  25. package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
  26. package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
  27. package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
  28. package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
  29. package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
  30. package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
  31. package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
  32. package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
  33. package/dist/_chunks/file-upload-C947ACDK.js +829 -0
  34. package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
  35. package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
  36. package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
  37. package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
  38. package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
  39. package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
  40. package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
  41. package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
  42. package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
  43. package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
  44. package/dist/_chunks/list-qP6p0NTw.js +434 -0
  45. package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
  46. package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
  47. package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
  48. package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
  49. package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
  50. package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
  51. package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
  52. package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
  53. package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
  54. package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
  55. package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
  56. package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
  57. package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
  58. package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
  59. package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
  60. package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
  61. package/dist/_chunks/popover-DekUKNBk.js +293 -0
  62. package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
  63. package/dist/_chunks/progress-C11tqhoI.js +298 -0
  64. package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
  65. package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
  66. package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
  67. package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
  68. package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
  69. package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
  70. package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
  71. package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
  72. package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
  73. package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
  74. package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
  75. package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
  76. package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
  77. package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
  78. package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
  79. package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
  80. package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
  81. package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
  82. package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
  83. package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
  84. package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
  85. package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
  86. package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
  87. package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
  88. package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
  89. package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
  90. package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
  91. package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
  92. package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
  93. package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
  94. package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
  95. package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
  96. package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
  97. package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
  98. package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
  99. package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
  100. package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
  101. package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
  102. package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
  103. package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
  104. package/dist/agent-catalog.json +580 -15
  105. package/dist/components/_shared/index.d.ts +2 -2
  106. package/dist/components/accordion/index.d.ts +1 -1
  107. package/dist/components/accordion/index.js +5 -6
  108. package/dist/components/agenda-card/index.js +1 -1
  109. package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
  110. package/dist/components/agenda-tray/index.js +1 -1
  111. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
  112. package/dist/components/ai-prompt-input/index.js +1 -1
  113. package/dist/components/alert/index.d.ts +1 -1
  114. package/dist/components/alert/index.js +1 -1
  115. package/dist/components/app-frame/index.js +1 -1
  116. package/dist/components/audio-recorder/index.js +1 -1
  117. package/dist/components/audio-visualiser/index.js +1 -1
  118. package/dist/components/autocomplete/index.js +1 -1
  119. package/dist/components/badge/index.js +1 -1
  120. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  121. package/dist/components/breadcrumb/index.js +1 -1
  122. package/dist/components/button/index.js +2 -2
  123. package/dist/components/calendar/index.js +1 -1
  124. package/dist/components/card/index.js +1 -1
  125. package/dist/components/chart/index.d.ts +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/chat-container/chat-container.d.ts +1 -1
  128. package/dist/components/chat-container/index.js +2 -3
  129. package/dist/components/chat-input/chat-input.d.ts +1 -1
  130. package/dist/components/chat-input/index.js +3 -4
  131. package/dist/components/chat-message/index.js +1 -1
  132. package/dist/components/checkbox-group/index.d.ts +1 -1
  133. package/dist/components/collapsible/collapsible.d.ts +1 -1
  134. package/dist/components/collapsible/index.d.ts +1 -1
  135. package/dist/components/collapsible/index.js +1 -1
  136. package/dist/components/color-picker/index.js +1 -1
  137. package/dist/components/combobox/index.d.ts +1 -1
  138. package/dist/components/combobox/index.js +1 -1
  139. package/dist/components/command-palette/command-palette.d.ts +46 -13
  140. package/dist/components/command-palette/index.js +1 -1
  141. package/dist/components/data-table/data-table.d.ts +3 -1
  142. package/dist/components/data-table/index.js +1 -1
  143. package/dist/components/data-table/toolbar.d.ts +6 -5
  144. package/dist/components/date-picker/date-picker.d.ts +1 -1
  145. package/dist/components/date-picker/index.d.ts +1 -1
  146. package/dist/components/date-picker/index.js +1 -1
  147. package/dist/components/date-range-picker/index.js +1 -1
  148. package/dist/components/date-time-picker/index.d.ts +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/description-list/description-list.d.ts +1 -2
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/dialog/dialog.d.ts +2 -2
  153. package/dist/components/dialog/index.js +1 -1
  154. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
  155. package/dist/components/dropdown-menu/index.js +3 -4
  156. package/dist/components/empty-state/index.js +1 -1
  157. package/dist/components/file-upload/index.d.ts +1 -1
  158. package/dist/components/file-upload/index.js +1 -1
  159. package/dist/components/floating-action-button/index.js +1 -1
  160. package/dist/components/form-field/index.js +2 -2
  161. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/icon-button/index.js +1 -1
  165. package/dist/components/kbd/index.js +1 -1
  166. package/dist/components/key-value-pair/index.js +1 -1
  167. package/dist/components/link/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/logo/index.js +1 -1
  170. package/dist/components/matrix-rain/index.js +1 -1
  171. package/dist/components/message-card/index.d.ts +1 -1
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/message-tray/message-tray.d.ts +1 -1
  175. package/dist/components/multi-select/index.js +1 -1
  176. package/dist/components/navigation-menu/index.js +1 -1
  177. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  178. package/dist/components/notification-card/index.d.ts +1 -1
  179. package/dist/components/notification-card/index.js +1 -1
  180. package/dist/components/notification-tray/index.js +1 -1
  181. package/dist/components/notification-tray/notification-tray.d.ts +1 -1
  182. package/dist/components/number-input/index.js +1 -1
  183. package/dist/components/otp-input/index.js +1 -1
  184. package/dist/components/pagination/index.js +1 -1
  185. package/dist/components/pagination/pagination.d.ts +4 -6
  186. package/dist/components/password-input/index.js +1 -1
  187. package/dist/components/payment-form/index.js +7 -8
  188. package/dist/components/payment-form/payment-form.d.ts +1 -1
  189. package/dist/components/pdf-viewer/index.js +1 -1
  190. package/dist/components/phone-input/index.d.ts +1 -1
  191. package/dist/components/phone-input/index.js +1 -1
  192. package/dist/components/popover/index.js +3 -4
  193. package/dist/components/privacy-lock/index.js +1 -1
  194. package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
  195. package/dist/components/progress/index.js +3 -4
  196. package/dist/components/recaptcha-widget/index.js +1 -1
  197. package/dist/components/resizable/index.d.ts +1 -1
  198. package/dist/components/resizable/index.js +1 -1
  199. package/dist/components/rich-text-editor/index.js +1 -1
  200. package/dist/components/scroll-area/index.js +1 -1
  201. package/dist/components/search-bar/index.js +1 -1
  202. package/dist/components/search-bar/search-bar.d.ts +1 -1
  203. package/dist/components/search-input/index.js +1 -1
  204. package/dist/components/select/index.js +1 -1
  205. package/dist/components/select/select.d.ts +1 -1
  206. package/dist/components/separator/index.js +1 -1
  207. package/dist/components/sheet/index.js +3 -4
  208. package/dist/components/sheet/sheet.d.ts +2 -2
  209. package/dist/components/sidebar/index.js +7 -8
  210. package/dist/components/sidebar/sidebar.d.ts +0 -2
  211. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  212. package/dist/components/signature-capture/index.js +1 -1
  213. package/dist/components/skeleton/index.js +1 -1
  214. package/dist/components/slider/index.js +1 -1
  215. package/dist/components/slot-grid/index.js +1 -1
  216. package/dist/components/sparkline/index.js +1 -1
  217. package/dist/components/spinner/index.js +1 -1
  218. package/dist/components/stat/index.js +1 -1
  219. package/dist/components/stepper-calendar/index.js +1 -1
  220. package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
  221. package/dist/components/stepper-progress/index.d.ts +1 -1
  222. package/dist/components/stepper-progress/index.js +1 -2
  223. package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
  224. package/dist/components/suggestion-chip/index.js +1 -1
  225. package/dist/components/switch/index.js +1 -1
  226. package/dist/components/tabs/index.d.ts +1 -1
  227. package/dist/components/tabs/index.js +1 -1
  228. package/dist/components/tag/index.js +1 -1
  229. package/dist/components/task-card/index.js +1 -1
  230. package/dist/components/task-tray/index.js +1 -1
  231. package/dist/components/task-tray/task-tray.d.ts +1 -1
  232. package/dist/components/text-area/index.js +1 -1
  233. package/dist/components/text-input/index.js +1 -1
  234. package/dist/components/theme-root/index.js +1 -1
  235. package/dist/components/theme-toggle/index.js +1 -1
  236. package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
  237. package/dist/components/time-picker/index.js +1 -1
  238. package/dist/components/time-picker/time-picker.d.ts +1 -1
  239. package/dist/components/timeline/index.js +1 -1
  240. package/dist/components/timeline/timeline.d.ts +1 -1
  241. package/dist/components/toast/index.js +1 -1
  242. package/dist/components/tooth-scheme/index.js +1 -1
  243. package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
  244. package/dist/components/transcript-panel/index.js +1 -1
  245. package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
  246. package/dist/components/typing-indicator/index.js +1 -1
  247. package/dist/components/visually-hidden/index.js +1 -1
  248. package/dist/components/warning-stack/index.js +1 -1
  249. package/dist/components/workflow/index.js +1 -1
  250. package/dist/components/workflow/workflow-editor.d.ts +1 -1
  251. package/dist/hooks/index.js +1 -1
  252. package/dist/index.js +392 -402
  253. package/dist/patterns/leo-assistant/index.js +1 -1
  254. package/dist/patterns/patient-shell/index.js +1 -1
  255. package/dist/safe-html/index.js +20 -3
  256. package/dist/tokens.css +2 -2
  257. package/package.json +12 -2
  258. package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
  259. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
  260. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
  261. package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
  262. package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
  263. package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
  264. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
  265. package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
  266. package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
  267. package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
  268. package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
  269. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
  270. package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
  271. package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
  272. package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
  273. package/dist/_chunks/popover-kFN8s84V.js +0 -229
  274. package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
  275. package/dist/_chunks/progress-wNsqkw8I.js +0 -253
  276. package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
  277. package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
  278. package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
  279. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
  280. package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
  281. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
@@ -2,25 +2,25 @@ import { jsx as i, jsxs as C } from "react/jsx-runtime";
2
2
  import { forwardRef as pe, useId as ve, useState as he, useCallback as S } from "react";
3
3
  import { c as b } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as be } from "react-i18next";
5
- import { B as Y } from "./button-7mLWcMp_.js";
6
- import { I as A } from "./icon-button-Wnnde5lc.js";
7
- import { E as xe } from "./empty-state-DQPtRp2b.js";
8
- import { S as B } from "./skeleton-dtqyF09N.js";
5
+ import { B as Y } from "./button-DD_0Xdmr.js";
6
+ import { I as A } from "./icon-button-C4CGcYuz.js";
7
+ import { E as xe } from "./empty-state-3CLJIXSj.js";
8
+ import { S as B } from "./skeleton-CZbwyJAA.js";
9
9
  import { t as W, c as De, m as K, a as Z, i as ye } from "./isSameDay-ecuM8PBB.js";
10
10
  function Ne(t, e) {
11
- const s = () => De(e == null ? void 0 : e.in, NaN), n = Te(t);
11
+ const s = () => De(e == null ? void 0 : e.in, NaN), r = Te(t);
12
12
  let d;
13
- if (n.date) {
14
- const o = Ie(n.date, 2);
13
+ if (r.date) {
14
+ const o = Ie(r.date, 2);
15
15
  d = ze(o.restDateString, o.year);
16
16
  }
17
17
  if (!d || isNaN(+d)) return s();
18
18
  const l = +d;
19
19
  let u = 0, f;
20
- if (n.time && (u = Le(n.time), isNaN(u)))
20
+ if (r.time && (u = Le(r.time), isNaN(u)))
21
21
  return s();
22
- if (n.timezone) {
23
- if (f = Se(n.timezone), isNaN(f)) return s();
22
+ if (r.timezone) {
23
+ if (f = Se(r.timezone), isNaN(f)) return s();
24
24
  } else {
25
25
  const o = new Date(l + u), x = W(0, e == null ? void 0 : e.in);
26
26
  return x.setFullYear(
@@ -50,8 +50,8 @@ function Te(t) {
50
50
  e.date.length,
51
51
  t.length
52
52
  ))), a) {
53
- const n = k.timezone.exec(a);
54
- n ? (e.time = a.replace(n[1], ""), e.timezone = n[1]) : e.time = a;
53
+ const r = k.timezone.exec(a);
54
+ r ? (e.time = a.replace(r[1], ""), e.timezone = r[1]) : e.time = a;
55
55
  }
56
56
  return e;
57
57
  }
@@ -60,9 +60,9 @@ function Ie(t, e) {
60
60
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
61
61
  ), a = t.match(s);
62
62
  if (!a) return { year: NaN, restDateString: "" };
63
- const n = a[1] ? parseInt(a[1]) : null, d = a[2] ? parseInt(a[2]) : null;
63
+ const r = a[1] ? parseInt(a[1]) : null, d = a[2] ? parseInt(a[2]) : null;
64
64
  return {
65
- year: d === null ? n : d * 100,
65
+ year: d === null ? r : d * 100,
66
66
  restDateString: t.slice((a[1] || a[2]).length)
67
67
  };
68
68
  }
@@ -70,12 +70,12 @@ function ze(t, e) {
70
70
  if (e === null) return /* @__PURE__ */ new Date(NaN);
71
71
  const s = t.match(we);
72
72
  if (!s) return /* @__PURE__ */ new Date(NaN);
73
- const a = !!s[4], n = D(s[1]), d = D(s[2]) - 1, l = D(s[3]), u = D(s[4]), f = D(s[5]) - 1;
73
+ const a = !!s[4], r = D(s[1]), d = D(s[2]) - 1, l = D(s[3]), u = D(s[4]), f = D(s[5]) - 1;
74
74
  if (a)
75
75
  return je(e, u, f) ? $e(e, u, f) : /* @__PURE__ */ new Date(NaN);
76
76
  {
77
77
  const o = /* @__PURE__ */ new Date(0);
78
- return !Ge(e, d, l) || !Ve(e, n) ? /* @__PURE__ */ new Date(NaN) : (o.setUTCFullYear(e, d, Math.max(n, l)), o);
78
+ return !Ge(e, d, l) || !Ve(e, r) ? /* @__PURE__ */ new Date(NaN) : (o.setUTCFullYear(e, d, Math.max(r, l)), o);
79
79
  }
80
80
  }
81
81
  function D(t) {
@@ -84,8 +84,8 @@ function D(t) {
84
84
  function Le(t) {
85
85
  const e = t.match(Ce);
86
86
  if (!e) return NaN;
87
- const s = $(e[1]), a = $(e[2]), n = $(e[3]);
88
- return Ee(s, a, n) ? s * K + a * Z + n * 1e3 : NaN;
87
+ const s = $(e[1]), a = $(e[2]), r = $(e[3]);
88
+ return Ee(s, a, r) ? s * K + a * Z + r * 1e3 : NaN;
89
89
  }
90
90
  function $(t) {
91
91
  return t && parseFloat(t.replace(",", ".")) || 0;
@@ -94,13 +94,13 @@ function Se(t) {
94
94
  if (t === "Z") return 0;
95
95
  const e = t.match(ke);
96
96
  if (!e) return 0;
97
- const s = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), n = e[3] && parseInt(e[3]) || 0;
98
- return Fe(a, n) ? s * (a * K + n * Z) : NaN;
97
+ const s = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0;
98
+ return Fe(a, r) ? s * (a * K + r * Z) : NaN;
99
99
  }
100
100
  function $e(t, e, s) {
101
101
  const a = /* @__PURE__ */ new Date(0);
102
102
  a.setUTCFullYear(t, 0, 4);
103
- const n = a.getUTCDay() || 7, d = (e - 1) * 7 + s + 1 - n;
103
+ const r = a.getUTCDay() || 7, d = (e - 1) * 7 + s + 1 - r;
104
104
  return a.setUTCDate(a.getUTCDate() + d), a;
105
105
  }
106
106
  const Ue = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -229,7 +229,7 @@ const H = b(
229
229
  function h(t) {
230
230
  return t instanceof Date ? t : Ne(t);
231
231
  }
232
- function rt(t, e) {
232
+ function nt(t, e) {
233
233
  return ye(h(t), h(e));
234
234
  }
235
235
  function it(t) {
@@ -258,29 +258,29 @@ function q(t, e, s) {
258
258
  if (t.label !== void 0) return t.label;
259
259
  const a = h(t.start);
260
260
  try {
261
- const n = new Intl.DateTimeFormat(e, {
261
+ const r = new Intl.DateTimeFormat(e, {
262
262
  hour: "numeric",
263
263
  minute: "2-digit",
264
264
  timeZone: s
265
265
  });
266
266
  if (t.end) {
267
267
  const d = h(t.end);
268
- if (typeof n.formatRange == "function")
268
+ if (typeof r.formatRange == "function")
269
269
  try {
270
- return n.formatRange(a, d);
270
+ return r.formatRange(a, d);
271
271
  } catch {
272
272
  }
273
- return `${n.format(a)} – ${n.format(d)}`;
273
+ return `${r.format(a)} – ${r.format(d)}`;
274
274
  }
275
- return n.format(a);
275
+ return r.format(a);
276
276
  } catch {
277
277
  return a.toISOString();
278
278
  }
279
279
  }
280
- function He(t, e, s, a, n) {
280
+ function He(t, e, s, a, r) {
281
281
  if (t.ariaLabel !== void 0) return t.ariaLabel;
282
282
  const d = q(t, s, a), l = e.label !== void 0 ? e.label : X(h(e.date), s, a);
283
- return n({ time: d, day: l });
283
+ return r({ time: d, day: l });
284
284
  }
285
285
  function _e() {
286
286
  return /* @__PURE__ */ i(
@@ -320,7 +320,7 @@ const Ze = pe(
320
320
  state: e = "default",
321
321
  size: s = "md",
322
322
  selectedSlotId: a,
323
- maxInitialSlotsPerDay: n = 6,
323
+ maxInitialSlotsPerDay: r = 6,
324
324
  locale: d,
325
325
  timeZone: l,
326
326
  hasPrevious: u = !1,
@@ -335,19 +335,19 @@ const Ze = pe(
335
335
  className: te,
336
336
  ...se
337
337
  }, ae) => {
338
- const { t: m, i18n: ne } = be(), T = d ?? ne.language ?? "en", re = ve(), [ie, de] = he({}), U = e === "loading", G = e === "disabled", v = U || G, oe = e === "empty" || t.length === 0 || t.every((r) => r.slots.length === 0), le = x ?? m("slotGrid.ariaLabel"), I = S(
339
- (r, c) => {
340
- v || r.available !== !1 && (y == null || y(r, c));
338
+ const { t: m, i18n: re } = be(), T = d ?? re.language ?? "en", ne = ve(), [ie, de] = he({}), U = e === "loading", G = e === "disabled", v = U || G, oe = e === "empty" || t.length === 0 || t.every((n) => n.slots.length === 0), le = x ?? m("slotGrid.ariaLabel"), I = S(
339
+ (n, c) => {
340
+ v || n.available !== !1 && (y == null || y(n, c));
341
341
  },
342
342
  [v, y]
343
343
  ), ce = S(
344
- (r, c) => {
345
- de((g) => ({ ...g, [c]: !0 })), N == null || N(r);
344
+ (n, c) => {
345
+ de((g) => ({ ...g, [c]: !0 })), N == null || N(n);
346
346
  },
347
347
  [N]
348
348
  ), ue = S(
349
- (r, c, g) => {
350
- (r.key === "Enter" || r.key === " ") && (r.preventDefault(), I(c, g));
349
+ (n, c, g) => {
350
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), I(c, g));
351
351
  },
352
352
  [I]
353
353
  ), V = Ae(t.length || 1), j = Ye({ cols: V });
@@ -360,17 +360,20 @@ const Ze = pe(
360
360
  role: "status",
361
361
  "aria-live": "polite",
362
362
  "aria-label": m("common.loading"),
363
- children: Array.from({ length: V }, (r, c) => /* @__PURE__ */ C("div", { className: H(), children: [
363
+ children: Array.from({ length: V }, (n, c) => /* @__PURE__ */ C("div", { className: H(), children: [
364
364
  /* @__PURE__ */ i(B, { variant: "text", size: s, width: "60%" }),
365
- /* @__PURE__ */ i("div", { className: _(), children: Array.from({ length: Math.min(n, 4) }, (g, z) => /* @__PURE__ */ i(
366
- B,
367
- {
368
- variant: "rounded",
369
- size: s,
370
- height: "40px"
371
- },
372
- `loading-slot-${c}-${z}`
373
- )) })
365
+ /* @__PURE__ */ i("div", { className: _(), children: Array.from(
366
+ { length: Math.min(r, 4) },
367
+ (g, z) => /* @__PURE__ */ i(
368
+ B,
369
+ {
370
+ variant: "rounded",
371
+ size: s,
372
+ height: "40px"
373
+ },
374
+ `loading-slot-${c}-${z}`
375
+ )
376
+ ) })
374
377
  ] }, `loading-col-${c}`))
375
378
  }
376
379
  ) : oe ? w = /* @__PURE__ */ i("div", { "data-state": "empty", children: /* @__PURE__ */ i(xe, { variant: "no-results", title: m("slotGrid.noSlots") }) }) : w = /* @__PURE__ */ i(
@@ -378,54 +381,61 @@ const Ze = pe(
378
381
  {
379
382
  className: j,
380
383
  "data-state": G ? "disabled" : "default",
381
- children: t.map((r, c) => {
382
- const g = `${h(r.date).toISOString()}-${c}`, z = r.label ?? X(h(r.date), T, l), E = `${re}-day-${c}-header`, F = ie[g] ?? !1 ? r.slots : r.slots.slice(0, n), R = r.slots.length - F.length, M = r.slots.length === 0;
383
- return /* @__PURE__ */ C(
384
- "section",
385
- {
386
- className: H(),
387
- "aria-labelledby": E,
388
- "data-empty": M || void 0,
389
- children: [
390
- /* @__PURE__ */ i("h3", { id: E, className: Be({ size: s }), children: z }),
391
- M ? /* @__PURE__ */ i("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: m("slotGrid.noSlots") }) : null,
392
- /* @__PURE__ */ i("ul", { className: _(), children: F.map((p) => {
393
- const me = He(
394
- p,
395
- r,
396
- T,
397
- l,
398
- ({ time: L, day: ge }) => m("slotGrid.slotLabel", { time: L, day: ge })
399
- ), fe = a === p.id, O = p.available === !1 || v;
400
- return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
401
- "button",
384
+ children: t.map((n, c) => {
385
+ const g = `${h(n.date).toISOString()}-${c}`, z = n.label ?? X(h(n.date), T, l), E = `${ne}-day-${c}-header`, F = ie[g] ?? !1 ? n.slots : n.slots.slice(0, r), R = n.slots.length - F.length, M = n.slots.length === 0;
386
+ return (
387
+ // Use a plain <div role="group"> rather than <section> — a
388
+ // <section> with aria-labelledby is a landmark, and nesting many
389
+ // landmarks inside the outer slot-grid landmark fails axe's
390
+ // landmark-unique rule.
391
+ /* @__PURE__ */ C(
392
+ "div",
393
+ {
394
+ role: "group",
395
+ className: H(),
396
+ "aria-labelledby": E,
397
+ "data-empty": M || void 0,
398
+ children: [
399
+ /* @__PURE__ */ i("h3", { id: E, className: Be({ size: s }), children: z }),
400
+ M ? /* @__PURE__ */ i("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: m("slotGrid.noSlots") }) : null,
401
+ /* @__PURE__ */ i("ul", { className: _(), children: F.map((p) => {
402
+ const me = He(
403
+ p,
404
+ n,
405
+ T,
406
+ l,
407
+ ({ time: L, day: ge }) => m("slotGrid.slotLabel", { time: L, day: ge })
408
+ ), fe = a === p.id, O = p.available === !1 || v;
409
+ return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
410
+ "button",
411
+ {
412
+ type: "button",
413
+ className: We({ size: s }),
414
+ "aria-label": me,
415
+ "aria-pressed": fe,
416
+ disabled: O,
417
+ "aria-disabled": O || void 0,
418
+ "data-slot-id": p.id,
419
+ onClick: () => I(p, n),
420
+ onKeyDown: (L) => ue(L, p, n),
421
+ children: q(p, T, l)
422
+ }
423
+ ) }, p.id);
424
+ }) }),
425
+ R > 0 ? /* @__PURE__ */ i(
426
+ Y,
402
427
  {
403
- type: "button",
404
- className: We({ size: s }),
405
- "aria-label": me,
406
- "aria-pressed": fe,
407
- disabled: O,
408
- "aria-disabled": O || void 0,
409
- "data-slot-id": p.id,
410
- onClick: () => I(p, r),
411
- onKeyDown: (L) => ue(L, p, r),
412
- children: q(p, T, l)
428
+ intent: "ghost",
429
+ size: s === "lg" ? "md" : "sm",
430
+ onClick: () => ce(n, g),
431
+ disabled: v,
432
+ children: m("slotGrid.showMore", { count: R })
413
433
  }
414
- ) }, p.id);
415
- }) }),
416
- R > 0 ? /* @__PURE__ */ i(
417
- Y,
418
- {
419
- intent: "ghost",
420
- size: s === "lg" ? "md" : "sm",
421
- onClick: () => ce(r, g),
422
- disabled: v,
423
- children: m("slotGrid.showMore", { count: R })
424
- }
425
- ) : null
426
- ]
427
- },
428
- g
434
+ ) : null
435
+ ]
436
+ },
437
+ g
438
+ )
429
439
  );
430
440
  })
431
441
  }
@@ -486,7 +496,7 @@ Ze.displayName = "SlotGrid";
486
496
  export {
487
497
  Ze as S,
488
498
  it as f,
489
- rt as i,
499
+ nt as i,
490
500
  Ne as p
491
501
  };
492
- //# sourceMappingURL=slot-grid-D_l5VsHG.js.map
502
+ //# sourceMappingURL=slot-grid-CgpYgBkW.js.map
@@ -1,11 +1,12 @@
1
- import { jsx as I, jsxs as L } from "react/jsx-runtime";
2
- import { forwardRef as P, useId as j, useMemo as S, useRef as G, useState as z, useEffect as A, useImperativeHandle as V } from "react";
3
- import { c as Z } from "./index-D2ZczOXr.js";
4
- import { useTranslation as $ } from "react-i18next";
5
- import q from "react-apexcharts";
6
- import w from "apexcharts";
7
- import { g as H, u as J } from "./apexcharts-theme-BkSShpEy.js";
8
- function K(n) {
1
+ import { jsx as w, jsxs as P } from "react/jsx-runtime";
2
+ import { forwardRef as j, useId as G, useMemo as R, useRef as V, useState as H, useEffect as z, useImperativeHandle as Z } from "react";
3
+ import { c as $ } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as q } from "react-i18next";
5
+ import J from "react-apexcharts";
6
+ import v from "apexcharts";
7
+ import { g as D, u as K } from "./apexcharts-theme-BJigns_V.js";
8
+ import { u as Q } from "./registry-C9nwlNyL.js";
9
+ function X(n) {
9
10
  if (n.length < 2)
10
11
  return { slope: 0, direction: "steady" };
11
12
  const t = n.length, i = (t - 1) / 2, c = n.reduce((s, o) => s + o, 0) / t;
@@ -17,7 +18,34 @@ function K(n) {
17
18
  const d = l === 0 ? 0 : a / l, b = 0.01 * (Math.max(...n) - Math.min(...n) || 1), k = Math.abs(d) < b ? "steady" : d > 0 ? "increasing" : "decreasing";
18
19
  return { slope: d, direction: k };
19
20
  }
20
- const D = Z("ds:relative ds:inline-block ds:w-full", {
21
+ const Y = {
22
+ id: "sparkline",
23
+ capabilities: [],
24
+ state: {},
25
+ actions: {
26
+ update_series: {
27
+ safety: "read",
28
+ argsType: "{ data: number[] }",
29
+ description: "Replace the sparkline data without remounting.",
30
+ invoke: (n, t) => {
31
+ n.updateSeries(t.data);
32
+ }
33
+ },
34
+ export_png: {
35
+ safety: "read",
36
+ description: "Return a PNG data URI of the sparkline.",
37
+ invoke: (n) => n.dataURI()
38
+ }
39
+ },
40
+ domHooks: {
41
+ root: { attr: "data-component", value: "sparkline" },
42
+ instanceId: {
43
+ attr: "data-component-id",
44
+ sourceProp: "id",
45
+ description: "Sourced from the id prop."
46
+ }
47
+ }
48
+ }, U = $("ds:relative ds:inline-block ds:w-full", {
21
49
  variants: {
22
50
  size: {
23
51
  xs: "ds:h-6",
@@ -26,19 +54,19 @@ const D = Z("ds:relative ds:inline-block ds:w-full", {
26
54
  }
27
55
  },
28
56
  defaultVariants: { size: "md" }
29
- }), Q = {
57
+ }), ee = {
30
58
  increasing: "↑",
31
59
  decreasing: "↓",
32
60
  steady: "→"
33
- }, X = {
61
+ }, te = {
34
62
  xs: 24,
35
63
  sm: 32,
36
64
  md: 40
37
65
  };
38
- function Y() {
66
+ function re() {
39
67
  return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
40
68
  }
41
- const ee = P(
69
+ const ne = j(
42
70
  ({
43
71
  id: n,
44
72
  data: t,
@@ -47,39 +75,41 @@ const ee = P(
47
75
  label: a,
48
76
  color: l,
49
77
  showEndpoint: d = !1,
50
- showTooltip: v = !1,
78
+ showTooltip: M = !1,
51
79
  width: b,
52
80
  height: k,
53
81
  className: s,
54
82
  ...o
55
- }, U) => {
56
- var N;
57
- const { t: u, i18n: R } = $(), M = j(), m = S(
58
- () => `sparkline-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
59
- [M]
60
- ), p = G(null), [C, _] = z(0), { direction: y } = K(t), T = S(() => {
83
+ }, _) => {
84
+ var A;
85
+ const { t: u, i18n: C } = q(), T = G(), m = R(
86
+ () => `sparkline-${T.replace(/[^a-zA-Z0-9-_]/g, "")}`,
87
+ [T]
88
+ ), p = V(null), [O, E] = H(0), { direction: y } = X(t), N = R(() => {
61
89
  if (t.length === 0)
62
90
  return u("ui.sparkline.noData", "No data");
63
- const e = (g) => new Intl.NumberFormat(R.language).format(g), r = u(`ui.sparkline.direction.${y}`), f = {
91
+ const e = (g) => new Intl.NumberFormat(C.language).format(g), r = u(`ui.sparkline.direction.${y}`), f = {
64
92
  min: e(Math.min(...t)),
65
93
  max: e(Math.max(...t)),
66
94
  current: e(t[t.length - 1]),
67
95
  direction: r
68
96
  };
69
97
  return a ? u("ui.sparkline.summary", { label: a, ...f }) : u("ui.sparkline.summaryNoLabel", f);
70
- }, [t, a, y, R.language, u]), [h, E] = z(() => {
71
- try {
72
- return H();
73
- } catch {
74
- return {};
98
+ }, [t, a, y, C.language, u]), [h, W] = H(
99
+ () => {
100
+ try {
101
+ return D();
102
+ } catch {
103
+ return {};
104
+ }
75
105
  }
76
- });
77
- A(() => {
106
+ );
107
+ z(() => {
78
108
  let e;
79
109
  const r = new MutationObserver(() => {
80
110
  clearTimeout(e), e = setTimeout(() => {
81
111
  try {
82
- E(H());
112
+ W(D());
83
113
  } catch {
84
114
  }
85
115
  }, 50);
@@ -90,42 +120,47 @@ const ee = P(
90
120
  }), () => {
91
121
  clearTimeout(e), r.disconnect();
92
122
  };
93
- }, []), A(() => {
123
+ }, []), z(() => {
94
124
  const e = p.current;
95
125
  if (!e) return;
96
126
  const r = new ResizeObserver((f) => {
97
127
  const g = f[0];
98
- g && _(Math.floor(g.contentRect.width));
128
+ g && E(Math.floor(g.contentRect.width));
99
129
  });
100
130
  return r.observe(e), () => r.disconnect();
101
- }, []), J(p), V(U, () => ({
102
- updateSeries(e) {
103
- var r;
104
- (r = w.getChartByID(m)) == null || r.updateSeries([{ data: e }]);
105
- },
106
- updateOptions(e) {
107
- var r;
108
- (r = w.getChartByID(m)) == null || r.updateOptions(e);
109
- },
110
- async dataURI() {
111
- const e = w.getChartByID(m);
112
- return e ? (await e.dataURI()).imgURI : "";
113
- }
114
- }));
115
- const x = l ?? ((N = h.colors) == null ? void 0 : N[0]) ?? "currentColor";
131
+ }, []), K(p);
132
+ const x = R(
133
+ () => ({
134
+ updateSeries(e) {
135
+ var r;
136
+ (r = v.getChartByID(m)) == null || r.updateSeries([{ data: e }]);
137
+ },
138
+ updateOptions(e) {
139
+ var r;
140
+ (r = v.getChartByID(m)) == null || r.updateOptions(e);
141
+ },
142
+ async dataURI() {
143
+ const e = v.getChartByID(m);
144
+ return e ? (await e.dataURI()).imgURI : "";
145
+ }
146
+ }),
147
+ [m]
148
+ );
149
+ Z(_, () => x, [x]), Q(Y, x, n);
150
+ const I = l ?? ((A = h.colors) == null ? void 0 : A[0]) ?? "currentColor";
116
151
  if (t.length === 0)
117
- return /* @__PURE__ */ I(
152
+ return /* @__PURE__ */ w(
118
153
  "div",
119
154
  {
120
155
  ref: p,
121
156
  role: "img",
122
- "aria-label": T,
157
+ "aria-label": N,
123
158
  dir: "ltr",
124
- className: D({ size: c, className: s }),
159
+ className: U({ size: c, className: s }),
125
160
  ...o
126
161
  }
127
162
  );
128
- const O = Y(), W = {
163
+ const S = re(), B = {
129
164
  ...h,
130
165
  chart: {
131
166
  ...h.chart,
@@ -134,13 +169,13 @@ const ee = P(
134
169
  sparkline: { enabled: !0 },
135
170
  toolbar: { show: !1 },
136
171
  animations: {
137
- enabled: !O,
138
- dynamicAnimation: { enabled: !O }
172
+ enabled: !S,
173
+ dynamicAnimation: { enabled: !S }
139
174
  },
140
175
  zoom: { enabled: !1 },
141
176
  parentHeightOffset: 0
142
177
  },
143
- colors: [x],
178
+ colors: [I],
144
179
  stroke: {
145
180
  curve: "smooth",
146
181
  width: i === "bar" ? 0 : 2
@@ -151,15 +186,15 @@ const ee = P(
151
186
  xaxis: {
152
187
  crosshairs: { show: !1 }
153
188
  },
154
- tooltip: { enabled: v },
189
+ tooltip: { enabled: M },
155
190
  markers: d ? {
156
191
  size: [0],
157
192
  discrete: [
158
193
  {
159
194
  seriesIndex: 0,
160
195
  dataPointIndex: t.length - 1,
161
- fillColor: x,
162
- strokeColor: x,
196
+ fillColor: I,
197
+ strokeColor: I,
163
198
  size: 4
164
199
  }
165
200
  ]
@@ -171,36 +206,36 @@ const ee = P(
171
206
  // The chart wrapper enforces dir="ltr" so these always resolve correctly.
172
207
  padding: { top: 2, right: 2, bottom: 2, left: 2 }
173
208
  }
174
- }, B = b ?? (C > 0 ? C : "100%"), F = k ?? X[c ?? "md"];
175
- return /* @__PURE__ */ L(
209
+ }, F = b ?? (O > 0 ? O : "100%"), L = k ?? te[c ?? "md"];
210
+ return /* @__PURE__ */ P(
176
211
  "div",
177
212
  {
178
213
  ref: p,
179
214
  role: "img",
180
- "aria-label": T,
215
+ "aria-label": N,
181
216
  dir: "ltr",
182
- className: D({ size: c, className: s }),
217
+ className: U({ size: c, className: s }),
183
218
  "data-component": "sparkline",
184
219
  "data-component-id": n,
185
220
  ...o,
186
221
  children: [
187
- /* @__PURE__ */ I(
188
- q,
222
+ /* @__PURE__ */ w(
223
+ J,
189
224
  {
190
225
  type: i,
191
226
  series: [{ data: t }],
192
- options: W,
193
- width: B,
194
- height: F,
227
+ options: B,
228
+ width: F,
229
+ height: L,
195
230
  "aria-hidden": "true"
196
231
  }
197
232
  ),
198
- d && /* @__PURE__ */ I(
233
+ d && /* @__PURE__ */ w(
199
234
  "span",
200
235
  {
201
236
  "aria-hidden": "true",
202
237
  className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
203
- children: Q[y]
238
+ children: ee[y]
204
239
  }
205
240
  )
206
241
  ]
@@ -208,38 +243,10 @@ const ee = P(
208
243
  );
209
244
  }
210
245
  );
211
- ee.displayName = "Sparkline";
212
- const de = {
213
- id: "sparkline",
214
- capabilities: [],
215
- state: {},
216
- actions: {
217
- update_series: {
218
- safety: "read",
219
- argsType: "{ data: number[] }",
220
- description: "Replace the sparkline data without remounting.",
221
- invoke: (n, t) => {
222
- n.updateSeries(t.data);
223
- }
224
- },
225
- export_png: {
226
- safety: "read",
227
- description: "Return a PNG data URI of the sparkline.",
228
- invoke: (n) => n.dataURI()
229
- }
230
- },
231
- domHooks: {
232
- root: { attr: "data-component", value: "sparkline" },
233
- instanceId: {
234
- attr: "data-component-id",
235
- sourceProp: "id",
236
- description: "Sourced from the id prop."
237
- }
238
- }
239
- };
246
+ ne.displayName = "Sparkline";
240
247
  export {
241
- ee as S,
242
- de as s,
243
- K as u
248
+ ne as S,
249
+ Y as s,
250
+ X as u
244
251
  };
245
- //# sourceMappingURL=sparkline.agent-56Sj7nOP.js.map
252
+ //# sourceMappingURL=sparkline-_gy8aJDG.js.map