@alfadocs/ui-kit 1.39.0 → 1.41.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 (113) hide show
  1. package/dist/_chunks/{ai-consent-banner-DvtaM3yg.js → ai-consent-banner-D7I2U-cz.js} +37 -36
  2. package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
  3. package/dist/_chunks/{booking-Dn3jvv3K.js → booking-D43ASl8y.js} +1109 -1103
  4. package/dist/_chunks/{calendar-workspace-B-fUbm62.js → calendar-workspace-UllCER2k.js} +2170 -2163
  5. package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
  6. package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
  7. package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
  8. package/dist/_chunks/help-me-write-templates-GB70jnV9.js +764 -0
  9. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
  10. package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
  11. package/dist/_chunks/{notes-panel-CAD1Ytcj.js → notes-panel-_diLt8Cj.js} +76 -73
  12. package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
  13. package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
  14. package/dist/_chunks/rich-text-editor-D7AKKAQ2.js +3119 -0
  15. package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
  16. package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
  17. package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
  18. package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
  19. package/dist/agent-catalog.json +87 -1
  20. package/dist/agent-i18n/en.json +7 -0
  21. package/dist/components/_shared/format-price.d.ts +6 -0
  22. package/dist/components/_shared/index.d.ts +1 -1
  23. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
  24. package/dist/components/ai-consent-banner/index.d.ts +1 -1
  25. package/dist/components/ai-consent-banner/index.js +1 -1
  26. package/dist/components/booking/booking-types.d.ts +6 -0
  27. package/dist/components/booking/cascade.d.ts +6 -0
  28. package/dist/components/booking/index.js +1 -1
  29. package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
  30. package/dist/components/contact-profile-card/index.js +1 -1
  31. package/dist/components/editor-overlay/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -0
  33. package/dist/components/money/index.js +1 -1
  34. package/dist/components/notes-panel/index.d.ts +1 -0
  35. package/dist/components/notes-panel/index.js +1 -1
  36. package/dist/components/notes-panel/notes-panel.d.ts +8 -1
  37. package/dist/components/panel-subview/index.js +1 -1
  38. package/dist/components/practice-results/index.js +1 -1
  39. package/dist/components/practice-results/practice-results.d.ts +2 -1
  40. package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
  41. package/dist/components/rich-text-editor/index.d.ts +1 -1
  42. package/dist/components/rich-text-editor/index.js +1 -1
  43. package/dist/components/rich-text-editor/rich-text-editor.d.ts +122 -0
  44. package/dist/components/sidebar/index.js +1 -1
  45. package/dist/components/treatment-receipt/index.js +1 -1
  46. package/dist/host-compat.css +13 -1
  47. package/dist/i18n/locales/ar.d.ts +92 -11
  48. package/dist/i18n/locales/ar.js +94 -13
  49. package/dist/i18n/locales/de.d.ts +92 -11
  50. package/dist/i18n/locales/de.js +94 -13
  51. package/dist/i18n/locales/el.d.ts +92 -11
  52. package/dist/i18n/locales/el.js +94 -13
  53. package/dist/i18n/locales/en.d.ts +81 -0
  54. package/dist/i18n/locales/en.js +83 -2
  55. package/dist/i18n/locales/es.d.ts +92 -11
  56. package/dist/i18n/locales/es.js +94 -13
  57. package/dist/i18n/locales/fr.d.ts +92 -11
  58. package/dist/i18n/locales/fr.js +94 -13
  59. package/dist/i18n/locales/hi.d.ts +92 -11
  60. package/dist/i18n/locales/hi.js +94 -13
  61. package/dist/i18n/locales/it.d.ts +92 -11
  62. package/dist/i18n/locales/it.js +94 -13
  63. package/dist/i18n/locales/ja.d.ts +92 -11
  64. package/dist/i18n/locales/ja.js +94 -13
  65. package/dist/i18n/locales/nl.d.ts +92 -11
  66. package/dist/i18n/locales/nl.js +94 -13
  67. package/dist/i18n/locales/pl.d.ts +92 -11
  68. package/dist/i18n/locales/pl.js +94 -13
  69. package/dist/i18n/locales/pt.d.ts +92 -11
  70. package/dist/i18n/locales/pt.js +94 -13
  71. package/dist/i18n/locales/ro.d.ts +92 -11
  72. package/dist/i18n/locales/ro.js +94 -13
  73. package/dist/i18n/locales/ru.d.ts +92 -11
  74. package/dist/i18n/locales/ru.js +94 -13
  75. package/dist/i18n/locales/sq.d.ts +92 -11
  76. package/dist/i18n/locales/sq.js +94 -13
  77. package/dist/i18n/locales/sv.d.ts +92 -11
  78. package/dist/i18n/locales/sv.js +94 -13
  79. package/dist/i18n/locales/tr.d.ts +92 -11
  80. package/dist/i18n/locales/tr.js +94 -13
  81. package/dist/i18n/locales/zh.d.ts +92 -11
  82. package/dist/i18n/locales/zh.js +94 -13
  83. package/dist/index.js +143 -136
  84. package/dist/locales/ar.json +94 -13
  85. package/dist/locales/de.json +94 -13
  86. package/dist/locales/el.json +94 -13
  87. package/dist/locales/en.json +83 -2
  88. package/dist/locales/es.json +94 -13
  89. package/dist/locales/fr.json +94 -13
  90. package/dist/locales/hi.json +94 -13
  91. package/dist/locales/it.json +94 -13
  92. package/dist/locales/ja.json +94 -13
  93. package/dist/locales/nl.json +94 -13
  94. package/dist/locales/pl.json +94 -13
  95. package/dist/locales/pt.json +94 -13
  96. package/dist/locales/ro.json +94 -13
  97. package/dist/locales/ru.json +94 -13
  98. package/dist/locales/sq.json +94 -13
  99. package/dist/locales/sv.json +94 -13
  100. package/dist/locales/tr.json +94 -13
  101. package/dist/locales/zh.json +94 -13
  102. package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
  103. package/dist/patterns/calendar/calendar.sheets.d.ts +6 -1
  104. package/dist/patterns/calendar/index.js +1 -1
  105. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
  106. package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
  107. package/dist/patterns/help-me-write-templates/index.js +10 -0
  108. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  109. package/dist/tokens.css +51 -42
  110. package/package.json +5 -1
  111. package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
  112. package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
  113. package/dist/_chunks/rich-text-editor-C6fE-uP4.js +0 -2627
