@alfadocs/ui-kit-debug 1.7.0 → 1.9.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 (244) hide show
  1. package/dist/_chunks/{actions-cell-renderer-ALEAGO3j.js → actions-cell-renderer-B2pw6iH8.js} +2 -2
  2. package/dist/_chunks/{actions-cell-renderer-ALEAGO3j.js.map → actions-cell-renderer-B2pw6iH8.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-rows-F-cCmFAn.js → anamnesis-summary-rows-d44s_whc.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-F-cCmFAn.js.map → anamnesis-summary-rows-d44s_whc.js.map} +1 -1
  5. package/dist/_chunks/{antenatal-schedule-timeline-BjlF2rTz.js → antenatal-schedule-timeline-B1k8QkA6.js} +3 -3
  6. package/dist/_chunks/{antenatal-schedule-timeline-BjlF2rTz.js.map → antenatal-schedule-timeline-B1k8QkA6.js.map} +1 -1
  7. package/dist/_chunks/{appointment-card-BhcPJpXh.js → appointment-card-Dzr3GeVz.js} +73 -90
  8. package/dist/_chunks/appointment-card-Dzr3GeVz.js.map +1 -0
  9. package/dist/_chunks/{appointment-timeline-CMPvzlGZ.js → appointment-timeline-0mwtpErq.js} +3 -3
  10. package/dist/_chunks/{appointment-timeline-CMPvzlGZ.js.map → appointment-timeline-0mwtpErq.js.map} +1 -1
  11. package/dist/_chunks/{appointment-tray-3c_FLxXJ.js → appointment-tray-4FUu_5NX.js} +2 -2
  12. package/dist/_chunks/{appointment-tray-3c_FLxXJ.js.map → appointment-tray-4FUu_5NX.js.map} +1 -1
  13. package/dist/_chunks/armchair-BaLDW6Hz.js +23 -0
  14. package/dist/_chunks/armchair-BaLDW6Hz.js.map +1 -0
  15. package/dist/_chunks/{booking-CQMJUFG-.js → booking-DHkKcUIl.js} +4 -4
  16. package/dist/_chunks/{booking-CQMJUFG-.js.map → booking-DHkKcUIl.js.map} +1 -1
  17. package/dist/_chunks/{calendar-4dXTvsCz.js → calendar-B4Gnyu1C.js} +553 -437
  18. package/dist/_chunks/calendar-B4Gnyu1C.js.map +1 -0
  19. package/dist/_chunks/calendar-event-card-Bjdbik8G.js +425 -0
  20. package/dist/_chunks/calendar-event-card-Bjdbik8G.js.map +1 -0
  21. package/dist/_chunks/{care-plan-card-DQjVRDxO.js → care-plan-card-aDN4oem9.js} +3 -3
  22. package/dist/_chunks/{care-plan-card-DQjVRDxO.js.map → care-plan-card-aDN4oem9.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-entry-card-CMpoeNkb.js → care-plan-entry-card-BEhANdBE.js} +2 -2
  24. package/dist/_chunks/{care-plan-entry-card-CMpoeNkb.js.map → care-plan-entry-card-BEhANdBE.js.map} +1 -1
  25. package/dist/_chunks/{care-plan-header-CxYoq23f.js → care-plan-header-CkpPyQqG.js} +2 -2
  26. package/dist/_chunks/{care-plan-header-CxYoq23f.js.map → care-plan-header-CkpPyQqG.js.map} +1 -1
  27. package/dist/_chunks/{color-picker-D-tUwxxT.js → color-picker-oZ6zYks8.js} +164 -151
  28. package/dist/_chunks/color-picker-oZ6zYks8.js.map +1 -0
  29. package/dist/_chunks/control-room-rail-Cj2iX9h_.js +337 -0
  30. package/dist/_chunks/control-room-rail-Cj2iX9h_.js.map +1 -0
  31. package/dist/_chunks/{cycle-calculator-DzgO1vzP.js → cycle-calculator-DmtYGhqq.js} +3 -3
  32. package/dist/_chunks/{cycle-calculator-DzgO1vzP.js.map → cycle-calculator-DmtYGhqq.js.map} +1 -1
  33. package/dist/_chunks/{date-picker-Bp64zk2p.js → date-picker-CepI_oI2.js} +77 -74
  34. package/dist/_chunks/date-picker-CepI_oI2.js.map +1 -0
  35. package/dist/_chunks/{date-picker-variants-pKAJfnWr.js → date-picker-variants-DfuooXEK.js} +7 -2
  36. package/dist/_chunks/{date-picker-variants-pKAJfnWr.js.map → date-picker-variants-DfuooXEK.js.map} +1 -1
  37. package/dist/_chunks/{date-range-picker-CDrZ8Zh0.js → date-range-picker-BD8P_rJq.js} +46 -45
  38. package/dist/_chunks/{date-range-picker-CDrZ8Zh0.js.map → date-range-picker-BD8P_rJq.js.map} +1 -1
  39. package/dist/_chunks/{date-time-picker-DVETwpzc.js → date-time-picker-3I2vVKGV.js} +2 -2
  40. package/dist/_chunks/{date-time-picker-DVETwpzc.js.map → date-time-picker-3I2vVKGV.js.map} +1 -1
  41. package/dist/_chunks/{due-date-calculator-wK8Tajzz.js → due-date-calculator-BF_Ikofx.js} +4 -4
  42. package/dist/_chunks/{due-date-calculator-wK8Tajzz.js.map → due-date-calculator-BF_Ikofx.js.map} +1 -1
  43. package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
  44. package/dist/_chunks/{entity-card-9_62gY7l.js.map → entity-card-DmrgYSEX.js.map} +1 -1
  45. package/dist/_chunks/{file-manager-Cc_upjZX.js → file-manager-Crg5dKez.js} +2 -2
  46. package/dist/_chunks/{file-manager-Cc_upjZX.js.map → file-manager-Crg5dKez.js.map} +1 -1
  47. package/dist/_chunks/{gestational-age-calculator-C_uDAeP_.js → gestational-age-calculator-CxZelpu2.js} +5 -5
  48. package/dist/_chunks/{gestational-age-calculator-C_uDAeP_.js.map → gestational-age-calculator-CxZelpu2.js.map} +1 -1
  49. package/dist/_chunks/{hcg-doubling-BaXkJhT-.js → hcg-doubling-CpU7H5rQ.js} +3 -3
  50. package/dist/_chunks/{hcg-doubling-BaXkJhT-.js.map → hcg-doubling-CpU7H5rQ.js.map} +1 -1
  51. package/dist/_chunks/{link-cell-renderer-DH4JYpKU.js → link-cell-renderer-BZQtsuFz.js} +2 -2
  52. package/dist/_chunks/{link-cell-renderer-DH4JYpKU.js.map → link-cell-renderer-BZQtsuFz.js.map} +1 -1
  53. package/dist/_chunks/{notes-panel-DlnENphf.js → notes-panel-e9cJWVRg.js} +2 -2
  54. package/dist/_chunks/{notes-panel-DlnENphf.js.map → notes-panel-e9cJWVRg.js.map} +1 -1
  55. package/dist/_chunks/{operator-hero-CCDnIa1S.js → operator-hero-BnFv-Uef.js} +2 -2
  56. package/dist/_chunks/{operator-hero-CCDnIa1S.js.map → operator-hero-BnFv-Uef.js.map} +1 -1
  57. package/dist/_chunks/{parse-JqixfsU0.js → parse-MN9bGkrY.js} +2 -2
  58. package/dist/_chunks/{parse-JqixfsU0.js.map → parse-MN9bGkrY.js.map} +1 -1
  59. package/dist/_chunks/{patient-details-qnsqYBGQ.js → patient-details-xrqe13az.js} +160 -159
  60. package/dist/_chunks/patient-details-xrqe13az.js.map +1 -0
  61. package/dist/_chunks/{patient-table-DwshfVsQ.js → patient-table-ChXM2K7H.js} +11 -7
  62. package/dist/_chunks/patient-table-ChXM2K7H.js.map +1 -0
  63. package/dist/_chunks/{payment-automation-upsell-BBIG7NFL.js → payment-automation-upsell-DwQW2fRp.js} +52 -63
  64. package/dist/_chunks/payment-automation-upsell-DwQW2fRp.js.map +1 -0
  65. package/dist/_chunks/{payment-request-card-BjjBMdsp.js → payment-request-card-YVCcCZ25.js} +2 -2
  66. package/dist/_chunks/{payment-request-card-BjjBMdsp.js.map → payment-request-card-YVCcCZ25.js.map} +1 -1
  67. package/dist/_chunks/{pregnancy-dating-BVS_9YU2.js → pregnancy-dating-DtToyMyc.js} +5 -5
  68. package/dist/_chunks/{pregnancy-dating-BVS_9YU2.js.map → pregnancy-dating-DtToyMyc.js.map} +1 -1
  69. package/dist/_chunks/{radiograph-panel.agent-CiHwgISa.js → radiograph-panel.agent-C3trfWqB.js} +3 -3
  70. package/dist/_chunks/{radiograph-panel.agent-CiHwgISa.js.map → radiograph-panel.agent-C3trfWqB.js.map} +1 -1
  71. package/dist/_chunks/repeat-CvQa5rZt.js +17 -0
  72. package/dist/_chunks/repeat-CvQa5rZt.js.map +1 -0
  73. package/dist/_chunks/resource-chip-DYTG0IQQ.js +83 -0
  74. package/dist/_chunks/resource-chip-DYTG0IQQ.js.map +1 -0
  75. package/dist/_chunks/{rich-text-editor-DARnq_6N.js → rich-text-editor-BDfFtK4H.js} +2 -2
  76. package/dist/_chunks/{rich-text-editor-DARnq_6N.js.map → rich-text-editor-BDfFtK4H.js.map} +1 -1
  77. package/dist/_chunks/subDays-BLl3y3pd.js +8 -0
  78. package/dist/_chunks/{subDays-CAUv47M1.js.map → subDays-BLl3y3pd.js.map} +1 -1
  79. package/dist/agent-catalog.json +2 -2
  80. package/dist/components/_shared/date-picker-variants.d.ts.map +1 -1
  81. package/dist/components/appointment-card/index.js +2 -2
  82. package/dist/components/appointment-timeline/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/calendar/calendar.agent.d.ts.map +1 -1
  85. package/dist/components/calendar/calendar.d.ts +138 -12
  86. package/dist/components/calendar/calendar.d.ts.map +1 -1
  87. package/dist/components/calendar/index.js +1 -1
  88. package/dist/components/calendar-event-card/calendar-event-card.d.ts +48 -11
  89. package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
  90. package/dist/components/calendar-event-card/index.js +1 -1
  91. package/dist/components/care-plan-card/index.js +1 -1
  92. package/dist/components/care-plan-entry-card/index.js +1 -1
  93. package/dist/components/care-plan-header/index.js +1 -1
  94. package/dist/components/color-picker/index.d.ts +1 -1
  95. package/dist/components/color-picker/index.d.ts.map +1 -1
  96. package/dist/components/color-picker/index.js +4 -3
  97. package/dist/components/color-picker/palettes.d.ts +10 -0
  98. package/dist/components/color-picker/palettes.d.ts.map +1 -1
  99. package/dist/components/control-room-rail/control-room-rail.d.ts +9 -0
  100. package/dist/components/control-room-rail/control-room-rail.d.ts.map +1 -1
  101. package/dist/components/control-room-rail/index.js +1 -1
  102. package/dist/components/cycle-calculator/index.js +1 -1
  103. package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts.map +1 -1
  104. package/dist/components/data-table/index.js +2 -2
  105. package/dist/components/date-picker/date-picker.d.ts +11 -0
  106. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  107. package/dist/components/date-picker/index.js +1 -1
  108. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  109. package/dist/components/date-range-picker/index.js +1 -1
  110. package/dist/components/date-time-picker/index.js +1 -1
  111. package/dist/components/due-date-calculator/index.js +2 -2
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/hcg-doubling/index.js +1 -1
  115. package/dist/components/index.d.ts +1 -0
  116. package/dist/components/index.d.ts.map +1 -1
  117. package/dist/components/notes-panel/index.js +1 -1
  118. package/dist/components/operator-hero/index.js +1 -1
  119. package/dist/components/patient-details/index.js +1 -1
  120. package/dist/components/patient-details/patient-details.d.ts +8 -0
  121. package/dist/components/patient-details/patient-details.d.ts.map +1 -1
  122. package/dist/components/patient-table/columns.d.ts.map +1 -1
  123. package/dist/components/patient-table/index.js +1 -1
  124. package/dist/components/patient-table/patient-table.d.ts +5 -4
  125. package/dist/components/patient-table/patient-table.d.ts.map +1 -1
  126. package/dist/components/payment-card/index.js +1 -1
  127. package/dist/components/pregnancy-dating/index.js +1 -1
  128. package/dist/components/radiograph-panel/index.js +1 -1
  129. package/dist/components/resource-chip/index.d.ts +3 -0
  130. package/dist/components/resource-chip/index.d.ts.map +1 -0
  131. package/dist/components/resource-chip/index.js +5 -0
  132. package/dist/components/resource-chip/index.js.map +1 -0
  133. package/dist/components/resource-chip/resource-chip.d.ts +26 -0
  134. package/dist/components/resource-chip/resource-chip.d.ts.map +1 -0
  135. package/dist/components/rich-text-editor/index.js +1 -1
  136. package/dist/host-compat.css +7 -1
  137. package/dist/i18n/locales/ar.d.ts +4 -0
  138. package/dist/i18n/locales/ar.d.ts.map +1 -1
  139. package/dist/i18n/locales/ar.js +4 -0
  140. package/dist/i18n/locales/ar.js.map +1 -1
  141. package/dist/i18n/locales/de.d.ts +4 -0
  142. package/dist/i18n/locales/de.d.ts.map +1 -1
  143. package/dist/i18n/locales/de.js +4 -0
  144. package/dist/i18n/locales/de.js.map +1 -1
  145. package/dist/i18n/locales/el.d.ts +4 -0
  146. package/dist/i18n/locales/el.d.ts.map +1 -1
  147. package/dist/i18n/locales/el.js +4 -0
  148. package/dist/i18n/locales/el.js.map +1 -1
  149. package/dist/i18n/locales/en.d.ts +4 -0
  150. package/dist/i18n/locales/en.d.ts.map +1 -1
  151. package/dist/i18n/locales/en.js +4 -0
  152. package/dist/i18n/locales/en.js.map +1 -1
  153. package/dist/i18n/locales/es.d.ts +4 -0
  154. package/dist/i18n/locales/es.d.ts.map +1 -1
  155. package/dist/i18n/locales/es.js +4 -0
  156. package/dist/i18n/locales/es.js.map +1 -1
  157. package/dist/i18n/locales/fr.d.ts +4 -0
  158. package/dist/i18n/locales/fr.d.ts.map +1 -1
  159. package/dist/i18n/locales/fr.js +4 -0
  160. package/dist/i18n/locales/fr.js.map +1 -1
  161. package/dist/i18n/locales/hi.d.ts +4 -0
  162. package/dist/i18n/locales/hi.d.ts.map +1 -1
  163. package/dist/i18n/locales/hi.js +4 -0
  164. package/dist/i18n/locales/hi.js.map +1 -1
  165. package/dist/i18n/locales/it.d.ts +4 -0
  166. package/dist/i18n/locales/it.d.ts.map +1 -1
  167. package/dist/i18n/locales/it.js +4 -0
  168. package/dist/i18n/locales/it.js.map +1 -1
  169. package/dist/i18n/locales/ja.d.ts +4 -0
  170. package/dist/i18n/locales/ja.d.ts.map +1 -1
  171. package/dist/i18n/locales/ja.js +4 -0
  172. package/dist/i18n/locales/ja.js.map +1 -1
  173. package/dist/i18n/locales/nl.d.ts +4 -0
  174. package/dist/i18n/locales/nl.d.ts.map +1 -1
  175. package/dist/i18n/locales/nl.js +4 -0
  176. package/dist/i18n/locales/nl.js.map +1 -1
  177. package/dist/i18n/locales/pl.d.ts +4 -0
  178. package/dist/i18n/locales/pl.d.ts.map +1 -1
  179. package/dist/i18n/locales/pl.js +4 -0
  180. package/dist/i18n/locales/pl.js.map +1 -1
  181. package/dist/i18n/locales/pt.d.ts +4 -0
  182. package/dist/i18n/locales/pt.d.ts.map +1 -1
  183. package/dist/i18n/locales/pt.js +4 -0
  184. package/dist/i18n/locales/pt.js.map +1 -1
  185. package/dist/i18n/locales/ro.d.ts +4 -0
  186. package/dist/i18n/locales/ro.d.ts.map +1 -1
  187. package/dist/i18n/locales/ro.js +4 -0
  188. package/dist/i18n/locales/ro.js.map +1 -1
  189. package/dist/i18n/locales/ru.d.ts +4 -0
  190. package/dist/i18n/locales/ru.d.ts.map +1 -1
  191. package/dist/i18n/locales/ru.js +4 -0
  192. package/dist/i18n/locales/ru.js.map +1 -1
  193. package/dist/i18n/locales/sq.d.ts +4 -0
  194. package/dist/i18n/locales/sq.d.ts.map +1 -1
  195. package/dist/i18n/locales/sq.js +4 -0
  196. package/dist/i18n/locales/sq.js.map +1 -1
  197. package/dist/i18n/locales/sv.d.ts +4 -0
  198. package/dist/i18n/locales/sv.d.ts.map +1 -1
  199. package/dist/i18n/locales/sv.js +4 -0
  200. package/dist/i18n/locales/sv.js.map +1 -1
  201. package/dist/i18n/locales/tr.d.ts +4 -0
  202. package/dist/i18n/locales/tr.d.ts.map +1 -1
  203. package/dist/i18n/locales/tr.js +4 -0
  204. package/dist/i18n/locales/tr.js.map +1 -1
  205. package/dist/i18n/locales/zh.d.ts +4 -0
  206. package/dist/i18n/locales/zh.d.ts.map +1 -1
  207. package/dist/i18n/locales/zh.js +4 -0
  208. package/dist/i18n/locales/zh.js.map +1 -1
  209. package/dist/index.js +961 -958
  210. package/dist/index.js.map +1 -1
  211. package/dist/locales/ar.json +4 -0
  212. package/dist/locales/de.json +4 -0
  213. package/dist/locales/el.json +4 -0
  214. package/dist/locales/en.json +4 -0
  215. package/dist/locales/es.json +4 -0
  216. package/dist/locales/fr.json +4 -0
  217. package/dist/locales/hi.json +4 -0
  218. package/dist/locales/it.json +4 -0
  219. package/dist/locales/ja.json +4 -0
  220. package/dist/locales/nl.json +4 -0
  221. package/dist/locales/pl.json +4 -0
  222. package/dist/locales/pt.json +4 -0
  223. package/dist/locales/ro.json +4 -0
  224. package/dist/locales/ru.json +4 -0
  225. package/dist/locales/sq.json +4 -0
  226. package/dist/locales/sv.json +4 -0
  227. package/dist/locales/tr.json +4 -0
  228. package/dist/locales/zh.json +4 -0
  229. package/dist/patterns/anamnesis/index.js +1 -1
  230. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  231. package/dist/tokens.css +41 -24
  232. package/package.json +5 -1
  233. package/dist/_chunks/appointment-card-BhcPJpXh.js.map +0 -1
  234. package/dist/_chunks/calendar-4dXTvsCz.js.map +0 -1
  235. package/dist/_chunks/calendar-event-card-C6qGtywL.js +0 -257
  236. package/dist/_chunks/calendar-event-card-C6qGtywL.js.map +0 -1
  237. package/dist/_chunks/color-picker-D-tUwxxT.js.map +0 -1
  238. package/dist/_chunks/control-room-rail-IH1eBjrK.js +0 -333
  239. package/dist/_chunks/control-room-rail-IH1eBjrK.js.map +0 -1
  240. package/dist/_chunks/date-picker-Bp64zk2p.js.map +0 -1
  241. package/dist/_chunks/patient-details-qnsqYBGQ.js.map +0 -1
  242. package/dist/_chunks/patient-table-DwshfVsQ.js.map +0 -1
  243. package/dist/_chunks/payment-automation-upsell-BBIG7NFL.js.map +0 -1
  244. package/dist/_chunks/subDays-CAUv47M1.js +0 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repeat-CvQa5rZt.js","sources":["../../node_modules/lucide-react/dist/esm/icons/repeat.mjs"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"m17 2 4 4-4 4\", key: \"nntrym\" }],\n [\"path\", { d: \"M3 11v-1a4 4 0 0 1 4-4h14\", key: \"84bu3i\" }],\n [\"path\", { d: \"m7 22-4-4 4-4\", key: \"1wqhfi\" }],\n [\"path\", { d: \"M21 13v1a4 4 0 0 1-4 4H3\", key: \"1rx37r\" }]\n];\nconst Repeat = createLucideIcon(\"repeat\", __iconNode);\n\nexport { __iconNode, Repeat as default };\n//# sourceMappingURL=repeat.mjs.map\n"],"names":["__iconNode","Repeat","createLucideIcon"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAAA,EAC9C,CAAC,QAAQ,EAAE,GAAG,6BAA6B,KAAK,SAAQ,CAAE;AAAA,EAC1D,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAAA,EAC9C,CAAC,QAAQ,EAAE,GAAG,4BAA4B,KAAK,SAAQ,CAAE;AAC3D,GACMC,IAASC,EAAiB,UAAUF,CAAU;","x_google_ignoreList":[0]}
@@ -0,0 +1,83 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { c as u } from "./index-D2ZczOXr.js";
4
+ import { A as m } from "./armchair-BaLDW6Hz.js";
5
+ const h = u(
6
+ [
7
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
8
+ "ds:max-w-full",
9
+ // No pill: the label sits on the page ink, so it is legible in all
10
+ // four themes without knowing the resource colour.
11
+ "ds:text-[color:var(--foreground)]",
12
+ "type-eyebrow ds:[--type-eyebrow-size:var(--font-size-2xs)]"
13
+ ].join(" "),
14
+ {
15
+ variants: {
16
+ orientation: {
17
+ // Disc above, name beneath — the stack spends the header's
18
+ // block axis, which is the one a resource column has to spare.
19
+ horizontal: "ds:flex-col",
20
+ // column-REVERSE: the label writes bottom-to-top (the kit's
21
+ // rotated-label direction), so the glyph circle must sit at the
22
+ // BLOCK-END — the start of the reading flow — while keeping
23
+ // circle-first DOM order in both orientations.
24
+ vertical: "ds:flex-col-reverse"
25
+ }
26
+ },
27
+ defaultVariants: { orientation: "horizontal" }
28
+ }
29
+ ), f = p(
30
+ ({ label: o, color: s, icon: i, orientation: r, className: a, style: t, ...c }, d) => {
31
+ const n = s ? { "--resource-chip-color": s } : void 0;
32
+ return /* @__PURE__ */ l(
33
+ "span",
34
+ {
35
+ ref: d,
36
+ ...c,
37
+ "data-component": "resource-chip",
38
+ "data-orientation": r ?? "horizontal",
39
+ className: h({ orientation: r, className: a }),
40
+ style: t,
41
+ children: [
42
+ /* @__PURE__ */ e(
43
+ "span",
44
+ {
45
+ className: [
46
+ "ds:flex ds:size-6 ds:shrink-0 ds:items-center ds:justify-center",
47
+ /* Hairline ring, NOT 1.5px: the Lucide glyph is a 24-unit
48
+ icon at stroke-width 2 drawn at 14px, so its strokes land
49
+ at ~1.17px — a 1.5px ring is visibly HEAVIER than the
50
+ glyph it encloses, and a fractional width on a full-radius
51
+ circle antialiases unevenly around the curve. 1px sits
52
+ just under the glyph weight and matches the kit's other
53
+ indicator disc. */
54
+ "ds:rounded-full ds:border ds:[&_svg]:size-3.5",
55
+ // Seeded default; the inline setter wins when a colour is given.
56
+ "ds:[--resource-chip-color:var(--muted-foreground)]",
57
+ "ds:[--resource-chip-ink:color-mix(in_srgb,var(--resource-chip-color)_70%,var(--foreground))]",
58
+ "ds:[background-color:color-mix(in_srgb,var(--resource-chip-color)_16%,transparent)]",
59
+ "ds:[border-color:var(--resource-chip-ink)]",
60
+ "ds:[color:var(--resource-chip-ink)]"
61
+ ].join(" "),
62
+ style: n,
63
+ "aria-hidden": "true",
64
+ children: i ?? /* @__PURE__ */ e(m, {})
65
+ }
66
+ ),
67
+ /* @__PURE__ */ e(
68
+ "span",
69
+ {
70
+ className: r === "vertical" ? "ds:truncate ds:text-start ds:[writing-mode:vertical-rl] ds:rotate-180 ds:[max-inline-size:6.5rem]" : "ds:truncate ds:text-center ds:[max-inline-size:100%]",
71
+ children: o
72
+ }
73
+ )
74
+ ]
75
+ }
76
+ );
77
+ }
78
+ );
79
+ f.displayName = "ResourceChip";
80
+ export {
81
+ f as R
82
+ };
83
+ //# sourceMappingURL=resource-chip-DYTG0IQQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-chip-DYTG0IQQ.js","sources":["../../src/components/resource-chip/resource-chip.tsx"],"sourcesContent":["/* ------------------------------------------------------------------ */\n/* ResourceChip — the one chip for a PLACE resource (a chair, a room, */\n/* a device) so the display is identical everywhere it appears: */\n/* calendar column headers, pickers, legends. */\n/* */\n/* SHAPE: a colour disc holding a place glyph, with the name beneath. */\n/* People get the SAME disc through Avatar — initials or a photo — so */\n/* the two resource axes share one shape and still say different */\n/* things: a face is a person, an armchair is a place. That is why */\n/* the disc carries a GLYPH and never a short code; a circle with */\n/* characters in it reads as a person, and a code beside the name it */\n/* abbreviates only says the same thing twice. */\n/* */\n/* There is deliberately NO pill. A neutral pill per column turned a */\n/* colour-coded header into a row of greys, and the surface it added */\n/* competed with the appointment cards below it. The colour lives in */\n/* the disc — never behind the label — so label contrast never depends */\n/* on a caller-supplied hex. */\n/* */\n/* COLOUR MODEL: the disc is a light WASH of the resource colour, and */\n/* the ring and glyph are the colour at strength. The strong halves */\n/* are mixed 70% toward `--foreground` rather than used raw, because */\n/* raw picker hexes do NOT clear the 3:1 graphics minimum (WCAG */\n/* 1.4.11) against their own wash: Peacock lands at 2.70:1 on light */\n/* and Grape at 1.88:1 on dark. Mixing toward the foreground token is */\n/* theme-adaptive by construction — it darkens on light and lightens */\n/* on dark — and takes every palette entry to ≥ 3.2:1 in all four */\n/* themes while keeping the hue plainly recognisable. The wash is */\n/* mixed with `transparent`, not a surface token, so it composites */\n/* correctly over whatever the host paints behind the header. */\n/* */\n/* `orientation` names how the LABEL is written, not how the chip */\n/* stacks: both variants stack block-wise, and `vertical` additionally */\n/* writes the label bottom-to-top for narrow calendar columns, which */\n/* puts the disc at the block-END — the start of that reading flow. */\n/* ------------------------------------------------------------------ */\n\nimport {\n forwardRef,\n type CSSProperties,\n type HTMLAttributes,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Armchair } from 'lucide-react';\n\nconst resourceChipVariants = cva(\n [\n 'ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]',\n 'ds:max-w-full',\n // No pill: the label sits on the page ink, so it is legible in all\n // four themes without knowing the resource colour.\n 'ds:text-[color:var(--foreground)]',\n 'type-eyebrow ds:[--type-eyebrow-size:var(--font-size-2xs)]',\n ].join(' '),\n {\n variants: {\n orientation: {\n // Disc above, name beneath — the stack spends the header's\n // block axis, which is the one a resource column has to spare.\n horizontal: 'ds:flex-col',\n // column-REVERSE: the label writes bottom-to-top (the kit's\n // rotated-label direction), so the glyph circle must sit at the\n // BLOCK-END — the start of the reading flow — while keeping\n // circle-first DOM order in both orientations.\n vertical: 'ds:flex-col-reverse',\n },\n },\n defaultVariants: { orientation: 'horizontal' },\n },\n);\n\nexport interface ResourceChipProps\n extends\n Omit<HTMLAttributes<HTMLSpanElement>, 'color'>,\n VariantProps<typeof resourceChipVariants> {\n /** Visible resource name. */\n label: string;\n /**\n * Resource colour (any CSS colour string) — drives the whole disc via\n * one CSS custom property: a light wash for the fill, and the colour\n * mixed toward `--foreground` for the ring and glyph. Omitted → the\n * muted token, so the disc degrades to a neutral.\n */\n color?: string;\n /**\n * Glyph inside the colour disc. Defaults to the kit's treatment-chair\n * glyph (`Armchair`); pass another Lucide element for rooms/devices.\n * Keep it a GLYPH — a short code here would read as a person's\n * initials, which is the Avatar's job.\n */\n icon?: ReactNode;\n}\n\nexport const ResourceChip = forwardRef<HTMLSpanElement, ResourceChipProps>(\n ({ label, color, icon, orientation, className, style, ...rest }, ref) => {\n /* Runtime caller-supplied colour flows through ONE inline CSS\n custom-property setter (23-constraints §Runtime-computed\n dimensions); every consuming declaration — wash, ring, glyph —\n lives in the className as Tailwind arbitrary values and derives\n from it. The class below seeds a muted default that this inline\n value overrides when a colour is supplied. */\n const dotStyle: CSSProperties | undefined = color\n ? ({ '--resource-chip-color': color } as CSSProperties)\n : undefined;\n return (\n <span\n ref={ref}\n {...rest}\n data-component=\"resource-chip\"\n data-orientation={orientation ?? 'horizontal'}\n className={resourceChipVariants({ orientation, className })}\n // eslint-disable-next-line react/forbid-dom-props -- consumer-forwarded style; the runtime colour itself flows through a CSS custom property (23-constraints §inline-style exception)\n style={style}\n >\n <span\n className={[\n 'ds:flex ds:size-6 ds:shrink-0 ds:items-center ds:justify-center',\n /* Hairline ring, NOT 1.5px: the Lucide glyph is a 24-unit\n icon at stroke-width 2 drawn at 14px, so its strokes land\n at ~1.17px — a 1.5px ring is visibly HEAVIER than the\n glyph it encloses, and a fractional width on a full-radius\n circle antialiases unevenly around the curve. 1px sits\n just under the glyph weight and matches the kit's other\n indicator disc. */\n 'ds:rounded-full ds:border ds:[&_svg]:size-3.5',\n // Seeded default; the inline setter wins when a colour is given.\n 'ds:[--resource-chip-color:var(--muted-foreground)]',\n 'ds:[--resource-chip-ink:color-mix(in_srgb,var(--resource-chip-color)_70%,var(--foreground))]',\n 'ds:[background-color:color-mix(in_srgb,var(--resource-chip-color)_16%,transparent)]',\n 'ds:[border-color:var(--resource-chip-ink)]',\n 'ds:[color:var(--resource-chip-ink)]',\n ].join(' ')}\n // eslint-disable-next-line react/forbid-dom-props -- caller-supplied resource colour injected via CSS variables\n style={dotStyle}\n aria-hidden=\"true\"\n >\n {icon ?? <Armchair />}\n </span>\n <span\n className={\n orientation === 'vertical'\n ? 'ds:truncate ds:text-start ds:[writing-mode:vertical-rl] ds:rotate-180 ds:[max-inline-size:6.5rem]'\n : 'ds:truncate ds:text-center ds:[max-inline-size:100%]'\n }\n >\n {label}\n </span>\n </span>\n );\n },\n);\nResourceChip.displayName = 'ResourceChip';\n"],"names":["resourceChipVariants","cva","ResourceChip","forwardRef","label","color","icon","orientation","className","style","rest","ref","dotStyle","jsxs","jsx","Armchair"],"mappings":";;;;AA8CA,MAAMA,IAAuBC;AAAA,EAC3B;AAAA,IACE;AAAA,IACA;AAAA;AAAA;AAAA,IAGA;AAAA,IACA;AAAA,EAAA,EACA,KAAK,GAAG;AAAA,EACV;AAAA,IACE,UAAU;AAAA,MACR,aAAa;AAAA;AAAA;AAAA,QAGX,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA,QAKZ,UAAU;AAAA,MAAA;AAAA,IACZ;AAAA,IAEF,iBAAiB,EAAE,aAAa,aAAA;AAAA,EAAa;AAEjD,GAwBaC,IAAeC;AAAA,EAC1B,CAAC,EAAE,OAAAC,GAAO,OAAAC,GAAO,MAAAC,GAAM,aAAAC,GAAa,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,GAAQC,MAAQ;AAOvE,UAAMC,IAAsCP,IACvC,EAAE,yBAAyBA,MAC5B;AACJ,WACE,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAF;AAAA,QACC,GAAGD;AAAA,QACJ,kBAAe;AAAA,QACf,oBAAkBH,KAAe;AAAA,QACjC,WAAWP,EAAqB,EAAE,aAAAO,GAAa,WAAAC,GAAW;AAAA,QAE1D,OAAAC;AAAA,QAEA,UAAA;AAAA,UAAA,gBAAAK;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAQA;AAAA;AAAA,gBAEA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,cAAA,EACA,KAAK,GAAG;AAAA,cAEV,OAAOF;AAAA,cACP,eAAY;AAAA,cAEX,UAAAN,uBAASS,GAAA,CAAA,CAAS;AAAA,YAAA;AAAA,UAAA;AAAA,UAErB,gBAAAD;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WACEP,MAAgB,aACZ,sGACA;AAAA,cAGL,UAAAH;AAAA,YAAA;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACAF,EAAa,cAAc;"}
@@ -19,7 +19,7 @@ import { a as pt } from "./tooltip-DvmfrNvB.js";
19
19
  import { P as q } from "./popover-Cqcjx-Ny.js";
20
20
  import { D as Ae } from "./dropdown-menu-DU-Hrf33.js";
21
21
  import { D as B } from "./dialog-UbKJCi1X.js";
22
- import { C as We } from "./color-picker-D-tUwxxT.js";
22
+ import { C as We } from "./color-picker-oZ6zYks8.js";
23
23
  import { T as Ie } from "./text-input-CUvCb6ST.js";
24
24
  import { C as Xt } from "./checkbox-BuZ1u__2.js";
25
25
  import { F as Ut } from "./file-upload-CwxdqkMK.js";
@@ -2626,4 +2626,4 @@ export {
2626
2626
  hn as r,
2627
2627
  Qn as w
2628
2628
  };
2629
- //# sourceMappingURL=rich-text-editor-DARnq_6N.js.map
2629
+ //# sourceMappingURL=rich-text-editor-BDfFtK4H.js.map