@alfadocs/ui-kit 1.45.0 → 1.47.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 (178) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BXBy9c0f.js → actions-cell-renderer-B5m9lwgC.js} +2 -2
  2. package/dist/_chunks/ai-credits-notice-xszqOZTC.js +90 -0
  3. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +17 -0
  4. package/dist/_chunks/{ai-consent-banner-D7I2U-cz.js → ai-permission-notice-D7I2U-cz.js} +1 -1
  5. package/dist/_chunks/ai-sparkle-D23NT8Z_.js +45 -0
  6. package/dist/_chunks/{anamnesis-summary-rows-DQUqwWc1.js → anamnesis-summary-rows-DI-UX5r6.js} +2 -2
  7. package/dist/_chunks/{appointment-card-TgR_2GKS.js → appointment-card-DluZy8Iv.js} +2 -2
  8. package/dist/_chunks/{appointment-peek-abiR0T9e.js → appointment-peek-BsfCpiJs.js} +3 -3
  9. package/dist/_chunks/{appointment-timeline-CCnyUYKz.js → appointment-timeline-Cs5f9viN.js} +3 -3
  10. package/dist/_chunks/{appointment-tray-N0yEI8UF.js → appointment-tray-CLrGGnKR.js} +2 -2
  11. package/dist/_chunks/baby-Dku-Xvg9.js +23 -0
  12. package/dist/_chunks/{balance-badge-cell-o6LldMUA.js → balance-badge-cell-YGrYdrvR.js} +3 -3
  13. package/dist/_chunks/booking-C4MwImkS.js +3362 -0
  14. package/dist/_chunks/button-group-CA1tmu39.js +325 -0
  15. package/dist/_chunks/{calendar-U6N0F99w.js → calendar-OzSeTb4V.js} +2 -2
  16. package/dist/_chunks/{calendar-event-card-DKUnT9Be.js → calendar-event-card-B6N5h1dO.js} +57 -48
  17. package/dist/_chunks/calendar-workspace-DDnQmiIL.js +12427 -0
  18. package/dist/_chunks/{chart-PF2krCZC.js → chart-D8ucl8hH.js} +2 -2
  19. package/dist/_chunks/{data-table-CcAx_I1w.js → data-table-DnKOmEVw.js} +2 -2
  20. package/dist/_chunks/{editable-currency-cell-renderer-Psb6XKHR.js → editable-currency-cell-renderer-OUkUv7U4.js} +2 -2
  21. package/dist/_chunks/{face-scheme-Bm6pe7R8.js → face-scheme-mIhwrQXt.js} +3 -3
  22. package/dist/_chunks/{file-manager-BfLQxF5t.js → file-manager-DOcJGIx2.js} +4 -4
  23. package/dist/_chunks/{freemium-paywall-Cz-O9lQD.js → freemium-paywall-BaW5ODc9.js} +2 -2
  24. package/dist/_chunks/{header-settings-CTe45iDy.js → header-settings-BEfx_-TF.js} +2 -2
  25. package/dist/_chunks/{help-me-write-templates-GUeEn3Ff.js → help-me-write-templates-DHIwa4xR.js} +205 -199
  26. package/dist/_chunks/{hover-card-BMJBVqIf.js → hover-card-nUae8NPJ.js} +67 -62
  27. package/dist/_chunks/{icon-button-group-DkkdIygu.js → icon-button-group-DZKC6KGf.js} +181 -168
  28. package/dist/_chunks/kit-extensions-DuoFF1R3.js +94 -0
  29. package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js} +2 -2
  30. package/dist/_chunks/{notes-panel-Dkk9QPPX.js → notes-panel-CHbDDMx8.js} +83 -73
  31. package/dist/_chunks/{patient-details-C8ImUrVg.js → patient-details-yrgkSeEY.js} +2 -2
  32. package/dist/_chunks/{patient-field-row-BRSOKvme.js → patient-field-row-DCMkFGqI.js} +3 -3
  33. package/dist/_chunks/{patient-summary-card-BhmKB2KR.js → patient-summary-card-CmEFflGS.js} +59 -45
  34. package/dist/_chunks/payment-form-DqJFiplX.js +881 -0
  35. package/dist/_chunks/{phone-input-BsZIoE36.js → phone-input-IWrGOCwm.js} +40 -39
  36. package/dist/_chunks/rich-text-editor-BwDV2XkZ.js +4153 -0
  37. package/dist/_chunks/{stepper-accordion-DmVykr5F.js → stepper-accordion-jMR8NaOB.js} +2 -1
  38. package/dist/_chunks/{tasks-panel-CpcikOeY.js → tasks-panel-DncuBPIZ.js} +2 -2
  39. package/dist/_chunks/{theme-toggle-bI0pgDDv.js → theme-toggle-BP0XRGMM.js} +2 -2
  40. package/dist/_chunks/use-ai-sparkle-Cf4yVTLB.js +76 -0
  41. package/dist/_chunks/{workflow-status-xeaJTzD3.js → workflow-status-CuJAOuKL.js} +43 -42
  42. package/dist/agent-catalog.json +36 -7
  43. package/dist/agent-i18n/en.json +3 -3
  44. package/dist/components/ai-credits-notice/ai-credits-notice.agent.d.ts +3 -0
  45. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +48 -0
  46. package/dist/components/ai-credits-notice/index.d.ts +4 -0
  47. package/dist/components/ai-credits-notice/index.js +7 -0
  48. package/dist/components/{ai-consent-banner/ai-consent-banner.agent.d.ts → ai-permission-notice/ai-permission-notice.agent.d.ts} +2 -2
  49. package/dist/components/{ai-consent-banner/ai-consent-banner.d.ts → ai-permission-notice/ai-permission-notice.d.ts} +1 -1
  50. package/dist/components/ai-permission-notice/index.d.ts +4 -0
  51. package/dist/components/{ai-consent-banner → ai-permission-notice}/index.js +1 -1
  52. package/dist/components/ai-sparkle/ai-sparkle.d.ts +3 -3
  53. package/dist/components/ai-sparkle/index.js +1 -1
  54. package/dist/components/appointment-card/index.js +2 -2
  55. package/dist/components/appointment-peek/index.js +1 -1
  56. package/dist/components/appointment-timeline/index.js +1 -1
  57. package/dist/components/booking/booking-types.d.ts +60 -1
  58. package/dist/components/booking/booking.d.ts +1 -1
  59. package/dist/components/booking/details-form.d.ts +5 -1
  60. package/dist/components/booking/index.d.ts +1 -1
  61. package/dist/components/booking/index.js +1 -1
  62. package/dist/components/booking/payment.d.ts +9 -0
  63. package/dist/components/booking/use-booking-payment.d.ts +14 -0
  64. package/dist/components/button-group/index.js +1 -1
  65. package/dist/components/calendar/index.js +1 -1
  66. package/dist/components/calendar-event-card/index.js +1 -1
  67. package/dist/components/chart/index.js +1 -1
  68. package/dist/components/data-table/index.js +3 -3
  69. package/dist/components/face-scheme/index.js +1 -1
  70. package/dist/components/file-manager/index.js +1 -1
  71. package/dist/components/freemium-paywall/index.js +1 -1
  72. package/dist/components/header-settings/index.js +1 -1
  73. package/dist/components/hover-card/hover-card.d.ts +4 -0
  74. package/dist/components/hover-card/index.d.ts +1 -1
  75. package/dist/components/hover-card/index.js +3 -2
  76. package/dist/components/icon-button-group/index.js +1 -1
  77. package/dist/components/index.d.ts +2 -1
  78. package/dist/components/notes-panel/index.js +1 -1
  79. package/dist/components/notes-panel/notes-panel.d.ts +10 -0
  80. package/dist/components/patient-details/index.js +1 -1
  81. package/dist/components/patient-summary-card/index.js +1 -1
  82. package/dist/components/patient-table/index.js +1 -1
  83. package/dist/components/payment-form/index.d.ts +1 -1
  84. package/dist/components/payment-form/index.js +1 -1
  85. package/dist/components/payment-form/payment-form.d.ts +35 -3
  86. package/dist/components/phone-input/index.js +1 -1
  87. package/dist/components/rich-text-editor/editor-extensions.d.ts +54 -0
  88. package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -1
  89. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +4 -0
  90. package/dist/components/rich-text-editor/index.d.ts +2 -0
  91. package/dist/components/rich-text-editor/index.js +6 -4
  92. package/dist/components/rich-text-editor/kit-extensions.d.ts +4 -0
  93. package/dist/components/rich-text-editor/rich-text-editor.d.ts +18 -2
  94. package/dist/components/stepper-accordion/index.js +1 -1
  95. package/dist/components/tasks-panel/index.js +1 -1
  96. package/dist/components/theme-toggle/index.js +1 -1
  97. package/dist/components/workflow-status/index.js +1 -1
  98. package/dist/hooks/index.d.ts +1 -1
  99. package/dist/hooks/index.js +51 -53
  100. package/dist/hooks/use-ai-sparkle.d.ts +7 -25
  101. package/dist/host-compat.css +2 -2
  102. package/dist/i18n/locales/ar.d.ts +67 -1
  103. package/dist/i18n/locales/ar.js +69 -3
  104. package/dist/i18n/locales/de.d.ts +67 -1
  105. package/dist/i18n/locales/de.js +69 -3
  106. package/dist/i18n/locales/el.d.ts +67 -1
  107. package/dist/i18n/locales/el.js +69 -3
  108. package/dist/i18n/locales/en.d.ts +67 -1
  109. package/dist/i18n/locales/en.js +69 -3
  110. package/dist/i18n/locales/es.d.ts +67 -1
  111. package/dist/i18n/locales/es.js +69 -3
  112. package/dist/i18n/locales/fr.d.ts +67 -1
  113. package/dist/i18n/locales/fr.js +69 -3
  114. package/dist/i18n/locales/hi.d.ts +67 -1
  115. package/dist/i18n/locales/hi.js +69 -3
  116. package/dist/i18n/locales/it.d.ts +67 -1
  117. package/dist/i18n/locales/it.js +69 -3
  118. package/dist/i18n/locales/ja.d.ts +67 -1
  119. package/dist/i18n/locales/ja.js +69 -3
  120. package/dist/i18n/locales/nl.d.ts +67 -1
  121. package/dist/i18n/locales/nl.js +69 -3
  122. package/dist/i18n/locales/pl.d.ts +67 -1
  123. package/dist/i18n/locales/pl.js +69 -3
  124. package/dist/i18n/locales/pt.d.ts +67 -1
  125. package/dist/i18n/locales/pt.js +69 -3
  126. package/dist/i18n/locales/ro.d.ts +67 -1
  127. package/dist/i18n/locales/ro.js +69 -3
  128. package/dist/i18n/locales/ru.d.ts +67 -1
  129. package/dist/i18n/locales/ru.js +69 -3
  130. package/dist/i18n/locales/sq.d.ts +67 -1
  131. package/dist/i18n/locales/sq.js +69 -3
  132. package/dist/i18n/locales/sv.d.ts +67 -1
  133. package/dist/i18n/locales/sv.js +69 -3
  134. package/dist/i18n/locales/tr.d.ts +67 -1
  135. package/dist/i18n/locales/tr.js +69 -3
  136. package/dist/i18n/locales/zh.d.ts +67 -1
  137. package/dist/i18n/locales/zh.js +69 -3
  138. package/dist/index.js +648 -641
  139. package/dist/locales/ar.json +69 -3
  140. package/dist/locales/de.json +69 -3
  141. package/dist/locales/el.json +69 -3
  142. package/dist/locales/en.json +69 -3
  143. package/dist/locales/es.json +69 -3
  144. package/dist/locales/fr.json +69 -3
  145. package/dist/locales/hi.json +69 -3
  146. package/dist/locales/it.json +69 -3
  147. package/dist/locales/ja.json +69 -3
  148. package/dist/locales/nl.json +69 -3
  149. package/dist/locales/pl.json +69 -3
  150. package/dist/locales/pt.json +69 -3
  151. package/dist/locales/ro.json +69 -3
  152. package/dist/locales/ru.json +69 -3
  153. package/dist/locales/sq.json +69 -3
  154. package/dist/locales/sv.json +69 -3
  155. package/dist/locales/tr.json +69 -3
  156. package/dist/locales/zh.json +69 -3
  157. package/dist/patterns/anamnesis/index.js +1 -1
  158. package/dist/patterns/calendar/calendar-editor-fields.d.ts +33 -0
  159. package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -0
  160. package/dist/patterns/calendar/calendar-workspace.d.ts +6 -4
  161. package/dist/patterns/calendar/calendar.data.d.ts +26 -0
  162. package/dist/patterns/calendar/calendar.journey.d.ts +1 -1
  163. package/dist/patterns/calendar/calendar.sheets.d.ts +16 -5
  164. package/dist/patterns/calendar/calendar.types.d.ts +25 -9
  165. package/dist/patterns/calendar/index.js +1 -1
  166. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +11 -2
  167. package/dist/patterns/help-me-write-templates/index.js +1 -1
  168. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  169. package/dist/tokens.css +1 -1
  170. package/package.json +14 -4
  171. package/dist/_chunks/ai-sparkle-DXeP_6a0.js +0 -52
  172. package/dist/_chunks/booking-D43ASl8y.js +0 -3034
  173. package/dist/_chunks/button-group-R32U7SyV.js +0 -307
  174. package/dist/_chunks/calendar-workspace-B7KvZ1_D.js +0 -12161
  175. package/dist/_chunks/payment-form-BHMDqW9C.js +0 -767
  176. package/dist/_chunks/rich-text-editor-BrAvNajV.js +0 -3779
  177. package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +0 -103
  178. package/dist/components/ai-consent-banner/index.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.45.0",