@@ -1,15 +1,15 @@
1
1
  import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as N, useState as k, useRef as q, useMemo as I } from "react";
3
- import { c as L } from "./index-D2ZczOXr.js";
4
- import { useTranslation as R } from "react-i18next";
2
+ import { forwardRef as k, useState as q, useRef as I, useMemo as L } from "react";
3
+ import { c as R } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as w } from "react-i18next";
5
5
  import { A as d } from "./alert-CiQ5Pa3Q.js";
6
- import { B as w } from "./badge-BudgzTe_.js";
7
- import { B as T } from "./button-CaUe1uyd.js";
8
- import { C as V } from "./checkbox-CZkipDn7.js";
9
- import { S as j } from "./spinner-hbwuKwMf.js";
10
- import { T as z } from "./timestamp-BV2lC-wV.js";
11
- import { u as G } from "./registry-DvAUVLHh.js";
12
- const K = {
6
+ import { B as T } from "./badge-BudgzTe_.js";
7
+ import { B as V } from "./button-CaUe1uyd.js";
8
+ import { C as j } from "./checkbox-CZkipDn7.js";
9
+ import { S as z } from "./spinner-hbwuKwMf.js";
10
+ import { T as G } from "./timestamp-BV2lC-wV.js";
11
+ import { u as K } from "./registry-DvAUVLHh.js";
12
+ const M = {
13
13
  id: "ai-consent-banner",
14
14
  capabilities: [],
15
15
  state: {
@@ -39,7 +39,7 @@ const K = {
39
39
  description: "Sourced from the id prop. Required to address a specific banner from the agent."
40
40
  }
41
41
  }
42
- }, M = L("ds:w-full ds:text-[color:var(--foreground)]", {
42
+ }, P = R("ds:w-full ds:text-[color:var(--foreground)]", {
43
43
  variants: {
44
44
  state: {
45
45
  granted: "",
@@ -54,7 +54,7 @@ const K = {
54
54
  function u(a, s) {
55
55
  return s ? "pending" : a ? "granted" : "required";
56
56
  }
57
- const P = N(
57
+ const D = k(
58
58
  ({
59
59
  id: a,
60
60
  granted: s,
@@ -63,29 +63,30 @@ const P = N(
63
63
  canGrant: f = !0,
64
64
  pending: c = !1,
65
65
  onGrantConsent: g,
66
- "aria-label": h,
67
- className: v,
68
- ...b
69
- }, C) => {
70
- const { t: e } = R(), t = u(s, c), [o, B] = k(!1), p = q(o);
66
+ headingLevel: h = 5,
67
+ "aria-label": v,
68
+ className: b,
69
+ ...C
70
+ }, B) => {
71
+ const { t: e } = w(), t = u(s, c), [o, y] = q(!1), p = I(o);
71
72
  p.current = o;
72
- const y = I(
73
+ const A = L(
73
74
  () => ({
74
75
  getState: () => u(s, c),
75
76
  isArmed: () => p.current
76
77
  }),
77
78
  [s, c]
78
79
  );
79
- G(K, y, a);
80
- const A = h ?? e("aiConsentBanner.regionLabel", "AI assistance consent"), x = t === "granted" ? "success" : "info";
80
+ K(M, A, a);
81
+ const x = v ?? e("aiConsentBanner.regionLabel", "AI assistance consent"), S = t === "granted" ? "success" : "info";
81
82
  let i;
82
83
  return t === "granted" ? i = /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
83
84
  /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
84
- /* @__PURE__ */ n(w, { variant: "success", children: e("aiConsentBanner.badge.granted", "Consent granted") }),
85
+ /* @__PURE__ */ n(T, { variant: "success", children: e("aiConsentBanner.badge.granted", "Consent granted") }),
85
86
  l !== void 0 ? /* @__PURE__ */ r("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
86
87
  e("aiConsentBanner.grantedAtPrefix", "Granted"),
87
88
  " ",
88
- /* @__PURE__ */ n(z, { value: l, format: "relative", shape: "inline" })
89
+ /* @__PURE__ */ n(G, { value: l, format: "relative", shape: "inline" })
89
90
  ] }) : null
90
91
  ] }),
91
92
  m ? /* @__PURE__ */ n("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: e("aiConsentBanner.grantedBy", {
@@ -94,7 +95,7 @@ const P = N(
94
95
  }) }) : null
95
96
  ] }) : t === "pending" ? i = /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
96
97
  /* @__PURE__ */ n(
97
- j,
98
+ z,
98
99
  {
99
100
  variant: "pulse",
100
101
  size: "sm",
@@ -104,10 +105,10 @@ const P = N(
104
105
  /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e("aiConsentBanner.pendingLabel", "Saving consent…") })
105
106
  ] }) : i = f ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
