@alfadocs/ui-kit-debug 1.6.1 → 1.8.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 (240) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-F-cCmFAn.js → anamnesis-summary-rows-d44s_whc.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-F-cCmFAn.js.map → anamnesis-summary-rows-d44s_whc.js.map} +1 -1
  3. package/dist/_chunks/{antenatal-schedule-timeline-BjlF2rTz.js → antenatal-schedule-timeline-B1k8QkA6.js} +3 -3
  4. package/dist/_chunks/{antenatal-schedule-timeline-BjlF2rTz.js.map → antenatal-schedule-timeline-B1k8QkA6.js.map} +1 -1
  5. package/dist/_chunks/{appointment-card-BhcPJpXh.js → appointment-card-Dzr3GeVz.js} +73 -90
  6. package/dist/_chunks/appointment-card-Dzr3GeVz.js.map +1 -0
  7. package/dist/_chunks/{appointment-timeline-CMPvzlGZ.js → appointment-timeline-0mwtpErq.js} +3 -3
  8. package/dist/_chunks/{appointment-timeline-CMPvzlGZ.js.map → appointment-timeline-0mwtpErq.js.map} +1 -1
  9. package/dist/_chunks/{appointment-tray-3c_FLxXJ.js → appointment-tray-4FUu_5NX.js} +2 -2
  10. package/dist/_chunks/{appointment-tray-3c_FLxXJ.js.map → appointment-tray-4FUu_5NX.js.map} +1 -1
  11. package/dist/_chunks/armchair-BaLDW6Hz.js +23 -0
  12. package/dist/_chunks/armchair-BaLDW6Hz.js.map +1 -0
  13. package/dist/_chunks/{booking-CQMJUFG-.js → booking-DHkKcUIl.js} +4 -4
  14. package/dist/_chunks/{booking-CQMJUFG-.js.map → booking-DHkKcUIl.js.map} +1 -1
  15. package/dist/_chunks/{calendar-4dXTvsCz.js → calendar-B4Gnyu1C.js} +553 -437
  16. package/dist/_chunks/calendar-B4Gnyu1C.js.map +1 -0
  17. package/dist/_chunks/calendar-event-card-Bjdbik8G.js +425 -0
  18. package/dist/_chunks/calendar-event-card-Bjdbik8G.js.map +1 -0
  19. package/dist/_chunks/{care-plan-card-DQjVRDxO.js → care-plan-card-aDN4oem9.js} +3 -3
  20. package/dist/_chunks/{care-plan-card-DQjVRDxO.js.map → care-plan-card-aDN4oem9.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-entry-card-CMpoeNkb.js → care-plan-entry-card-BEhANdBE.js} +2 -2
  22. package/dist/_chunks/{care-plan-entry-card-CMpoeNkb.js.map → care-plan-entry-card-BEhANdBE.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-header-CxYoq23f.js → care-plan-header-CkpPyQqG.js} +2 -2
  24. package/dist/_chunks/{care-plan-header-CxYoq23f.js.map → care-plan-header-CkpPyQqG.js.map} +1 -1
  25. package/dist/_chunks/{color-picker-D-tUwxxT.js → color-picker-oZ6zYks8.js} +164 -151
  26. package/dist/_chunks/color-picker-oZ6zYks8.js.map +1 -0
  27. package/dist/_chunks/control-room-rail-Cj2iX9h_.js +337 -0
  28. package/dist/_chunks/control-room-rail-Cj2iX9h_.js.map +1 -0
  29. package/dist/_chunks/{cycle-calculator-DzgO1vzP.js → cycle-calculator-DmtYGhqq.js} +3 -3
  30. package/dist/_chunks/{cycle-calculator-DzgO1vzP.js.map → cycle-calculator-DmtYGhqq.js.map} +1 -1
  31. package/dist/_chunks/{date-picker-Bp64zk2p.js → date-picker-CepI_oI2.js} +77 -74
  32. package/dist/_chunks/date-picker-CepI_oI2.js.map +1 -0
  33. package/dist/_chunks/{date-picker-variants-pKAJfnWr.js → date-picker-variants-DfuooXEK.js} +7 -2
  34. package/dist/_chunks/{date-picker-variants-pKAJfnWr.js.map → date-picker-variants-DfuooXEK.js.map} +1 -1
  35. package/dist/_chunks/{date-range-picker-CDrZ8Zh0.js → date-range-picker-BD8P_rJq.js} +46 -45
  36. package/dist/_chunks/{date-range-picker-CDrZ8Zh0.js.map → date-range-picker-BD8P_rJq.js.map} +1 -1
  37. package/dist/_chunks/{date-time-picker-DVETwpzc.js → date-time-picker-3I2vVKGV.js} +2 -2
  38. package/dist/_chunks/{date-time-picker-DVETwpzc.js.map → date-time-picker-3I2vVKGV.js.map} +1 -1
  39. package/dist/_chunks/{due-date-calculator-wK8Tajzz.js → due-date-calculator-BF_Ikofx.js} +4 -4
  40. package/dist/_chunks/{due-date-calculator-wK8Tajzz.js.map → due-date-calculator-BF_Ikofx.js.map} +1 -1
  41. package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
  42. package/dist/_chunks/{entity-card-9_62gY7l.js.map → entity-card-DmrgYSEX.js.map} +1 -1
  43. package/dist/_chunks/{gestational-age-calculator-C_uDAeP_.js → gestational-age-calculator-CxZelpu2.js} +5 -5
  44. package/dist/_chunks/{gestational-age-calculator-C_uDAeP_.js.map → gestational-age-calculator-CxZelpu2.js.map} +1 -1
  45. package/dist/_chunks/{hcg-doubling-BaXkJhT-.js → hcg-doubling-CpU7H5rQ.js} +3 -3
  46. package/dist/_chunks/{hcg-doubling-BaXkJhT-.js.map → hcg-doubling-CpU7H5rQ.js.map} +1 -1
  47. package/dist/_chunks/{link-cell-renderer-DH4JYpKU.js → link-cell-renderer-BZQtsuFz.js} +2 -2
  48. package/dist/_chunks/{link-cell-renderer-DH4JYpKU.js.map → link-cell-renderer-BZQtsuFz.js.map} +1 -1
  49. package/dist/_chunks/{notes-panel-DlnENphf.js → notes-panel-e9cJWVRg.js} +2 -2
  50. package/dist/_chunks/{notes-panel-DlnENphf.js.map → notes-panel-e9cJWVRg.js.map} +1 -1
  51. package/dist/_chunks/{operator-hero-CCDnIa1S.js → operator-hero-BnFv-Uef.js} +2 -2
  52. package/dist/_chunks/{operator-hero-CCDnIa1S.js.map → operator-hero-BnFv-Uef.js.map} +1 -1
  53. package/dist/_chunks/{parse-JqixfsU0.js → parse-MN9bGkrY.js} +2 -2
  54. package/dist/_chunks/{parse-JqixfsU0.js.map → parse-MN9bGkrY.js.map} +1 -1
  55. package/dist/_chunks/{patient-details-qnsqYBGQ.js → patient-details-xrqe13az.js} +160 -159
  56. package/dist/_chunks/patient-details-xrqe13az.js.map +1 -0
  57. package/dist/_chunks/{patient-table-DwshfVsQ.js → patient-table-BqYomX50.js} +2 -2
  58. package/dist/_chunks/{patient-table-DwshfVsQ.js.map → patient-table-BqYomX50.js.map} +1 -1
  59. package/dist/_chunks/{payment-automation-upsell-BBIG7NFL.js → payment-automation-upsell-DwQW2fRp.js} +52 -63
  60. package/dist/_chunks/payment-automation-upsell-DwQW2fRp.js.map +1 -0
  61. package/dist/_chunks/{payment-request-card-BjjBMdsp.js → payment-request-card-YVCcCZ25.js} +2 -2
  62. package/dist/_chunks/{payment-request-card-BjjBMdsp.js.map → payment-request-card-YVCcCZ25.js.map} +1 -1
  63. package/dist/_chunks/{practice-results-F_Rf7c4H.js → practice-results-BEsAdW-B.js} +719 -633
  64. package/dist/_chunks/practice-results-BEsAdW-B.js.map +1 -0
  65. package/dist/_chunks/{pregnancy-dating-BVS_9YU2.js → pregnancy-dating-DtToyMyc.js} +5 -5
  66. package/dist/_chunks/{pregnancy-dating-BVS_9YU2.js.map → pregnancy-dating-DtToyMyc.js.map} +1 -1
  67. package/dist/_chunks/{radiograph-panel.agent-CiHwgISa.js → radiograph-panel.agent-C3trfWqB.js} +3 -3
  68. package/dist/_chunks/{radiograph-panel.agent-CiHwgISa.js.map → radiograph-panel.agent-C3trfWqB.js.map} +1 -1
  69. package/dist/_chunks/repeat-CvQa5rZt.js +17 -0
  70. package/dist/_chunks/repeat-CvQa5rZt.js.map +1 -0
  71. package/dist/_chunks/resource-chip-DYTG0IQQ.js +83 -0
  72. package/dist/_chunks/resource-chip-DYTG0IQQ.js.map +1 -0
  73. package/dist/_chunks/{rich-text-editor-DARnq_6N.js → rich-text-editor-BDfFtK4H.js} +2 -2
  74. package/dist/_chunks/{rich-text-editor-DARnq_6N.js.map → rich-text-editor-BDfFtK4H.js.map} +1 -1
  75. package/dist/_chunks/subDays-BLl3y3pd.js +8 -0
  76. package/dist/_chunks/{subDays-CAUv47M1.js.map → subDays-BLl3y3pd.js.map} +1 -1
  77. package/dist/agent-catalog.json +3 -3
  78. package/dist/components/_shared/date-picker-variants.d.ts.map +1 -1
  79. package/dist/components/appointment-card/index.js +2 -2
  80. package/dist/components/appointment-timeline/index.js +1 -1
  81. package/dist/components/booking/index.js +1 -1
  82. package/dist/components/calendar/calendar.agent.d.ts.map +1 -1
  83. package/dist/components/calendar/calendar.d.ts +138 -12
  84. package/dist/components/calendar/calendar.d.ts.map +1 -1
  85. package/dist/components/calendar/index.js +1 -1
  86. package/dist/components/calendar-event-card/calendar-event-card.d.ts +48 -11
  87. package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
  88. package/dist/components/calendar-event-card/index.js +1 -1
  89. package/dist/components/care-plan-card/index.js +1 -1
  90. package/dist/components/care-plan-entry-card/index.js +1 -1
  91. package/dist/components/care-plan-header/index.js +1 -1
  92. package/dist/components/color-picker/index.d.ts +1 -1
  93. package/dist/components/color-picker/index.d.ts.map +1 -1
  94. package/dist/components/color-picker/index.js +4 -3
  95. package/dist/components/color-picker/palettes.d.ts +10 -0
  96. package/dist/components/color-picker/palettes.d.ts.map +1 -1
  97. package/dist/components/control-room-rail/control-room-rail.d.ts +9 -0
  98. package/dist/components/control-room-rail/control-room-rail.d.ts.map +1 -1
  99. package/dist/components/control-room-rail/index.js +1 -1
  100. package/dist/components/cycle-calculator/index.js +1 -1
  101. package/dist/components/data-table/index.js +1 -1
  102. package/dist/components/date-picker/date-picker.d.ts +11 -0
  103. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  104. package/dist/components/date-picker/index.js +1 -1
  105. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  106. package/dist/components/date-range-picker/index.js +1 -1
  107. package/dist/components/date-time-picker/index.js +1 -1
  108. package/dist/components/due-date-calculator/index.js +2 -2
  109. package/dist/components/gestational-age-calculator/index.js +1 -1
  110. package/dist/components/hcg-doubling/index.js +1 -1
  111. package/dist/components/index.d.ts +1 -0
  112. package/dist/components/index.d.ts.map +1 -1
  113. package/dist/components/notes-panel/index.js +1 -1
  114. package/dist/components/operator-hero/index.js +1 -1
  115. package/dist/components/patient-details/index.js +1 -1
  116. package/dist/components/patient-details/patient-details.d.ts +8 -0
  117. package/dist/components/patient-details/patient-details.d.ts.map +1 -1
  118. package/dist/components/patient-table/index.js +1 -1
  119. package/dist/components/payment-card/index.js +1 -1
  120. package/dist/components/practice-results/index.js +1 -1
  121. package/dist/components/practice-results/practice-results.d.ts +47 -7
  122. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  123. package/dist/components/pregnancy-dating/index.js +1 -1
  124. package/dist/components/radiograph-panel/index.js +1 -1
  125. package/dist/components/resource-chip/index.d.ts +3 -0
  126. package/dist/components/resource-chip/index.d.ts.map +1 -0
  127. package/dist/components/resource-chip/index.js +5 -0
  128. package/dist/components/resource-chip/index.js.map +1 -0
  129. package/dist/components/resource-chip/resource-chip.d.ts +26 -0
  130. package/dist/components/resource-chip/resource-chip.d.ts.map +1 -0
  131. package/dist/components/rich-text-editor/index.js +1 -1
  132. package/dist/host-compat.css +7 -1
  133. package/dist/i18n/locales/ar.d.ts +5 -0
  134. package/dist/i18n/locales/ar.d.ts.map +1 -1
  135. package/dist/i18n/locales/ar.js +6 -1
  136. package/dist/i18n/locales/ar.js.map +1 -1
  137. package/dist/i18n/locales/de.d.ts +5 -0
  138. package/dist/i18n/locales/de.d.ts.map +1 -1
  139. package/dist/i18n/locales/de.js +6 -1
  140. package/dist/i18n/locales/de.js.map +1 -1
  141. package/dist/i18n/locales/el.d.ts +5 -0
  142. package/dist/i18n/locales/el.d.ts.map +1 -1
  143. package/dist/i18n/locales/el.js +6 -1
  144. package/dist/i18n/locales/el.js.map +1 -1
  145. package/dist/i18n/locales/en.d.ts +5 -0
  146. package/dist/i18n/locales/en.d.ts.map +1 -1
  147. package/dist/i18n/locales/en.js +6 -1
  148. package/dist/i18n/locales/en.js.map +1 -1
  149. package/dist/i18n/locales/es.d.ts +5 -0
  150. package/dist/i18n/locales/es.d.ts.map +1 -1
  151. package/dist/i18n/locales/es.js +6 -1
  152. package/dist/i18n/locales/es.js.map +1 -1
  153. package/dist/i18n/locales/fr.d.ts +5 -0
  154. package/dist/i18n/locales/fr.d.ts.map +1 -1
  155. package/dist/i18n/locales/fr.js +6 -1
  156. package/dist/i18n/locales/fr.js.map +1 -1
  157. package/dist/i18n/locales/hi.d.ts +5 -0
  158. package/dist/i18n/locales/hi.d.ts.map +1 -1
  159. package/dist/i18n/locales/hi.js +6 -1
  160. package/dist/i18n/locales/hi.js.map +1 -1
  161. package/dist/i18n/locales/it.d.ts +5 -0
  162. package/dist/i18n/locales/it.d.ts.map +1 -1
  163. package/dist/i18n/locales/it.js +6 -1
  164. package/dist/i18n/locales/it.js.map +1 -1
  165. package/dist/i18n/locales/ja.d.ts +5 -0
  166. package/dist/i18n/locales/ja.d.ts.map +1 -1
  167. package/dist/i18n/locales/ja.js +6 -1
  168. package/dist/i18n/locales/ja.js.map +1 -1
  169. package/dist/i18n/locales/nl.d.ts +5 -0
  170. package/dist/i18n/locales/nl.d.ts.map +1 -1
  171. package/dist/i18n/locales/nl.js +6 -1
  172. package/dist/i18n/locales/nl.js.map +1 -1
  173. package/dist/i18n/locales/pl.d.ts +5 -0
  174. package/dist/i18n/locales/pl.d.ts.map +1 -1
  175. package/dist/i18n/locales/pl.js +6 -1
  176. package/dist/i18n/locales/pl.js.map +1 -1
  177. package/dist/i18n/locales/pt.d.ts +5 -0
  178. package/dist/i18n/locales/pt.d.ts.map +1 -1
  179. package/dist/i18n/locales/pt.js +6 -1
  180. package/dist/i18n/locales/pt.js.map +1 -1
  181. package/dist/i18n/locales/ro.d.ts +5 -0
  182. package/dist/i18n/locales/ro.d.ts.map +1 -1
  183. package/dist/i18n/locales/ro.js +6 -1
  184. package/dist/i18n/locales/ro.js.map +1 -1
  185. package/dist/i18n/locales/ru.d.ts +5 -0
  186. package/dist/i18n/locales/ru.d.ts.map +1 -1
  187. package/dist/i18n/locales/ru.js +6 -1
  188. package/dist/i18n/locales/ru.js.map +1 -1
  189. package/dist/i18n/locales/sq.d.ts +5 -0
  190. package/dist/i18n/locales/sq.d.ts.map +1 -1
  191. package/dist/i18n/locales/sq.js +6 -1
  192. package/dist/i18n/locales/sq.js.map +1 -1
  193. package/dist/i18n/locales/sv.d.ts +5 -0
  194. package/dist/i18n/locales/sv.d.ts.map +1 -1
  195. package/dist/i18n/locales/sv.js +6 -1
  196. package/dist/i18n/locales/sv.js.map +1 -1
  197. package/dist/i18n/locales/tr.d.ts +5 -0
  198. package/dist/i18n/locales/tr.d.ts.map +1 -1
  199. package/dist/i18n/locales/tr.js +6 -1
  200. package/dist/i18n/locales/tr.js.map +1 -1
  201. package/dist/i18n/locales/zh.d.ts +5 -0
  202. package/dist/i18n/locales/zh.d.ts.map +1 -1
  203. package/dist/i18n/locales/zh.js +6 -1
  204. package/dist/i18n/locales/zh.js.map +1 -1
  205. package/dist/index.js +961 -958
  206. package/dist/index.js.map +1 -1
  207. package/dist/locales/ar.json +6 -1
  208. package/dist/locales/de.json +6 -1
  209. package/dist/locales/el.json +6 -1
  210. package/dist/locales/en.json +6 -1
  211. package/dist/locales/es.json +6 -1
  212. package/dist/locales/fr.json +6 -1
  213. package/dist/locales/hi.json +6 -1
  214. package/dist/locales/it.json +6 -1
  215. package/dist/locales/ja.json +6 -1
  216. package/dist/locales/nl.json +6 -1
  217. package/dist/locales/pl.json +6 -1
  218. package/dist/locales/pt.json +6 -1
  219. package/dist/locales/ro.json +6 -1
  220. package/dist/locales/ru.json +6 -1
  221. package/dist/locales/sq.json +6 -1
  222. package/dist/locales/sv.json +6 -1
  223. package/dist/locales/tr.json +6 -1
  224. package/dist/locales/zh.json +6 -1
  225. package/dist/patterns/anamnesis/index.js +1 -1
  226. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  227. package/dist/tokens.css +40 -24
  228. package/package.json +5 -1
  229. package/dist/_chunks/appointment-card-BhcPJpXh.js.map +0 -1
  230. package/dist/_chunks/calendar-4dXTvsCz.js.map +0 -1
  231. package/dist/_chunks/calendar-event-card-C6qGtywL.js +0 -257
  232. package/dist/_chunks/calendar-event-card-C6qGtywL.js.map +0 -1
  233. package/dist/_chunks/color-picker-D-tUwxxT.js.map +0 -1
  234. package/dist/_chunks/control-room-rail-IH1eBjrK.js +0 -333
  235. package/dist/_chunks/control-room-rail-IH1eBjrK.js.map +0 -1
  236. package/dist/_chunks/date-picker-Bp64zk2p.js.map +0 -1
  237. package/dist/_chunks/patient-details-qnsqYBGQ.js.map +0 -1
  238. package/dist/_chunks/payment-automation-upsell-BBIG7NFL.js.map +0 -1
  239. package/dist/_chunks/practice-results-F_Rf7c4H.js.map +0 -1
  240. package/dist/_chunks/subDays-CAUv47M1.js +0 -8