3
+ "version": "1.47.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -890,8 +890,16 @@
890
890
  "import": "./dist/components/clinical-note-card/index.js"
891
891
  },
892
892
  "./ai-consent-banner": {
893
- "types": "./dist/components/ai-consent-banner/index.d.ts",
894
- "import": "./dist/components/ai-consent-banner/index.js"
893
+ "types": "./dist/components/ai-permission-notice/index.d.ts",
894
+ "import": "./dist/components/ai-permission-notice/index.js"
895
+ },
896
+ "./ai-permission-notice": {
897
+ "types": "./dist/components/ai-permission-notice/index.d.ts",
898
+ "import": "./dist/components/ai-permission-notice/index.js"
899
+ },
900
+ "./ai-credits-notice": {
901
+ "types": "./dist/components/ai-credits-notice/index.d.ts",
902
+ "import": "./dist/components/ai-credits-notice/index.js"
895
903
  },
896
904
  "./appointment-peek": {
897
905
  "types": "./dist/components/appointment-peek/index.d.ts",
@@ -943,9 +951,10 @@
943
951
  },
944
952
  "scripts": {
945
953
  "dev": "vite",
946
- "build": "vite build && npm run build:host-compat && npm run build:types && npm run build:locales && npm run build:agent-catalog && npm run verify:build && npm run check:preflight-bleed && npm run check:exports",
954
+ "build": "vite build && npm run build:host-compat && npm run build:types && npm run build:locales && npm run build:agent-catalog && npm run verify:build && npm run check:preflight-bleed && npm run check:exports && npm run check:blockable-names",
947
955
  "verify:build": "node scripts/verify-build.mjs",
948
956
  "check:exports": "node scripts/check-exports-coverage.mjs",
957
+ "check:blockable-names": "node scripts/check-blockable-names.mjs",
949
958
  "build:host-compat": "node scripts/build-host-compat.mjs",
950
959
  "check:host-compat": "node scripts/build-host-compat.mjs --check",
951
960
  "check:preflight-bleed": "node scripts/check-preflight-bleed.mjs",
@@ -1148,6 +1157,7 @@
1148
1157
  "@testing-library/dom": "^10.4.1",
1149
1158
  "@testing-library/jest-dom": "^6.6.3",
1150
1159
  "@testing-library/react": "^16.1.0",
1160
+ "@testing-library/user-event": "^14.6.1",
1151
1161
  "@types/dompurify": "^3.0.5",
1152
1162
  "@types/google.maps": "^3.58.1",
1153
1163
  "@types/react": "^19.2.0",
@@ -1,52 +0,0 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { c as p } from "./index-D2ZczOXr.js";
4
- import { C as m, a as o, b as e, S as c, B as t } from "./use-ai-sparkle-CyQSRTCe.js";
5
- import { A as n } from "./astroid-BN4f5VXU.js";
6
- const k = p("ds:pointer-events-none", {
7
- variants: {
8
- state: {
9
- intro: "",
10
- working: "",
11
- landed: ""
12
- }
13
- }
14
- }), S = i(
15
- ({ state: s }, d) => s ? /* @__PURE__ */ l(
16
- "span",
17
- {
18
- ref: d,
19
- "data-component": "ai-sparkle",
20
- "aria-hidden": "true",
21
- className: k({ state: s }),
22
- children: [
23
- m.map((a) => /* @__PURE__ */ r(
24
- "span",
25
- {
26
- className: `${o} ${e[s]} ${a.lag}`,
27
- children: /* @__PURE__ */ r(
28
- "span",
29
- {
30
- className: `ds:block ds:rounded-full ds:bg-[var(--ai-sparkle)] ds:shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)] ${a.dot}`
31
- }
32
- )
33
- },
34
- a.key
35
- )),
36
- /* @__PURE__ */ r("span", { className: `${o} ${e[s]}`, children: /* @__PURE__ */ r(n, { className: "ds:block ds:size-3 ds:fill-current ds:text-[color:var(--primary-foreground)] ds:drop-shadow-[0_0_var(--spacing-2xs)_var(--ai-sparkle)]" }) }),
37
- c.map((a) => /* @__PURE__ */ r(
38
- n,
39
- {
40
- className: `${a.className} ${t[s]}`
41
- },
42
- a.key
43
- ))
44
- ]
45
- }
46
- ) : null
47
- );
48
- S.displayName = "AiSparkle";
49
- export {
50
- S as A
51
- };
52
- //# sourceMappingURL=ai-sparkle-DXeP_6a0.js.map