@alfadocs/ui-kit-debug 1.94.0 → 1.95.1

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 (277) hide show
  1. package/dist/_chunks/{actions-cell-renderer-B1yaOfQM.js → actions-cell-renderer-BVn3vDTg.js} +3 -3
  2. package/dist/_chunks/{actions-cell-renderer-B1yaOfQM.js.map → actions-cell-renderer-BVn3vDTg.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-rows-IMohuz0D.js → anamnesis-summary-rows-krsCC-F4.js} +5 -5
  4. package/dist/_chunks/{anamnesis-summary-rows-IMohuz0D.js.map → anamnesis-summary-rows-krsCC-F4.js.map} +1 -1
  5. package/dist/_chunks/{appointment-card-Bstc1p7a.js → appointment-card-Csx4544A.js} +2 -2
  6. package/dist/_chunks/{appointment-card-Bstc1p7a.js.map → appointment-card-Csx4544A.js.map} +1 -1
  7. package/dist/_chunks/{appointment-peek-C0kKqnFk.js → appointment-peek-CcDCWb-F.js} +2 -2
  8. package/dist/_chunks/{appointment-peek-C0kKqnFk.js.map → appointment-peek-CcDCWb-F.js.map} +1 -1
  9. package/dist/_chunks/{appointment-timeline-rbt9AwHO.js → appointment-timeline-DW6FN6u8.js} +3 -3
  10. package/dist/_chunks/{appointment-timeline-rbt9AwHO.js.map → appointment-timeline-DW6FN6u8.js.map} +1 -1
  11. package/dist/_chunks/{appointment-tray-6zd8RLIL.js → appointment-tray-CZfXwHWz.js} +2 -2
  12. package/dist/_chunks/{appointment-tray-6zd8RLIL.js.map → appointment-tray-CZfXwHWz.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-vZxbOFgP.js → balance-badge-cell-DbgEQsou.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-vZxbOFgP.js.map → balance-badge-cell-DbgEQsou.js.map} +1 -1
  15. package/dist/_chunks/{button-group-ZVb1Q-w4.js → button-group-CUnNnt8a.js} +2 -2
  16. package/dist/_chunks/{button-group-ZVb1Q-w4.js.map → button-group-CUnNnt8a.js.map} +1 -1
  17. package/dist/_chunks/{calendar-appointment-editor-dialog-CsVWoRcP.js → calendar-appointment-editor-dialog-D3tQ8N34.js} +12 -12
  18. package/dist/_chunks/{calendar-appointment-editor-dialog-CsVWoRcP.js.map → calendar-appointment-editor-dialog-D3tQ8N34.js.map} +1 -1
  19. package/dist/_chunks/{care-plan-card-DD9rEWYN.js → care-plan-card-YWKV8Kjq.js} +2 -2
  20. package/dist/_chunks/{care-plan-card-DD9rEWYN.js.map → care-plan-card-YWKV8Kjq.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-entry-card-4VaY2c96.js → care-plan-entry-card-CApivtMW.js} +2 -2
  22. package/dist/_chunks/{care-plan-entry-card-4VaY2c96.js.map → care-plan-entry-card-CApivtMW.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-header-CXUJQt8Q.js → care-plan-header-BBh0X7EO.js} +2 -2
  24. package/dist/_chunks/{care-plan-header-CXUJQt8Q.js.map → care-plan-header-BBh0X7EO.js.map} +1 -1
  25. package/dist/_chunks/chart-bddVIElM.js +1550 -0
  26. package/dist/_chunks/chart-bddVIElM.js.map +1 -0
  27. package/dist/_chunks/{dashboard-grid-DwJ_HV3d.js → dashboard-grid-DrOkTtya.js} +2 -2
  28. package/dist/_chunks/{dashboard-grid-DwJ_HV3d.js.map → dashboard-grid-DrOkTtya.js.map} +1 -1
  29. package/dist/_chunks/{data-table-C_nnpJ-Q.js → data-table-Bh9_IEj4.js} +3 -3
  30. package/dist/_chunks/{data-table-C_nnpJ-Q.js.map → data-table-Bh9_IEj4.js.map} +1 -1
  31. package/dist/_chunks/{date-time-picker-n-yrlMJq.js → date-time-picker-cwsWiB4q.js} +2 -2
  32. package/dist/_chunks/{date-time-picker-n-yrlMJq.js.map → date-time-picker-cwsWiB4q.js.map} +1 -1
  33. package/dist/_chunks/{document-preview-ytR1FcWA.js → document-preview-CL1xsnLS.js} +2 -2
  34. package/dist/_chunks/{document-preview-ytR1FcWA.js.map → document-preview-CL1xsnLS.js.map} +1 -1
  35. package/dist/_chunks/{dropdown-menu-D1we7oAY.js → dropdown-menu-CqxBthww.js} +2 -2
  36. package/dist/_chunks/{dropdown-menu-D1we7oAY.js.map → dropdown-menu-CqxBthww.js.map} +1 -1
  37. package/dist/_chunks/{editable-currency-cell-renderer-rWYiF4EI.js → editable-currency-cell-renderer-BQYL5GjP.js} +2 -2
  38. package/dist/_chunks/{editable-currency-cell-renderer-rWYiF4EI.js.map → editable-currency-cell-renderer-BQYL5GjP.js.map} +1 -1
  39. package/dist/_chunks/{face-scheme-BKSE98bo.js → face-scheme-DyHc3zPt.js} +4 -4
  40. package/dist/_chunks/{face-scheme-BKSE98bo.js.map → face-scheme-DyHc3zPt.js.map} +1 -1
  41. package/dist/_chunks/{file-manager-CAIbuaSs.js → file-manager-Cgf2yc10.js} +4 -4
  42. package/dist/_chunks/{file-manager-CAIbuaSs.js.map → file-manager-Cgf2yc10.js.map} +1 -1
  43. package/dist/_chunks/{hcg-doubling-K41Wy7LB.js → hcg-doubling-DQe1ptNB.js} +2 -2
  44. package/dist/_chunks/{hcg-doubling-K41Wy7LB.js.map → hcg-doubling-DQe1ptNB.js.map} +1 -1
  45. package/dist/_chunks/{header-settings-BeA2fnol.js → header-settings-DittkpqU.js} +2 -2
  46. package/dist/_chunks/{header-settings-BeA2fnol.js.map → header-settings-DittkpqU.js.map} +1 -1
  47. package/dist/_chunks/{heatmap-DdF8qTTV.js → heatmap-9Ql8Ny9d.js} +2 -2
  48. package/dist/_chunks/{heatmap-DdF8qTTV.js.map → heatmap-9Ql8Ny9d.js.map} +1 -1
  49. package/dist/_chunks/{icon-button-group-CRKFR48b.js → icon-button-group-mXvYDaba.js} +2 -2
  50. package/dist/_chunks/{icon-button-group-CRKFR48b.js.map → icon-button-group-mXvYDaba.js.map} +1 -1
  51. package/dist/_chunks/{marketplace-app-shell-CJQtx3sv.js → marketplace-app-shell-C8nHixB8.js} +4 -4
  52. package/dist/_chunks/{marketplace-app-shell-CJQtx3sv.js.map → marketplace-app-shell-C8nHixB8.js.map} +1 -1
  53. package/dist/_chunks/{message-tray-Cllf-v0G.js → message-tray-18_TrLCy.js} +2 -2
  54. package/dist/_chunks/{message-tray-Cllf-v0G.js.map → message-tray-18_TrLCy.js.map} +1 -1
  55. package/dist/_chunks/{muscle-scheme-B7qMW0ho.js → muscle-scheme-CznhrQlo.js} +2 -2
  56. package/dist/_chunks/{muscle-scheme-B7qMW0ho.js.map → muscle-scheme-CznhrQlo.js.map} +1 -1
  57. package/dist/_chunks/{notes-panel-ib7I3aNf.js → notes-panel-D6YhNGHU.js} +2 -2
  58. package/dist/_chunks/{notes-panel-ib7I3aNf.js.map → notes-panel-D6YhNGHU.js.map} +1 -1
  59. package/dist/_chunks/{notification-tray-0OkA2duS.js → notification-tray-CQK3lw87.js} +2 -2
  60. package/dist/_chunks/{notification-tray-0OkA2duS.js.map → notification-tray-CQK3lw87.js.map} +1 -1
  61. package/dist/_chunks/{patient-details-DTlpBYHJ.js → patient-details-DQQpgx4A.js} +2 -2
  62. package/dist/_chunks/{patient-details-DTlpBYHJ.js.map → patient-details-DQQpgx4A.js.map} +1 -1
  63. package/dist/_chunks/{patient-field-row-DWTKV1hF.js → patient-field-row-Cb5jUd5Q.js} +2 -2
  64. package/dist/_chunks/{patient-field-row-DWTKV1hF.js.map → patient-field-row-Cb5jUd5Q.js.map} +1 -1
  65. package/dist/_chunks/{patient-search-Ca9j5cWb.js → patient-search-Cp2efqHs.js} +2 -2
  66. package/dist/_chunks/{patient-search-Ca9j5cWb.js.map → patient-search-Cp2efqHs.js.map} +1 -1
  67. package/dist/_chunks/{patient-summary-card-C61AR4Tn.js → patient-summary-card-BvMI0eMu.js} +2 -2
  68. package/dist/_chunks/{patient-summary-card-C61AR4Tn.js.map → patient-summary-card-BvMI0eMu.js.map} +1 -1
  69. package/dist/_chunks/{practice-results-BWX9y6mS.js → practice-results-ZOVlrb43.js} +3 -3
  70. package/dist/_chunks/practice-results-ZOVlrb43.js.map +1 -0
  71. package/dist/_chunks/{product-hub-panel-bHi7lkVD.js → product-hub-panel-CqRJlmb7.js} +2 -2
  72. package/dist/_chunks/{product-hub-panel-bHi7lkVD.js.map → product-hub-panel-CqRJlmb7.js.map} +1 -1
  73. package/dist/_chunks/{public-footer-IoRWoAMz.js → public-footer-BiPiU_lk.js} +2 -2
  74. package/dist/_chunks/{public-footer-IoRWoAMz.js.map → public-footer-BiPiU_lk.js.map} +1 -1
  75. package/dist/_chunks/{reserved.agent-XU88crNW.js → reserved.agent-BvwjDyne.js} +2 -2
  76. package/dist/_chunks/{reserved.agent-XU88crNW.js.map → reserved.agent-BvwjDyne.js.map} +1 -1
  77. package/dist/_chunks/{rich-text-editor-BfEu57dk.js → rich-text-editor-iw2tJLKA.js} +2 -2
  78. package/dist/_chunks/{rich-text-editor-BfEu57dk.js.map → rich-text-editor-iw2tJLKA.js.map} +1 -1
  79. package/dist/_chunks/{separator-CYU_bGFn.js → separator-Bdc9bqoJ.js} +18 -19
  80. package/dist/_chunks/separator-Bdc9bqoJ.js.map +1 -0
  81. package/dist/_chunks/{signature-request-BVGeF0qB.js → signature-request-CLtMgQKi.js} +3 -3
  82. package/dist/_chunks/{signature-request-BVGeF0qB.js.map → signature-request-CLtMgQKi.js.map} +1 -1
  83. package/dist/_chunks/{signed-out-frame-CgRXOUzi.js → signed-out-frame-CRwVTCjY.js} +2 -2
  84. package/dist/_chunks/{signed-out-frame-CgRXOUzi.js.map → signed-out-frame-CRwVTCjY.js.map} +1 -1
  85. package/dist/_chunks/{slot-grid-B-IAFX3C.js → slot-grid-BhjaLJ0o.js} +229 -214
  86. package/dist/_chunks/{slot-grid-B-IAFX3C.js.map → slot-grid-BhjaLJ0o.js.map} +1 -1
  87. package/dist/_chunks/{tab-bar-BEODTG6k.js → tab-bar-C_pggqVr.js} +2 -2
  88. package/dist/_chunks/{tab-bar-BEODTG6k.js.map → tab-bar-C_pggqVr.js.map} +1 -1
  89. package/dist/_chunks/{tabs-BmxQu-TJ.js → tabs-DYHgRVSJ.js} +2 -2
  90. package/dist/_chunks/{tabs-BmxQu-TJ.js.map → tabs-DYHgRVSJ.js.map} +1 -1
  91. package/dist/_chunks/{task-editor-BZeSBxwU.js → task-editor-BlGdXR9F.js} +3 -3
  92. package/dist/_chunks/{task-editor-BZeSBxwU.js.map → task-editor-BlGdXR9F.js.map} +1 -1
  93. package/dist/_chunks/{tasks-panel-BTCYGLGA.js → tasks-panel-Q0CiEAff.js} +2 -2
  94. package/dist/_chunks/{tasks-panel-BTCYGLGA.js.map → tasks-panel-Q0CiEAff.js.map} +1 -1
  95. package/dist/_chunks/{theme-toggle-DKpzb0-M.js → theme-toggle-jZRbAidE.js} +3 -3
  96. package/dist/_chunks/{theme-toggle-DKpzb0-M.js.map → theme-toggle-jZRbAidE.js.map} +1 -1
  97. package/dist/_chunks/time-picker-DSt-ns5F.js +914 -0
  98. package/dist/_chunks/time-picker-DSt-ns5F.js.map +1 -0
  99. package/dist/_chunks/{token-insert-menu-DtAnBd0x.js → token-insert-menu-Dl3x2ekR.js} +2 -2
  100. package/dist/_chunks/{token-insert-menu-DtAnBd0x.js.map → token-insert-menu-Dl3x2ekR.js.map} +1 -1
  101. package/dist/_chunks/{tooth-scheme-COJJkdsi.js → tooth-scheme-Bd7xECuj.js} +2 -2
  102. package/dist/_chunks/{tooth-scheme-COJJkdsi.js.map → tooth-scheme-Bd7xECuj.js.map} +1 -1
  103. package/dist/_chunks/{use-appointment-details-read-B6uhmNdV.js → use-appointment-details-read-CpXRSfPI.js} +5 -5
  104. package/dist/_chunks/{use-appointment-details-read-B6uhmNdV.js.map → use-appointment-details-read-CpXRSfPI.js.map} +1 -1
  105. package/dist/_chunks/{workflow-map-BcfOwsSB.js → workflow-map-BWJhlZbC.js} +2 -2
  106. package/dist/_chunks/{workflow-map-BcfOwsSB.js.map → workflow-map-BWJhlZbC.js.map} +1 -1
  107. package/dist/_chunks/{workflow-status-Dc_CyEz5.js → workflow-status-HQ6ziE46.js} +2 -2
  108. package/dist/_chunks/{workflow-status-Dc_CyEz5.js.map → workflow-status-HQ6ziE46.js.map} +1 -1
  109. package/dist/_chunks/{workflow-webhook-action-B_nBJ_ht.js → workflow-webhook-action-Uhyfr6_6.js} +2 -2
  110. package/dist/_chunks/{workflow-webhook-action-B_nBJ_ht.js.map → workflow-webhook-action-Uhyfr6_6.js.map} +1 -1
  111. package/dist/agent-catalog.json +12 -4
  112. package/dist/agent-i18n/en.json +2 -2
  113. package/dist/apexcharts.css +4 -1
  114. package/dist/components/appointment-card/index.js +2 -2
  115. package/dist/components/appointment-details-panel/index.js +1 -1
  116. package/dist/components/appointment-peek/index.js +1 -1
  117. package/dist/components/appointment-timeline/index.js +1 -1
  118. package/dist/components/booking/index.js +1 -1
  119. package/dist/components/button-group/index.js +1 -1
  120. package/dist/components/care-plan-card/index.js +1 -1
  121. package/dist/components/care-plan-entry-card/index.js +1 -1
  122. package/dist/components/care-plan-header/index.js +1 -1
  123. package/dist/components/chart/chart-axis-scale.d.ts +21 -0
  124. package/dist/components/chart/chart-axis-scale.d.ts.map +1 -0
  125. package/dist/components/chart/chart.agent.d.ts.map +1 -1
  126. package/dist/components/chart/chart.d.ts +55 -0
  127. package/dist/components/chart/chart.d.ts.map +1 -1
  128. package/dist/components/chart/index.d.ts +1 -1
  129. package/dist/components/chart/index.d.ts.map +1 -1
  130. package/dist/components/chart/index.js +1 -1
  131. package/dist/components/dashboard-grid/index.js +1 -1
  132. package/dist/components/data-table/index.js +3 -3
  133. package/dist/components/date-time-picker/index.js +1 -1
  134. package/dist/components/document-preview/index.js +1 -1
  135. package/dist/components/dropdown-menu/index.js +1 -1
  136. package/dist/components/face-scheme/index.js +1 -1
  137. package/dist/components/file-manager/index.js +1 -1
  138. package/dist/components/hcg-doubling/index.js +1 -1
  139. package/dist/components/header-settings/index.js +1 -1
  140. package/dist/components/heatmap/index.js +1 -1
  141. package/dist/components/icon-button-group/index.js +1 -1
  142. package/dist/components/message-tray/index.js +1 -1
  143. package/dist/components/muscle-scheme/index.js +1 -1
  144. package/dist/components/notes-panel/index.js +1 -1
  145. package/dist/components/notification-tray/index.js +1 -1
  146. package/dist/components/patient-details/index.js +1 -1
  147. package/dist/components/patient-search/index.js +1 -1
  148. package/dist/components/patient-summary-card/index.js +1 -1
  149. package/dist/components/patient-table/index.js +1 -1
  150. package/dist/components/practice-results/index.js +1 -1
  151. package/dist/components/product-hub-tray/index.js +1 -1
  152. package/dist/components/public-footer/index.js +1 -1
  153. package/dist/components/rich-text-editor/index.js +1 -1
  154. package/dist/components/separator/index.js +1 -1
  155. package/dist/components/separator/separator.d.ts.map +1 -1
  156. package/dist/components/skeleton-scheme/index.js +1 -1
  157. package/dist/components/slot-grid/index.js +1 -1
  158. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  159. package/dist/components/tab-bar/index.js +1 -1
  160. package/dist/components/tabs/index.js +1 -1
  161. package/dist/components/task-editor/index.js +1 -1
  162. package/dist/components/tasks-panel/index.js +1 -1
  163. package/dist/components/theme-toggle/index.js +1 -1
  164. package/dist/components/time-picker/index.js +1 -1
  165. package/dist/components/time-picker/time-picker.d.ts +15 -8
  166. package/dist/components/time-picker/time-picker.d.ts.map +1 -1
  167. package/dist/components/token-insert-menu/index.js +1 -1
  168. package/dist/components/tooth-scheme/index.js +1 -1
  169. package/dist/components/workflow/index.js +1 -1
  170. package/dist/components/workflow-status/index.js +1 -1
  171. package/dist/core.css +1 -1
  172. package/dist/host-compat.css +4 -1
  173. package/dist/i18n/locales/ar.d.ts +4 -1
  174. package/dist/i18n/locales/ar.d.ts.map +1 -1
  175. package/dist/i18n/locales/ar.js +6 -3
  176. package/dist/i18n/locales/ar.js.map +1 -1
  177. package/dist/i18n/locales/de.d.ts +5 -2
  178. package/dist/i18n/locales/de.d.ts.map +1 -1
  179. package/dist/i18n/locales/de.js +7 -4
  180. package/dist/i18n/locales/de.js.map +1 -1
  181. package/dist/i18n/locales/el.d.ts +5 -2
  182. package/dist/i18n/locales/el.d.ts.map +1 -1
  183. package/dist/i18n/locales/el.js +7 -4
  184. package/dist/i18n/locales/el.js.map +1 -1
  185. package/dist/i18n/locales/en.d.ts +5 -2
  186. package/dist/i18n/locales/en.d.ts.map +1 -1
  187. package/dist/i18n/locales/en.js +6 -3
  188. package/dist/i18n/locales/en.js.map +1 -1
  189. package/dist/i18n/locales/es.d.ts +5 -2
  190. package/dist/i18n/locales/es.d.ts.map +1 -1
  191. package/dist/i18n/locales/es.js +7 -4
  192. package/dist/i18n/locales/es.js.map +1 -1
  193. package/dist/i18n/locales/fr.d.ts +4 -1
  194. package/dist/i18n/locales/fr.d.ts.map +1 -1
  195. package/dist/i18n/locales/fr.js +6 -3
  196. package/dist/i18n/locales/fr.js.map +1 -1
  197. package/dist/i18n/locales/hi.d.ts +5 -2
  198. package/dist/i18n/locales/hi.d.ts.map +1 -1
  199. package/dist/i18n/locales/hi.js +7 -4
  200. package/dist/i18n/locales/hi.js.map +1 -1
  201. package/dist/i18n/locales/it.d.ts +5 -2
  202. package/dist/i18n/locales/it.d.ts.map +1 -1
  203. package/dist/i18n/locales/it.js +7 -4
  204. package/dist/i18n/locales/it.js.map +1 -1
  205. package/dist/i18n/locales/ja.d.ts +5 -2
  206. package/dist/i18n/locales/ja.d.ts.map +1 -1
  207. package/dist/i18n/locales/ja.js +7 -4
  208. package/dist/i18n/locales/ja.js.map +1 -1
  209. package/dist/i18n/locales/nl.d.ts +5 -2
  210. package/dist/i18n/locales/nl.d.ts.map +1 -1
  211. package/dist/i18n/locales/nl.js +7 -4
  212. package/dist/i18n/locales/nl.js.map +1 -1
  213. package/dist/i18n/locales/pl.d.ts +5 -2
  214. package/dist/i18n/locales/pl.d.ts.map +1 -1
  215. package/dist/i18n/locales/pl.js +7 -4
  216. package/dist/i18n/locales/pl.js.map +1 -1
  217. package/dist/i18n/locales/pt.d.ts +4 -1
  218. package/dist/i18n/locales/pt.d.ts.map +1 -1
  219. package/dist/i18n/locales/pt.js +6 -3
  220. package/dist/i18n/locales/pt.js.map +1 -1
  221. package/dist/i18n/locales/ro.d.ts +5 -2
  222. package/dist/i18n/locales/ro.d.ts.map +1 -1
  223. package/dist/i18n/locales/ro.js +7 -4
  224. package/dist/i18n/locales/ro.js.map +1 -1
  225. package/dist/i18n/locales/ru.d.ts +5 -2
  226. package/dist/i18n/locales/ru.d.ts.map +1 -1
  227. package/dist/i18n/locales/ru.js +7 -4
  228. package/dist/i18n/locales/ru.js.map +1 -1
  229. package/dist/i18n/locales/sq.d.ts +5 -2
  230. package/dist/i18n/locales/sq.d.ts.map +1 -1
  231. package/dist/i18n/locales/sq.js +7 -4
  232. package/dist/i18n/locales/sq.js.map +1 -1
  233. package/dist/i18n/locales/sv.d.ts +5 -2
  234. package/dist/i18n/locales/sv.d.ts.map +1 -1
  235. package/dist/i18n/locales/sv.js +7 -4
  236. package/dist/i18n/locales/sv.js.map +1 -1
  237. package/dist/i18n/locales/tr.d.ts +5 -2
  238. package/dist/i18n/locales/tr.d.ts.map +1 -1
  239. package/dist/i18n/locales/tr.js +7 -4
  240. package/dist/i18n/locales/tr.js.map +1 -1
  241. package/dist/i18n/locales/zh.d.ts +5 -2
  242. package/dist/i18n/locales/zh.d.ts.map +1 -1
  243. package/dist/i18n/locales/zh.js +7 -4
  244. package/dist/i18n/locales/zh.js.map +1 -1
  245. package/dist/index.js +53 -53
  246. package/dist/locales/ar.json +6 -3
  247. package/dist/locales/de.json +7 -4
  248. package/dist/locales/el.json +7 -4
  249. package/dist/locales/en.json +6 -3
  250. package/dist/locales/es.json +7 -4
  251. package/dist/locales/fr.json +6 -3
  252. package/dist/locales/hi.json +7 -4
  253. package/dist/locales/it.json +7 -4
  254. package/dist/locales/ja.json +7 -4
  255. package/dist/locales/nl.json +7 -4
  256. package/dist/locales/pl.json +7 -4
  257. package/dist/locales/pt.json +6 -3
  258. package/dist/locales/ro.json +7 -4
  259. package/dist/locales/ru.json +7 -4
  260. package/dist/locales/sq.json +7 -4
  261. package/dist/locales/sv.json +7 -4
  262. package/dist/locales/tr.json +7 -4
  263. package/dist/locales/zh.json +7 -4
  264. package/dist/patterns/anamnesis/index.js +1 -1
  265. package/dist/patterns/calendar/index.js +1 -1
  266. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  267. package/dist/patterns/signature-request/index.js +1 -1
  268. package/dist/patterns/signed-out-frame/index.js +1 -1
  269. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  270. package/dist/tokens.css +4 -1
  271. package/package.json +1 -1
  272. package/dist/_chunks/chart-D4huJSru.js +0 -1340
  273. package/dist/_chunks/chart-D4huJSru.js.map +0 -1
  274. package/dist/_chunks/practice-results-BWX9y6mS.js.map +0 -1
  275. package/dist/_chunks/separator-CYU_bGFn.js.map +0 -1
  276. package/dist/_chunks/time-picker-DVfyAR81.js +0 -871
  277. package/dist/_chunks/time-picker-DVfyAR81.js.map +0 -1