@@ -7,12 +7,12 @@ import { u as me } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as Lt } from "./form-field-context-B3APVHKx.js";
8
8
  import { S as $t } from "./switch-OILsBLWo.js";
9
9
  import { u as Wt } from "./registry-DvAUVLHh.js";
10
- import { h as jt, j as qt, u as _t, g as Bt, b as zt, k as qe, l as Yt, s as Ut, a as Ht, d as Qt, t as Jt, m as _e, n as Be, r as ze, p as Xt, o as Zt, D as ea, C as ta, q as aa, e as ra, v as J, f as sa, c as ge, i as na } from "./date-picker-variants-pKAJfnWr.js";
11
- import { f as k, s as Ye, d as ve, b as Ue, i as ia } from "./format-4HNwNGrN.js";
12
- import { s as F } from "./subDays-CAUv47M1.js";
13
- import { C as oa } from "./calendar-days-BGWklvE-.js";
10
+ import { h as jt, j as qt, u as _t, g as Bt, b as zt, k as qe, l as Yt, s as Ut, a as Ht, d as Qt, t as Jt, m as _e, n as Be, r as ze, p as Xt, o as Zt, D as ea, C as ta, q as aa, e as ra, v as J, f as sa, c as ge, i as na } from "./date-picker-variants-DfuooXEK.js";
11
+ import { f as k, s as Ye, d as ve, b as Ue, i as oa } from "./format-4HNwNGrN.js";
12
+ import { s as F } from "./subDays-BLl3y3pd.js";
13
+ import { C as ia } from "./calendar-days-BGWklvE-.js";
14
14
  import { C as da } from "./check-DrFSN__t.js";