106
107
  /* @__PURE__ */ n(
107
- V,
108
+ j,
108
109
  {
109
110
  checked: o,
110
- onCheckedChange: (S) => B(S === !0),
111
+ onCheckedChange: (N) => y(N === !0),
111
112
  label: e(
112
113
  "aiConsentBanner.confirmLabel",
113
114
  "I confirm consent has been obtained for AI assistance."
@@ -115,7 +116,7 @@ const P = N(
115
116
  }
116
117
  ),
117
118
  /* @__PURE__ */ n(d.Action, { children: /* @__PURE__ */ n(
118
- T,
119
+ V,
119
120
  {
120
121
  intent: "primary",
121
122
  size: "sm",
@@ -130,23 +131,23 @@ const P = N(
130
131
  ) }), /* @__PURE__ */ n(
131
132
  "div",
132
133
  {
133
- ref: C,
134
+ ref: B,
134
135
  role: "region",
135
- "aria-label": A,
136
+ "aria-label": x,
136
137
  "aria-busy": t === "pending" ? !0 : void 0,
137
138
  "data-component": "ai-consent-banner",
138
139
  "data-component-id": a,
139
140
  "data-state": t,
140
141
  id: a,
141
- className: M({ state: t, className: v }),
142
- ...b,
142
+ className: P({ state: t, className: b }),
143
+ ...C,
143
144
  children: /* @__PURE__ */ r(
144
145
  d,
145
146
  {
146
- variant: x,
147
+ variant: S,
147
148
  icon: t === "pending" ? null : void 0,
148
149
  children: [
149
- /* @__PURE__ */ n(d.Title, { children: e("aiConsentBanner.title", "AI assistance consent") }),
150
+ /* @__PURE__ */ n(d.Title, { as: `h${h}`, children: e("aiConsentBanner.title", "AI assistance consent") }),
150
151
  /* @__PURE__ */ n(d.Description, { children: t === "granted" ? e(
151
152
  "aiConsentBanner.description.granted",
152
153
  "AI assistance is enabled for this record."
@@ -162,9 +163,9 @@ const P = N(
162
163
  );
163
164
  }
164
165
  );
165
- P.displayName = "AiConsentBanner";
166
+ D.displayName = "AiConsentBanner";
166
167
  export {
167
- P as A,
168
- K as a
168
+ D as A,
169
+ M as a
169
170
  };
170
- //# sourceMappingURL=ai-consent-banner-DvtaM3yg.js.map
171
+ //# sourceMappingURL=ai-consent-banner-D7I2U-cz.js.map
@@ -0,0 +1,15 @@
1
+ import { c as o } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
10
+ ["path", { d: "M19 12H5", key: "x3x0zl" }]
11
+ ], r = o("arrow-left", e);
12
+ export {
13
+ r as A
14
+ };
15
+ //# sourceMappingURL=arrow-left-BfaGqVam.js.map