@@ -0,0 +1,914 @@
1
+ import { jsxs as $e, jsx as v, Fragment as Lt } from "react/jsx-runtime";
2
+ import { forwardRef as Ht, useContext as Ft, useState as le, useMemo as ce, useRef as d, useCallback as U, useEffect as Ce, useImperativeHandle as It } from "react";
3
+ import { c as L } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Ot } from "react-i18next";
5
+ import * as Z from "@radix-ui/react-popover";
6
+ import { u as Rt, F as St, a as Kt } from "./form-field-context-DtiROUJV.js";
7
+ import { u as Je } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as Nt } from "./registry-DvAUVLHh.js";
9
+ import { X as Et } from "./x-B5YnXwCz.js";
10
+ import { C as jt } from "./clock-Drd4Wtis.js";
11
+ const Vt = {
12
+ id: "time-picker",
13
+ capabilities: ["select_single", "set_value", "open", "close"],
14
+ state: {
15
+ value: {
16
+ type: "HH:MM | null",
17
+ descriptionKey: "ui.agent.timePicker.state.value",
18
+ description: "Currently selected time as 24h HH:MM. Null when unset with allowEmpty; otherwise defaults to 00:00.",
19
+ read: (r) => {
20
+ const o = r.getValue();
21
+ if (!o) return null;
22
+ const l = String(o.hours).padStart(2, "0"), f = String(o.minutes).padStart(2, "0");
23
+ return `${l}:${f}`;
24
+ }
25
+ },
26
+ isOpen: {
27
+ type: "boolean",
28
+ descriptionKey: "ui.agent.timePicker.state.isOpen",
29
+ description: "Whether the time dropdown is open. Always false unless the picker has the dropdown prop.",
30
+ read: (r) => r.isOpen()
31
+ }
32
+ },
33
+ actions: {
34
+ set_time: {
35
+ safety: "write",
36
+ argsType: "{ time: string }",
37
+ argsSchema: {
38
+ type: "object",
39
+ properties: {
40
+ time: { type: "string", pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" }
41
+ },
42
+ required: ["time"]
43
+ },
44
+ idempotent: !0,
45
+ descriptionKey: "ui.agent.timePicker.actions.setTime",
46
+ description: "Set the time using a 24h HH:MM string.",
47
+ examples: [{ args: { time: "14:30" }, note: "2:30 PM in 24h form." }],
48
+ invoke: (r, o) => {
49
+ const [l, f] = o.time.split(":");
50
+ r.setValue({
51
+ hours: Number.parseInt(l ?? "0", 10),
52
+ minutes: Number.parseInt(f ?? "0", 10)
53
+ });
54
+ }
55
+ },
56
+ clear: {
57
+ safety: "destructive",
58
+ idempotent: !0,
59
+ descriptionKey: "ui.agent.timePicker.actions.clear",
60
+ description: "Clear to null with allowEmpty; otherwise reset to 00:00.",
61
+ invoke: (r) => {
62
+ r.clear();
63
+ }
64
+ },
65
+ open: {
66
+ safety: "read",
67
+ descriptionKey: "ui.agent.timePicker.actions.open",
68
+ description: "Open the time dropdown without moving focus. A no-op unless the picker has the dropdown prop and is enabled.",
69
+ invoke: (r) => {
70
+ r.open();
71
+ }
72
+ },
73
+ close: {
74
+ safety: "read",
75
+ descriptionKey: "ui.agent.timePicker.actions.close",
76
+ description: "Close the time dropdown. A no-op unless the picker has the dropdown prop.",
77
+ invoke: (r) => {
78
+ r.close();
79
+ }
80
+ }
81
+ },
82
+ domHooks: {
83
+ root: {
84
+ attr: "data-component",
85
+ value: "time-picker",
86
+ description: "Marks the TimePicker wrapper."
87
+ },
88
+ instanceId: {
89
+ attr: "data-component-id",
90
+ sourceProp: "id",
91
+ description: "Sourced from the id prop."
92
+ }
93
+ }
94
+ };
95
+ function Bt(r) {
96
+ try {
97
+ const o = new Intl.DateTimeFormat(r, {
98
+ hour: "numeric"
99
+ }).resolvedOptions();
100
+ return o.hourCycle === "h12" || o.hourCycle === "h11";
101
+ } catch {
102
+ return !1;
103
+ }
104
+ }
105
+ function Ut(r) {
106
+ var o, l;
107
+ try {
108
+ const f = ((o = new Intl.DateTimeFormat(r, {
109
+ hour: "numeric",
110
+ hour12: !0
111
+ }).formatToParts(new Date(2e3, 0, 1, 9)).find((b) => b.type === "dayPeriod")) == null ? void 0 : o.value) ?? "AM", C = ((l = new Intl.DateTimeFormat(r, {
112
+ hour: "numeric",
113
+ hour12: !0
114
+ }).formatToParts(new Date(2e3, 0, 1, 15)).find((b) => b.type === "dayPeriod")) == null ? void 0 : l.value) ?? "PM";
115
+ return { am: f, pm: C };
116
+ } catch {
117
+ return { am: "AM", pm: "PM" };
118
+ }
119
+ }
120
+ function O(r, o, l) {
121
+ return Math.min(l, Math.max(o, r));
122
+ }
123
+ function Qe(r) {
124
+ return Math.floor(59 / r) * r;
125
+ }
126
+ function _t(r, o) {
127
+ const l = Math.round(O(r, 0, 59) / o) * o;
128
+ return O(l, 0, Qe(o));
129
+ }
130
+ function qt(r, o, l) {
131
+ const f = Qe(o);
132
+ if (l === 1) {
133
+ const b = Math.floor(r / o) * o + o;
134
+ return b > f ? 0 : b;
135
+ }
136
+ const C = Math.ceil(r / o) * o - o;
137
+ return C < 0 ? f : C;
138
+ }
139
+ function $t(r) {
140
+ const o = (l) => Number.isFinite(l) ? Math.trunc(l) : 0;
141
+ return {
142
+ hours: O(o(r.hours), 0, 23),
143
+ minutes: O(o(r.minutes), 0, 59)
144
+ };
145
+ }
146
+ function ze(r) {
147
+ return r === 0 ? 12 : r > 12 ? r - 12 : r;
148
+ }
149
+ function We(r, o) {
150
+ return o ? r === 12 ? 12 : r + 12 : r === 12 ? 0 : r;
151
+ }
152
+ const ee = (r) => String(r).padStart(2, "0");
153
+ function Wt(r) {
154
+ r.stopPropagation();
155
+ }
156
+ const Gt = L(
157
+ [
158
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
159
+ "ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-background",
160
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
161
+ "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
162
+ "ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
163
+ "ds:forced-colors:focus-within:outline-[CanvasText]"
164
+ ].join(" "),
165
+ {
166
+ variants: {
167
+ size: {
168
+ sm: "ds:h-8 ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]",
169
+ md: "ds:h-[var(--min-target-size)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:text-[length:var(--font-size-base)]",
170
+ lg: "ds:h-12 ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:text-[length:var(--font-size-lg)]"
171
+ },
172
+ tone: {
173
+ default: "ds:border-[color:var(--control-border)]",
174
+ error: "ds:border-destructive"
175
+ },
176
+ isDisabled: {
177
+ true: "ds:cursor-not-allowed ds:opacity-50",
178
+ false: ""
179
+ },
180
+ /** `dropdown` on and enabled: a click anywhere on the field opens the list. */
181
+ opensOnClick: {
182
+ true: "ds:cursor-pointer",
183
+ false: ""
184
+ }
185
+ },
186
+ defaultVariants: {
187
+ size: "md",
188
+ tone: "default",
189
+ isDisabled: !1,
190
+ opensOnClick: !1
191
+ }
192
+ }
193
+ ), Ge = L(
194
+ [
195
+ "ds:inline-flex ds:items-center ds:justify-center",
196
+ "ds:rounded-[var(--radius-sm)] ds:text-center ds:tabular-nums",
197
+ "ds:bg-transparent ds:text-foreground",
198
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
199
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
200
+ "ds:select-none"
201
+ ].join(" "),
202
+ {
203
+ variants: {
204
+ size: {
205
+ sm: "ds:min-w-6 ds:h-6 ds:text-[length:var(--font-size-sm)]",
206
+ md: "ds:min-w-8 ds:h-8 ds:text-[length:var(--font-size-base)]",
207
+ lg: "ds:min-w-10 ds:h-10 ds:text-[length:var(--font-size-lg)]"
208
+ }
209
+ },
210
+ defaultVariants: { size: "md" }
211
+ }
212
+ ), Xt = L(
213
+ [
214
+ "ds:inline-flex ds:items-center ds:justify-center",
215
+ "ds:rounded-[var(--radius-sm)] ds:text-center",
216
+ "ds:bg-transparent ds:text-foreground ds:cursor-pointer",
217
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
218
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
219
+ "ds:select-none",
220
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
221
+ "ds:hover:bg-muted"
222
+ ].join(" "),
223
+ {
224
+ variants: {
225
+ size: {
226
+ sm: "ds:min-w-8 ds:h-6 ds:text-[length:var(--font-size-sm)] ds:ps-1 ds:pe-1",
227
+ md: "ds:min-w-10 ds:h-8 ds:text-[length:var(--font-size-base)] ds:ps-1.5 ds:pe-1.5",
228
+ lg: "ds:min-w-12 ds:h-10 ds:text-[length:var(--font-size-lg)] ds:ps-2 ds:pe-2"
229
+ }
230
+ },
231
+ defaultVariants: { size: "md" }
232
+ }
233
+ ), Jt = L("ds:text-muted-foreground ds:select-none", {
234
+ variants: {
235
+ size: {
236
+ sm: "ds:text-[length:var(--font-size-sm)]",
237
+ md: "ds:text-[length:var(--font-size-base)]",
238
+ lg: "ds:text-[length:var(--font-size-lg)]"
239
+ }
240
+ },
241
+ defaultVariants: { size: "md" }
242
+ }), Xe = L(
243
+ [
244
+ "ds:relative ds:inline-flex ds:shrink-0 ds:self-stretch ds:items-center ds:justify-center",
245
+ "ds:before:absolute ds:before:inset-x-0 ds:before:-inset-y-px",
246
+ "ds:bg-transparent ds:text-muted-foreground ds:cursor-pointer",
247
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
248
+ "ds:hover:bg-muted ds:hover:text-foreground",
249
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring",
250
+ "ds:focus-visible:[outline-offset:calc(var(--focus-ring-width)*-1)]",
251
+ "ds:forced-colors:focus-visible:outline-[CanvasText]",
252
+ "ds:disabled:cursor-not-allowed ds:disabled:hover:bg-transparent"
253
+ ].join(" "),
254
+ {
255
+ variants: {
256
+ // Only the button that ends the field rounds its inline-end corner.
257
+ trailing: { true: "ds:rounded-e-[var(--radius-sm)]", false: "" },
258
+ size: {
259
+ sm: "ds:min-w-8 ds:[&_svg]:size-4",
260
+ md: "ds:min-w-[var(--min-target-size)] ds:[&_svg]:size-4",
261
+ lg: "ds:min-w-12 ds:[&_svg]:size-5"
262
+ }
263
+ },
264
+ defaultVariants: { size: "md", trailing: !0 },
265
+ compoundVariants: [
266
+ { size: "sm", trailing: !0, className: "ds:-me-[var(--spacing-sm)]" },
267
+ {
268
+ size: ["md", "lg"],
269
+ trailing: !0,
270
+ className: "ds:-me-[var(--spacing-md)]"
271
+ }
272
+ ]
273
+ }
274
+ ), Qt = L(
275
+ [
276
+ "ds:z-[var(--z-popover)] ds:flex ds:rounded-[var(--radius-md)]",
277
+ "ds:border ds:border-border ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-lg)]",
278
+ "ds:p-[var(--spacing-xs)]"
279
+ ].join(" "),
280
+ {
281
+ variants: {
282
+ size: {
283
+ sm: "ds:[--time-picker-option-size:var(--spacing-xl)] ds:text-[length:var(--font-size-sm)]",
284
+ md: "ds:[--time-picker-option-size:var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
285
+ lg: "ds:[--time-picker-option-size:var(--spacing-2xl)] ds:text-[length:var(--font-size-lg)]"
286
+ }
287
+ },
288
+ defaultVariants: { size: "md" }
289
+ }
290
+ ), Yt = L(
291
+ [
292
+ "ds:relative ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
293
+ "ds:max-h-[calc(var(--time-picker-option-size)*6.5)] ds:overflow-y-auto ds:overscroll-contain",
294
+ "ds:p-[var(--spacing-2xs)]"
295
+ ].join(" "),
296
+ {
297
+ variants: {
298
+ separated: {
299
+ true: "ds:border-s ds:border-border",
300
+ false: ""
301
+ }
302
+ },
303
+ defaultVariants: { separated: !1 }
304
+ }
305
+ ), Zt = L(
306
+ [
307
+ "ds:flex ds:shrink-0 ds:items-center ds:justify-center",
308
+ "ds:h-[var(--time-picker-option-size)] ds:min-w-[var(--time-picker-option-size)]",
309
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
310
+ "ds:rounded-[var(--radius-sm)] ds:tabular-nums ds:whitespace-nowrap",
311
+ "ds:cursor-pointer ds:select-none",
312
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
313
+ // Inset ring: the column scrolls, so an outset ring would be clipped.
314
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
315
+ "ds:focus-visible:[outline-offset:calc(var(--focus-ring-width)*-1)]"
316
+ ].join(" "),
317
+ {
318
+ variants: {
319
+ // The kit's selected treatment (the calendar's selected day): solid
320
+ // primary. Paired with aria-selected, so not colour alone.
321
+ selected: {
322
+ true: [
323
+ "ds:bg-primary ds:text-primary-foreground ds:font-semibold ds:hover:bg-primary-hover",
324
+ "ds:focus-visible:outline-primary-foreground",
325
+ "ds:forced-colors:bg-[Highlight] ds:forced-colors:text-[HighlightText]",
326
+ // CanvasText can sit close to Highlight in some contrast themes.
327
+ "ds:forced-colors:focus-visible:outline-[HighlightText]"
328
+ ].join(" "),
329
+ false: [
330
+ "ds:text-foreground ds:hover:bg-muted ds:focus-visible:outline-ring",
331
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
332
+ ].join(" ")
333
+ }
334
+ },
335
+ defaultVariants: { selected: !1 }
336
+ }
337
+ );
338
+ function er({
339
+ columns: r,
340
+ columnRefs: o,
341
+ onPick: l,
342
+ onOptionKeyDown: f
343
+ }) {
344
+ const C = r.map((g) => g.selectedIndex).join(":"), b = d(!1);
345
+ return Je(() => {
346
+ const g = !b.current;
347
+ b.current = !0;
348
+ for (const m of Object.values(o.current)) {
349
+ if (!m) continue;
350
+ const k = m.querySelector('[aria-selected="true"]') ?? m.querySelector('[role="option"][tabindex="0"]');
351
+ if (!k) continue;
352
+ const z = k.offsetTop, x = z + k.offsetHeight, c = z >= m.scrollTop && x <= m.scrollTop + m.clientHeight;
353
+ (g || !c) && (m.scrollTop = z - (m.clientHeight - k.offsetHeight) / 2);
354
+ }
355
+ }, [C, o]), /* @__PURE__ */ v(Lt, { children: r.map((g, m) => /* @__PURE__ */ v(
356
+ "div",
357
+ {
358
+ ref: (k) => {
359
+ o.current[g.key] = k;
360
+ },
361
+ role: "listbox",
362
+ "aria-label": g.label,
363
+ "data-column": g.key,
364
+ className: Yt({ separated: m > 0 }),
365
+ children: g.options.map((k, z) => {
366
+ const x = z === g.selectedIndex;
367
+ return /* @__PURE__ */ v(
368
+ "div",
369
+ {
370
+ role: "option",
371
+ "aria-selected": x,
372
+ tabIndex: z === g.anchorIndex ? 0 : -1,
373
+ "data-value": k.value,
374
+ className: Zt({ selected: x }),
375
+ onClick: () => l(g.key, k.value),
376
+ onKeyDown: (c) => f(c, m, z),
377
+ children: k.label
378
+ },
379
+ k.value
380
+ );
381
+ })
382
+ },
383
+ g.key
384
+ )) });
385
+ }
386
+ const tr = Ht(
387
+ (r, o) => {
388
+ const {
389
+ value: l,
390
+ allowEmpty: f = !1,
391
+ defaultValue: C,
392
+ onChange: b,
393
+ hour12: g,
394
+ minuteStep: m = 1,
395
+ fullWidthSeparator: k = !1,
396
+ periodLabels: z,
397
+ size: x = "md",
398
+ dropdown: c = !1,
399
+ disabled: Ye,
400
+ className: Ze,
401
+ id: et,
402
+ "aria-label": de,
403
+ "aria-labelledby": tt
404
+ } = r, te = r.allowEmpty ? r.onChange : void 0, { t: M, i18n: Me } = Ot("ui"), A = Rt(), rt = Ft(St) !== null, R = Kt(A, et), u = !!(A.disabled || Ye), nt = A.invalid ? "error" : "default", h = g !== void 0 ? g : Bt(Me.language), st = Ut(Me.language), S = z ?? st, fe = l !== void 0, [ot, it] = le(
405
+ l !== void 0 ? l : C !== void 0 ? C : f ? null : { hours: 0, minutes: 0 }
406
+ ), pe = fe ? l : ot, i = ce(
407
+ () => f ? pe : pe ?? { hours: 0, minutes: 0 },
408
+ [f, pe]
409
+ ), K = () => H.current ?? { hours: 0, minutes: 0 }, H = d(i);
410
+ H.current = i;
411
+ const y = U(
412
+ (e) => {
413
+ H.current = e, fe || it(e), e === null ? te == null || te(null) : b == null || b(e);
414
+ },
415
+ [fe, b, te]
416
+ ), _ = d(null), F = d(null), N = d(null), re = d(null), q = d(""), $ = d(""), D = d(null), P = d(null), E = () => {
417
+ q.current = "", D.current && (clearTimeout(D.current), D.current = null);
418
+ }, j = () => {
419
+ $.current = "", P.current && (clearTimeout(P.current), P.current = null);
420
+ };
421
+ Je(() => {
422
+ (l === null || u) && (E(), j());
423
+ }, [l, u]);
424
+ const ne = U(() => {
425
+ q.current = "", $.current = "", D.current && clearTimeout(D.current), P.current && clearTimeout(P.current), D.current = null, P.current = null, y(f ? null : { hours: 0, minutes: 0 });
426
+ }, [f, y]), me = (e) => !f || e.key !== "Backspace" && e.key !== "Delete" ? !1 : (e.preventDefault(), ne(), !0), Ae = (e) => {
427
+ const t = K(), n = O(
428
+ parseInt(e, 10),
429
+ h ? 1 : 0,
430
+ h ? 12 : 23
431
+ );
432
+ y({
433
+ ...t,
434
+ hours: h ? We(n, t.hours >= 12) : n
435
+ });
436
+ }, Le = (e) => {
437
+ y({
438
+ ...K(),
439
+ minutes: _t(parseInt(e, 10), m)
440
+ });
441
+ }, se = () => {
442
+ const e = q.current;
443
+ E(), e && Ae(e);
444
+ }, oe = () => {
445
+ const e = $.current;
446
+ j(), e && Le(e);
447
+ }, he = d({
448
+ hour: se,
449
+ minute: oe
450
+ });
451
+ he.current = { hour: se, minute: oe }, Ce(() => () => {
452
+ D.current && clearTimeout(D.current), P.current && clearTimeout(P.current);
453
+ }, []);
454
+ const at = k ? ":" : ":", ve = M("inputs.timePicker.unset", "No time set"), He = i === null ? "--" : ee(h ? ze(i.hours) : i.hours), Fe = i === null ? "--" : ee(i.minutes), W = ((i == null ? void 0 : i.hours) ?? 0) >= 12, [I, ut] = le(!1), lt = c && I, ge = d(I);
455
+ ge.current = I;
456
+ const T = U((e) => {
457
+ ge.current = e, ut(e);
458
+ }, []), [Ie, ct] = le("ltr"), ie = d("pointer"), be = d("hour"), G = d(null), X = d(!1), J = d(null), ye = d(null), we = d(
459
+ {}
460
+ ), ke = U((e) => {
461
+ var t, n;
462
+ (n = (t = we.current[e]) == null ? void 0 : t.querySelector('[role="option"][tabindex="0"]')) == null || n.focus({ preventScroll: !0 });
463
+ }, []), ae = U(
464
+ (e) => {
465
+ if (e) {
466
+ if (u) return;
467
+ const t = _.current;
468
+ ct(
469
+ t && window.getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr"
470
+ ), X.current = !1;
471
+ }
472
+ T(e);
473
+ },
474
+ [u, T]
475
+ ), Oe = (e, t, n) => {
476
+ if (!(!c || u)) {
477
+ if (ie.current = e, be.current = t, G.current = n, I) {
478
+ e === "keyboard" && ke(t);
479
+ return;
480
+ }
481
+ ae(!0);
482
+ }
483
+ };
484
+ Ce(() => {
485
+ I && (!c || u) && T(!1);
486
+ }, [I, c, u, T]);
487
+ const xe = (e, t) => !c || !e.altKey ? !1 : e.key === "ArrowUp" && I ? (e.preventDefault(), T(!1), !0) : e.key !== "ArrowDown" ? !1 : (e.preventDefault(), se(), oe(), Oe("keyboard", t, e.currentTarget), !0), dt = (e) => {
488
+ var t, n;
489
+ if (!u && !me(e) && !xe(e, "hour")) {
490
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
491
+ e.preventDefault(), E();
492
+ const s = K(), a = e.key === "ArrowUp" ? 1 : -1, w = 23;
493
+ let p = s.hours + a;
494
+ p < 0 && (p = w), p > w && (p = 0), y({ ...s, hours: p });
495
+ return;
496
+ }
497
+ if (e.key === "Tab" && !e.shiftKey) {
498
+ e.preventDefault(), (t = N.current) == null || t.focus();
499
+ return;
500
+ }
501
+ if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
502
+ e.preventDefault(), D.current && clearTimeout(D.current);
503
+ const s = q.current + e.key;
504
+ s.length >= 2 || parseInt(s, 10) > (h ? 1 : 2) ? (E(), Ae(s), (n = N.current) == null || n.focus()) : (q.current = s, D.current = setTimeout(
505
+ () => he.current.hour(),
506
+ 1e3
507
+ ));
508
+ }
509
+ }
510
+ }, ft = (e) => {
511
+ var t, n, s;
512
+ if (!u && !me(e) && !xe(e, "minute")) {
513
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
514
+ e.preventDefault(), j();
515
+ const a = K();
516
+ y({
517
+ ...a,
518
+ minutes: qt(
519
+ a.minutes,
520
+ m,
521
+ e.key === "ArrowUp" ? 1 : -1
522
+ )
523
+ });
524
+ return;
525
+ }
526
+ if (e.key === "Tab" && !e.shiftKey && h) {
527
+ e.preventDefault(), (t = re.current) == null || t.focus();
528
+ return;
529
+ }
530
+ if (e.key === "Tab" && e.shiftKey) {
531
+ e.preventDefault(), (n = F.current) == null || n.focus();
532
+ return;
533
+ }
534
+ if (e.key.length === 1 && e.key >= "0" && e.key <= "9") {
535
+ e.preventDefault(), P.current && clearTimeout(P.current);
536
+ const a = $.current + e.key;
537
+ a.length >= 2 || parseInt(a, 10) > 5 ? (j(), Le(a), h && ((s = re.current) == null || s.focus())) : ($.current = a, P.current = setTimeout(
538
+ () => he.current.minute(),
539
+ 1e3
540
+ ));
541
+ }
542
+ }
543
+ }, pt = (e) => {
544
+ var s;
545
+ if (u || me(e) || xe(e, "period")) return;
546
+ const t = K(), n = t.hours >= 12;
547
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
548
+ e.preventDefault();
549
+ const a = n ? t.hours - 12 : t.hours + 12;
550
+ y({ ...t, hours: O(a, 0, 23) });
551
+ return;
552
+ }
553
+ if (e.key === "Tab" && e.shiftKey) {
554
+ e.preventDefault(), (s = N.current) == null || s.focus();
555
+ return;
556
+ }
557
+ (e.key === "a" || e.key === "A") && (e.preventDefault(), (H.current === null || n) && y({ ...t, hours: n ? t.hours - 12 : t.hours })), (e.key === "p" || e.key === "P") && (e.preventDefault(), n || y({ ...t, hours: t.hours + 12 }));
558
+ }, mt = () => {
559
+ se();
560
+ }, ht = () => {
561
+ oe();
562
+ }, Re = M("inputs.timePicker.hour", "Hour"), Se = M("inputs.timePicker.minute", "Minute"), Ke = M("inputs.timePicker.period", "Period"), vt = M("inputs.timePicker.groupLabel", "Time"), gt = M(
563
+ "inputs.timePicker.openDropdown",
564
+ "Choose time"
565
+ ), De = `${A.id}-label`, ue = rt && !!A.label, [bt, Ne] = le(!0), Pe = tt ?? (!de && ue && bt ? De : void 0), Ee = Pe ? void 0 : de ?? vt, je = de ?? (ue ? A.label : void 0), yt = je ? M("inputs.timePicker.clearNamed", { label: je }) : M("inputs.text.clear");
566
+ Ce(() => {
567
+ var w;
568
+ if (!ue) return;
569
+ const e = (w = _.current) == null ? void 0 : w.getRootNode(), t = e instanceof Document || e instanceof ShadowRoot ? e.getElementById(De) : null;
570
+ if (!(t instanceof HTMLLabelElement)) {
571
+ Ne(!1);
572
+ return;
573
+ }
574
+ const n = () => Ne(t.htmlFor === R);
575
+ n();
576
+ const s = new MutationObserver(n);
577
+ s.observe(t, { attributes: !0, attributeFilter: ["for"] });
578
+ const a = () => {
579
+ var p;
580
+ t.htmlFor !== R || u || (p = F.current) == null || p.focus();
581
+ };
582
+ return t.addEventListener("click", a), () => {
583
+ s.disconnect(), t.removeEventListener("click", a);
584
+ };
585
+ }, [ue, De, R, u]);
586
+ const Ve = ce(
587
+ () => Array.from(
588
+ { length: h ? 12 : 24 },
589
+ (e, t) => h ? t + 1 : t
590
+ ).map((e) => ({ value: e, label: ee(e) })),
591
+ [h]
592
+ ), Te = ce(() => {
593
+ const e = [];
594
+ for (let t = 0; t <= 59; t += m)
595
+ e.push({ value: t, label: ee(t) });
596
+ return e;
597
+ }, [m]), V = [];
598
+ if (c) {
599
+ const e = Ve.findIndex(
600
+ (n) => n.value === (i === null ? void 0 : h ? ze(i.hours) : i.hours)
601
+ );
602
+ V.push({
603
+ key: "hour",
604
+ label: Re,
605
+ options: Ve,
606
+ selectedIndex: e,
607
+ anchorIndex: Math.max(e, 0)
608
+ });
609
+ const t = Te.findIndex(
610
+ (n) => n.value === (i == null ? void 0 : i.minutes)
611
+ );
612
+ V.push({
613
+ key: "minute",
614
+ label: Se,
615
+ options: Te,
616
+ selectedIndex: t,
617
+ anchorIndex: t >= 0 ? t : O(
618
+ Math.floor(((i == null ? void 0 : i.minutes) ?? 0) / m),
619
+ 0,
620
+ Te.length - 1
621
+ )
622
+ }), h && V.push({
623
+ key: "period",
624
+ label: Ke,
625
+ options: [
626
+ { value: 0, label: S.am },
627
+ { value: 1, label: S.pm }
628
+ ],
629
+ selectedIndex: i === null ? -1 : W ? 1 : 0,
630
+ anchorIndex: W ? 1 : 0
631
+ });
632
+ }
633
+ const Be = (e, t) => {
634
+ var s;
635
+ E(), j();
636
+ const n = K();
637
+ if (e === "hour") {
638
+ const a = h ? We(t, n.hours >= 12) : t;
639
+ (H.current === null || a !== n.hours) && y({ ...n, hours: a });
640
+ return;
641
+ }
642
+ if (e === "period") {
643
+ const a = t === 1;
644
+ (H.current === null || a !== n.hours >= 12) && y({ ...n, hours: n.hours % 12 + (a ? 12 : 0) });
645
+ return;
646
+ }
647
+ (H.current === null || t !== n.minutes) && y({ ...n, minutes: t }), (s = N.current) == null || s.focus(), T(!1);
648
+ }, wt = (e, t, n) => {
649
+ var p, Q, _e;
650
+ const s = V[t];
651
+ if (!s) return;
652
+ const a = s.options.length - 1, w = (B) => {
653
+ var Y, qe;
654
+ (qe = (Y = we.current[s.key]) == null ? void 0 : Y.querySelectorAll('[role="option"]')[B]) == null || qe.focus();
655
+ };
656
+ if (e.altKey && e.key === "ArrowUp") {
657
+ e.preventDefault(), (p = G.current) == null || p.focus(), T(!1);
658
+ return;
659
+ }
660
+ switch (e.key) {
661
+ case "ArrowDown":
662
+ e.preventDefault(), w(Math.min(n + 1, a));
663
+ break;
664
+ case "ArrowUp":
665
+ e.preventDefault(), w(Math.max(n - 1, 0));
666
+ break;
667
+ case "Home":
668
+ e.preventDefault(), w(0);
669
+ break;
670
+ case "End":
671
+ e.preventDefault(), w(a);
672
+ break;
673
+ case "ArrowLeft":
674
+ case "ArrowRight": {
675
+ e.preventDefault();
676
+ const B = e.key === "ArrowRight" == (Ie === "ltr"), Y = V[t + (B ? 1 : -1)];
677
+ Y && ke(Y.key);
678
+ break;
679
+ }
680
+ case "Enter":
681
+ case " ": {
682
+ e.preventDefault();
683
+ const B = s.options[n];
684
+ B && Be(s.key, B.value);
685
+ break;
686
+ }
687
+ case "Tab":
688
+ X.current = !0, e.shiftKey ? (Q = F.current) == null || Q.focus() : (_e = ye.current) == null || _e.focus(), T(!1);
689
+ break;
690
+ }
691
+ }, kt = (e) => {
692
+ var a, w;
693
+ if (!c || u) return;
694
+ const t = e.target;
695
+ if (!(t instanceof Node) || (a = ye.current) != null && a.contains(t)) return;
696
+ const n = [F.current, N.current, re.current];
697
+ let s = n.find((p) => p == null ? void 0 : p.contains(t)) ?? null;
698
+ if (!s) {
699
+ const p = (w = t.ownerDocument) == null ? void 0 : w.activeElement;
700
+ s = n.find((Q) => Q && Q === p) ?? F.current, s && s !== p && s.focus();
701
+ }
702
+ Oe("pointer", "hour", s);
703
+ }, xt = (e) => {
704
+ ie.current = e.detail === 0 ? "keyboard" : "pointer", be.current = "hour", G.current = e.currentTarget;
705
+ }, Dt = (e) => {
706
+ e.preventDefault(), ie.current === "keyboard" && ke(be.current);
707
+ }, Pt = (e) => {
708
+ var s;
709
+ e.preventDefault();
710
+ const t = X.current;
711
+ if (X.current = !1, t) return;
712
+ const n = document.activeElement;
713
+ (!n || n === document.body) && ((s = G.current) == null || s.focus());
714
+ }, Tt = (e) => {
715
+ var n;
716
+ const t = e.target;
717
+ if (t instanceof Node && ((n = _.current) != null && n.contains(t))) {
718
+ e.preventDefault();
719
+ return;
720
+ }
721
+ X.current = !0;
722
+ }, Ct = () => {
723
+ var e, t;
724
+ (e = J.current) != null && e.contains(document.activeElement) && ((t = G.current) == null || t.focus());
725
+ }, zt = U((e) => {
726
+ var n, s;
727
+ const t = Wt;
728
+ (n = J.current) == null || n.removeEventListener("wheel", t), (s = J.current) == null || s.removeEventListener("touchmove", t), J.current = e, e == null || e.addEventListener("wheel", t, { passive: !0 }), e == null || e.addEventListener("touchmove", t, { passive: !0 });
729
+ }, []), Mt = (e) => {
730
+ var t;
731
+ (t = J.current) != null && t.contains(document.activeElement) || e.preventDefault();
732
+ }, At = ce(
733
+ () => ({
734
+ getValue: () => i,
735
+ setValue: (e) => y($t(e)),
736
+ clear: ne,
737
+ isOpen: () => c && ge.current,
738
+ open: () => {
739
+ !c || u || (ie.current = "pointer", ae(!0));
740
+ },
741
+ close: () => {
742
+ c && T(!1);
743
+ }
744
+ }),
745
+ [
746
+ i,
747
+ y,
748
+ ne,
749
+ c,
750
+ u,
751
+ ae,
752
+ T
753
+ ]
754
+ );
755
+ It(o, () => _.current, []), Nt(Vt, At, R);
756
+ const Ue = (
757
+ // eslint-disable-next-line jsx-a11y/role-supports-aria-props, jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions -- aria-invalid is a global ARIA state conveying group-level validation; the click is a pointer shortcut to the list, which the keyboard opens with Alt+ArrowDown or the clock button
758
+ /* @__PURE__ */ $e(
759
+ "div",
760
+ {
761
+ ref: _,
762
+ id: R,
763
+ role: "group",
764
+ "aria-label": Ee,
765
+ "aria-labelledby": Pe,
766
+ "aria-describedby": A.describedBy || void 0,
767
+ "aria-invalid": A.invalid || void 0,
768
+ "aria-disabled": u || void 0,
769
+ "data-component": "time-picker",
770
+ "data-component-id": R,
771
+ className: Gt({
772
+ size: x,
773
+ tone: nt,
774
+ isDisabled: u,
775
+ opensOnClick: c && !u,
776
+ className: Ze
777
+ }),
778
+ onClick: c ? kt : void 0,
779
+ children: [
780
+ /* @__PURE__ */ v(
781
+ "span",
782
+ {
783
+ ref: F,
784
+ role: "spinbutton",
785
+ "aria-disabled": u || void 0,
786
+ "aria-label": Re,
787
+ "aria-valuemin": h ? 1 : 0,
788
+ "aria-valuemax": h ? 12 : 23,
789
+ "aria-valuenow": i === null ? void 0 : h ? ze(i.hours) : i.hours,
790
+ "aria-valuetext": i === null ? ve : He,
791
+ "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
792
+ tabIndex: u ? -1 : 0,
793
+ inputMode: "numeric",
794
+ onKeyDown: dt,
795
+ onBlur: mt,
796
+ className: Ge({ size: x }),
797
+ children: He
798
+ }
799
+ ),
800
+ /* @__PURE__ */ v("span", { "aria-hidden": "true", className: Jt({ size: x }), children: at }),
801
+ /* @__PURE__ */ v(
802
+ "span",
803
+ {
804
+ ref: N,
805
+ role: "spinbutton",
806
+ "aria-disabled": u || void 0,
807
+ "aria-label": Se,
808
+ "aria-valuemin": 0,
809
+ "aria-valuemax": 59,
810
+ "aria-valuenow": i == null ? void 0 : i.minutes,
811
+ "aria-valuetext": i === null ? ve : Fe,
812
+ "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
813
+ tabIndex: u ? -1 : 0,
814
+ inputMode: "numeric",
815
+ onKeyDown: ft,
816
+ onBlur: ht,
817
+ className: Ge({ size: x }),
818
+ children: Fe
819
+ }
820
+ ),
821
+ h ? /* @__PURE__ */ v(
822
+ "span",
823
+ {
824
+ ref: re,
825
+ role: "spinbutton",
826
+ "aria-disabled": u || void 0,
827
+ "aria-label": Ke,
828
+ "aria-valuemin": 0,
829
+ "aria-valuemax": 1,
830
+ "aria-valuenow": i === null ? void 0 : W ? 1 : 0,
831
+ "aria-valuetext": i === null ? ve : W ? S.pm : S.am,
832
+ "aria-keyshortcuts": c ? "Alt+ArrowDown" : void 0,
833
+ tabIndex: u ? -1 : 0,
834
+ onKeyDown: pt,
835
+ className: Xt({ size: x }),
836
+ children: i === null ? "--" : W ? S.pm : S.am
837
+ }
838
+ ) : null,
839
+ f ? /* @__PURE__ */ v(
840
+ "button",
841
+ {
842
+ type: "button",
843
+ "aria-label": yt,
844
+ disabled: u || i === null,
845
+ onPointerDown: (e) => {
846
+ e.preventDefault(), E(), j();
847
+ },
848
+ onClick: (e) => {
849
+ var t;
850
+ e.stopPropagation(), ne(), (t = F.current) == null || t.focus();
851
+ },
852
+ className: Xe({
853
+ size: x,
854
+ trailing: !c,
855
+ className: i === null ? "ds:invisible" : void 0
856
+ }),
857
+ children: /* @__PURE__ */ v(Et, { "aria-hidden": "true" })
858
+ }
859
+ ) : null,
860
+ c ? /* @__PURE__ */ v(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ v(
861
+ "button",
862
+ {
863
+ ref: ye,
864
+ type: "button",
865
+ "aria-label": gt,
866
+ disabled: u,
867
+ onClick: xt,
868
+ className: Xe({ size: x }),
869
+ children: /* @__PURE__ */ v(jt, { "aria-hidden": "true" })
870
+ }
871
+ ) }) : null
872
+ ]
873
+ }
874
+ )
875
+ );
876
+ return c ? /* @__PURE__ */ $e(Z.Root, { open: lt, onOpenChange: ae, children: [
877
+ /* @__PURE__ */ v(Z.Anchor, { asChild: !0, children: Ue }),
878
+ /* @__PURE__ */ v(Z.Portal, { children: /* @__PURE__ */ v(
879
+ Z.Content,
880
+ {
881
+ ref: zt,
882
+ side: "bottom",
883
+ align: "start",
884
+ sideOffset: 4,
885
+ dir: Ie,
886
+ "data-component": "time-picker-dropdown",
887
+ "aria-label": Ee,
888
+ "aria-labelledby": Pe,
889
+ className: Qt({ size: x }),
890
+ onOpenAutoFocus: Dt,
891
+ onCloseAutoFocus: Pt,
892
+ onInteractOutside: Tt,
893
+ onEscapeKeyDown: Ct,
894
+ onMouseDown: Mt,
895
+ children: /* @__PURE__ */ v(
896
+ er,
897
+ {
898
+ columns: V,
899
+ columnRefs: we,
900
+ onPick: Be,
901
+ onOptionKeyDown: wt
902
+ }
903
+ )
904
+ }
905
+ ) })
906
+ ] }) : Ue;
907
+ }
908
+ );
909
+ tr.displayName = "TimePicker";
910
+ export {
911
+ tr as T,
912
+ Vt as t
913
+ };
914
+ //# sourceMappingURL=time-picker-DSt-ns5F.js.map