15
- import { p as la } from "./parse-JqixfsU0.js";
15
+ import { p as la } from "./parse-MN9bGkrY.js";
16
16
  function ca(s, l, g) {
17
17
  return jt(s, -1, g);
18
18
  }
@@ -246,15 +246,15 @@ const ua = {
246
246
  size: be = "md",
247
247
  chrome: st = "input",
248
248
  disabled: nt,
249
- placeholder: it,
250
- className: ot,
249
+ placeholder: ot,
250
+ className: it,
251
251
  id: dt
252
252
  }, lt) => {
253
- const { t: n, i18n: ke } = At(), A = Lt(), ae = dt ?? A.id, Re = A.disabled || nt, ct = A.invalid ? "error" : "default", u = _t(ke.language), m = Bt(ke.language), ut = it ?? n("inputs.dateRangePicker.placeholder", "Select date range"), [pt, xe] = me({
253
+ const { t: n, i18n: ke } = At(), A = Lt(), ae = dt ?? A.id, Re = A.disabled || nt, ct = A.invalid ? "error" : "default", u = _t(ke.language), m = Bt(ke.language), ut = ot ?? n("inputs.dateRangePicker.placeholder", "Select date range"), [pt, xe] = me({
254
254
  value: s,
255
255
  defaultValue: l ?? {},
256
256
  onChange: g
257
- }), o = pt ?? {}, [O, R] = b(!1), [a, T] = b(o), [ft, re] = b(o.from ?? /* @__PURE__ */ new Date()), [Pe, Ne] = b(""), [De, Se] = b(""), [G, L] = b(!1), [V, $] = b(!1), q = ye !== void 0 || he !== void 0, _ = X && X.length > 0 ? X : void 0, we = _ ? Qe.filter(
257
+ }), i = pt ?? {}, [O, R] = b(!1), [a, T] = b(i), [ft, re] = b(i.from ?? /* @__PURE__ */ new Date()), [Pe, Ne] = b(""), [De, Se] = b(""), [G, L] = b(!1), [V, $] = b(!1), q = ye !== void 0 || he !== void 0, _ = X && X.length > 0 ? X : void 0, we = _ ? Qe.filter(
258
258
  (e) => _.includes(e.value)
259
259
  ) : Qe, W = (e) => {
260
260
  var t;
@@ -277,7 +277,7 @@ const ua = {
277
277
  [xe]
278
278
  ), ht = zt(Z, ee), bt = (e) => (Z ? na(e, Z) : !1) || (ee ? ge(e, ee) : !1);
279
279
  je(() => {
280
- O && (T(o), E(C ?? !1), L(!1), $(!1), D.current = !1);
280
+ O && (T(i), E(C ?? !1), L(!1), $(!1), D.current = !1);
281
281
  }, [O]), je(() => {
282
282
  G || Ne(
283
283
  a.from ? k(a.from, m, { locale: u }) : ""
@@ -338,19 +338,19 @@ const ua = {
338
338
  to: /* @__PURE__ */ new Date()
339
339
  })
340
340
  }
341
- ], ie = te ? rt ? [...Ce, ...te] : te : Ce, Ee = (() => {
341
+ ], oe = te ? rt ? [...Ce, ...te] : te : Ce, Ee = (() => {
342
342
  const e = [], t = /* @__PURE__ */ new Map();
343
- for (const d of ie) {
344
- const i = d.group ?? "";
345
- t.has(i) || (t.set(i, []), e.push(i)), t.get(i).push(d);
343
+ for (const d of oe) {
344
+ const o = d.group ?? "";
345
+ t.has(o) || (t.set(o, []), e.push(o)), t.get(o).push(d);
346
346
  }
347
347
  return e.map((d) => ({ group: d, presets: t.get(d) }));
348
348
  })(), kt = Ee.some((e) => e.group !== ""), y = (e, t = Ie) => {
349
349
  if (!e.from || !e.to) return;
350
350
  if (t === "lastYear")
351
351
  return { from: He(e.from), to: He(e.to) };
352
- const d = ve(e.to, e.from), i = F(e.from, 1);
353
- return { from: F(i, d), to: i };
352
+ const d = ve(e.to, e.from), o = F(e.from, 1);
353
+ return { from: F(o, d), to: o };
354
354
  }, Y = j && N, Me = j && (C ?? !1), h = Y ? y(a) : void 0, Rt = (() => {
355
355
  if (!(h != null && h.from) || !h.to) return;
356
356
  const e = h.from, t = h.to, d = {
@@ -366,32 +366,32 @@ const ua = {
366
366
  gt(t), Y && p === "auto" && (f == null || f(!0, y(a, t)));
367
367
  }, Pt = (e) => {
368
368
  E(e), p === "auto" && (z(e), f == null || f(e, e ? y(a) : void 0));
369
- }, oe = We(
369
+ }, ie = We(
370
370
  (e) => {
371
371
  T(e), p === "auto" && e.from && e.to && x(e);
372
372
  },
373
373
  [p, x]
374
374
  ), Nt = (e) => {
375
- L(!1), $(!1), oe({ from: e == null ? void 0 : e.from, to: e == null ? void 0 : e.to });
375
+ L(!1), $(!1), ie({ from: e == null ? void 0 : e.from, to: e == null ? void 0 : e.to });
376
376
  }, Dt = (e) => {
377
377
  const t = e.range();
378
378
  L(!1), $(!1), T(t), re(t.from), p === "auto" && (x(t), w == null || w(t, Fe(t)), D.current = !0, R(!1));
379
379
  }, de = (e, t) => {
380
380
  const d = e === "from" ? L : $;
381
381
  if (t.trim() === "") {
382
- d(!1), oe(
382
+ d(!1), ie(
383
383
  e === "from" ? { from: void 0, to: a.to } : { from: a.from, to: void 0 }
384
384
  );
385
385
  return;
386
386
  }
387
- const i = la(t, m, /* @__PURE__ */ new Date(), { locale: u });
388
- if (!ia(i) || bt(i)) {
387
+ const o = la(t, m, /* @__PURE__ */ new Date(), { locale: u });
388
+ if (!oa(o) || bt(o)) {
389
389
  d(!0);
390
390
  return;
391
391
  }
392
392
  d(!1);
393
393
  let P;
394
- e === "from" ? P = a.to && ge(i, a.to) ? { from: i, to: void 0 } : { from: i, to: a.to } : P = a.from && ge(a.from, i) ? { from: i, to: void 0 } : { from: a.from, to: i }, re(i), oe(P);
394
+ e === "from" ? P = a.to && ge(o, a.to) ? { from: o, to: void 0 } : { from: o, to: a.to } : P = a.from && ge(a.from, o) ? { from: o, to: void 0 } : { from: a.from, to: o }, re(o), ie(P);
395
395
  }, Ke = (e) => (t) => {
396
396
  t.key === "Enter" && (t.preventDefault(), de(e, e === "from" ? Pe : De));
397
397
  }, St = () => {
@@ -404,42 +404,42 @@ const ua = {
404
404
  }, Ot = () => {
405
405
  D.current = !0, R(!1);
406
406
  }, ce = () => {
407
- p === "apply" && (I == null || I()), T(o), E(C ?? !1), R(!1);
407
+ p === "apply" && (I == null || I()), T(i), E(C ?? !1), R(!1);
408
408
  }, Tt = (e) => {
409
409
  if (e) {
410
410
  D.current = !1, R(!0);
411
411
  return;
412
412
  }
413
- p === "apply" && !D.current && (I == null || I()), T(o), E(C ?? !1), D.current = !1, R(!1);
413
+ p === "apply" && !D.current && (I == null || I()), T(i), E(C ?? !1), D.current = !1, R(!1);
414
414
  }, Gt = (e) => {
415
- if (!o.from || !o.to) return !1;
415
+ if (!i.from || !i.to) return !1;
416
416
  const t = e.range();
417
- return Ue(t.from, o.from) && Ue(t.to, o.to);
418
- }, S = ie.find(Gt), Le = (() => {
419
- if (o.from && o.to) {
420
- const e = k(o.from, m, { locale: u }), t = k(o.to, m, { locale: u });
417
+ return Ue(t.from, i.from) && Ue(t.to, i.to);
418
+ }, S = oe.find(Gt), Le = (() => {
419
+ if (i.from && i.to) {
420
+ const e = k(i.from, m, { locale: u }), t = k(i.to, m, { locale: u });
421
421
  return `${e} – ${t}`;
422
422
  }
423
- return o.from ? k(o.from, m, { locale: u }) : "";
423
+ return i.from ? k(i.from, m, { locale: u }) : "";
424
424
  })(), U = a.from ? a.to ? null : "end" : "start", Vt = (() => {
425
425
  if (!a.from)
426
426
  return n("inputs.dateRangePicker.selectStart", "Select start date");
427
427
  if (!a.to)
428
428
  return n("inputs.dateRangePicker.selectEnd", "Select end date");
429
- const e = ve(a.to, a.from) + 1, t = k(a.from, m, { locale: u }), d = k(a.to, m, { locale: u }), i = n("inputs.dateRangePicker.days", { count: e });
430
- return `${t} – ${d} · ${i}`;
429
+ const e = ve(a.to, a.from) + 1, t = k(a.from, m, { locale: u }), d = k(a.to, m, { locale: u }), o = n("inputs.dateRangePicker.days", { count: e });
430
+ return `${t} – ${d} · ${o}`;
431
431
  })(), v = fe({
432
- currentValue: o,
432
+ currentValue: i,
433
433
  open: O,
434
434
  getGranularity: () => q ? B : void 0,
435
435
  setGranularity: (e) => se(W(e)),
436
- getCompareRange: () => Me ? y(o) : void 0,
436
+ getCompareRange: () => Me ? y(i) : void 0,
437
437
  // Imperative/agent path commits directly (like setRange/clear), so
438
438
  // toggle_compare reflects in getCompareRange immediately — not a draft.
439
439
  setCompare: (e) => {
440
440
  E(e), z(e), f == null || f(
441
441
  e,
442
- e ? y(o) : void 0
442
+ e ? y(i) : void 0
443
443
  );
444
444
  },
445
445
  getActivePreset: () => S == null ? void 0 : S.label,
@@ -448,15 +448,15 @@ const ua = {
448
448
  cancel: () => ce()
449
449
  });
450
450
  v.current = {
451
- currentValue: o,
451
+ currentValue: i,
452
452
  open: O,
453
453
  getGranularity: () => q ? B : void 0,
454
454
  setGranularity: (e) => se(W(e)),
455
- getCompareRange: () => Me ? y(o) : void 0,
455
+ getCompareRange: () => Me ? y(i) : void 0,
456
456
  setCompare: (e) => {
457
457
  E(e), z(e), f == null || f(
458
458
  e,
459
- e ? y(o) : void 0
459
+ e ? y(i) : void 0
460
460
  );
461
461
  },
462
462
  getActivePreset: () => S == null ? void 0 : S.label,
@@ -488,7 +488,7 @@ const ua = {
488
488
  return /* @__PURE__ */ r(H.Root, { open: O, onOpenChange: Tt, children: /* @__PURE__ */ c(
489
489
  "div",
490
490
  {
491
- className: ot,
491
+ className: it,
492
492
  "data-component": "date-range-picker",
493
493
  "data-component-id": ae,
494
494
  children: [
@@ -525,7 +525,7 @@ const ua = {
525
525
  {
526
526
  "aria-hidden": "true",
527
527
  className: Qt({ size: be }),
528
- children: /* @__PURE__ */ r(oa, {})
528
+ children: /* @__PURE__ */ r(ia, {})
529
529
  }
530
530
  )
531
531
  ]
@@ -541,6 +541,7 @@ const ua = {
541
541
  "inputs.dateRangePicker.title",
542
542
  "Select date range"
543
543
  ),
544
+ "data-component": "date-range-picker-content",
544
545
  className: sa(),
545
546
  children: /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
546
547
  /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -663,8 +664,8 @@ const ua = {
663
664
  ) : null
664
665
  ] }),
665
666
  /* @__PURE__ */ c("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
666
- ie.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: Ee.map((e, t) => {
667
- const d = `${Oe}-pg${t}`, i = e.presets.map((P) => {
667
+ oe.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: Ee.map((e, t) => {
668
+ const d = `${Oe}-pg${t}`, o = e.presets.map((P) => {
668
669
  const pe = P === S;
669
670
  return /* @__PURE__ */ c(
670
671
  "button",
@@ -702,11 +703,11 @@ const ua = {
702
703
  children: e.group
703
704
  }
704
705
  ),
705
- i
706
+ o
706
707
  ]
707
708
  },
708
709
  e.group
709
- ) : /* @__PURE__ */ r(Kt, { children: i }, e.group || "_ungrouped");
710
+ ) : /* @__PURE__ */ r(Kt, { children: o }, e.group || "_ungrouped");
710
711
  }) }) : null,
711
712
  /* @__PURE__ */ c("div", { role: "region", "aria-labelledby": Ve, children: [
712
713
  /* @__PURE__ */ r("span", { id: Ve, className: "ds:sr-only", children: n("inputs.dateRangePicker.gridLabel", "Calendar") }),
@@ -846,4 +847,4 @@ export {
846
847
  fa as D,
847
848
  ua as d
848
849
  };
849
- //# sourceMappingURL=date-range-picker-CDrZ8Zh0.js.map
850
+ //# sourceMappingURL=date-range-picker-BD8P_rJq.js.map