@alfadocs/ui-kit 1.66.0 → 1.67.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.
- package/dist/_chunks/ai-credits-exhausted-notice-DfAgfZDF.js +287 -0
- package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
- package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
- package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-qsdm4Sx4.js} +2 -2
- package/dist/_chunks/{alert-DdDpOi-P.js → alert-DjsJMGRE.js} +3 -2
- package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-BQ_EokKz.js} +2 -2
- package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-B11RR-rC.js} +2 -2
- package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-DwUTH6YN.js} +2 -2
- package/dist/_chunks/{booking-DkjatiXc.js → booking-tTVxKPQY.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-MRrzcxAy.js} +6 -6
- package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-VyQOjFVL.js} +2 -2
- package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-CXH_GYh4.js} +2 -2
- package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-Bj-Wxq7Y.js} +2 -2
- package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-PUE5Zxp9.js} +2 -2
- package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-CPOfRE0C.js} +4 -4
- package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-6DO7noHX.js} +2 -2
- package/dist/_chunks/help-me-write-templates-Bw3Q58x-.js +687 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-A-CL3mjt.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-DtSX8sYb.js} +2 -2
- package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-IdsmqRFC.js} +3 -3
- package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C-EWQTms.js} +2 -2
- package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-lY-Tb5Mo.js} +155 -176
- package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-DpAKidZ5.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-Bpto_VCD.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-BQ307qEX.js} +2 -2
- package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-XKtinW8r.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-BvoVMjH4.js} +2 -2
- package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BrUDDMXC.js} +2 -2
- package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-BxwqUZzk.js} +3 -3
- package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-aCIoptbg.js} +1653 -1743
- package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-D1P1nUQA.js} +2 -2
- package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-3u6TvRt2.js} +2 -2
- package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-Bb5MMcid.js} +2 -2
- package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-BOb57Ysw.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CVSPoP5j.js} +4 -4
- package/dist/_chunks/voice-control-panel-BJIEbDq6.js +1148 -0
- package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BdY-0bd3.js} +2 -2
- package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-CYbRD9ek.js} +2 -2
- package/dist/agent-catalog.json +50 -3
- package/dist/agent-i18n/en.json +7 -4
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
- package/dist/components/ai-credits-notice/index.d.ts +3 -0
- package/dist/components/ai-credits-notice/index.js +10 -4
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +2 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +27 -12
- package/dist/i18n/locales/ar.js +27 -12
- package/dist/i18n/locales/de.d.ts +27 -12
- package/dist/i18n/locales/de.js +27 -12
- package/dist/i18n/locales/el.d.ts +27 -12
- package/dist/i18n/locales/el.js +27 -12
- package/dist/i18n/locales/en.d.ts +27 -12
- package/dist/i18n/locales/en.js +27 -12
- package/dist/i18n/locales/es.d.ts +27 -12
- package/dist/i18n/locales/es.js +27 -12
- package/dist/i18n/locales/fr.d.ts +27 -12
- package/dist/i18n/locales/fr.js +27 -12
- package/dist/i18n/locales/hi.d.ts +27 -12
- package/dist/i18n/locales/hi.js +27 -12
- package/dist/i18n/locales/it.d.ts +27 -12
- package/dist/i18n/locales/it.js +27 -12
- package/dist/i18n/locales/ja.d.ts +27 -12
- package/dist/i18n/locales/ja.js +27 -12
- package/dist/i18n/locales/nl.d.ts +27 -12
- package/dist/i18n/locales/nl.js +27 -12
- package/dist/i18n/locales/pl.d.ts +27 -12
- package/dist/i18n/locales/pl.js +27 -12
- package/dist/i18n/locales/pt.d.ts +27 -12
- package/dist/i18n/locales/pt.js +27 -12
- package/dist/i18n/locales/ro.d.ts +27 -12
- package/dist/i18n/locales/ro.js +27 -12
- package/dist/i18n/locales/ru.d.ts +27 -12
- package/dist/i18n/locales/ru.js +27 -12
- package/dist/i18n/locales/sq.d.ts +27 -12
- package/dist/i18n/locales/sq.js +27 -12
- package/dist/i18n/locales/sv.d.ts +27 -12
- package/dist/i18n/locales/sv.js +27 -12
- package/dist/i18n/locales/tr.d.ts +27 -12
- package/dist/i18n/locales/tr.js +27 -12
- package/dist/i18n/locales/zh.d.ts +27 -12
- package/dist/i18n/locales/zh.js +27 -12
- package/dist/index.js +814 -809
- package/dist/locales/ar.json +27 -12
- package/dist/locales/de.json +27 -12
- package/dist/locales/el.json +27 -12
- package/dist/locales/en.json +27 -12
- package/dist/locales/es.json +27 -12
- package/dist/locales/fr.json +27 -12
- package/dist/locales/hi.json +27 -12
- package/dist/locales/it.json +27 -12
- package/dist/locales/ja.json +27 -12
- package/dist/locales/nl.json +27 -12
- package/dist/locales/pl.json +27 -12
- package/dist/locales/pt.json +27 -12
- package/dist/locales/ro.json +27 -12
- package/dist/locales/ru.json +27 -12
- package/dist/locales/sq.json +27 -12
- package/dist/locales/sv.json +27 -12
- package/dist/locales/tr.json +27 -12
- package/dist/locales/zh.json +27 -12
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
- package/dist/patterns/help-me-write-templates/index.js +8 -7
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
- package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
- package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
package/package.json
CHANGED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f } from "react";
|
|
3
|
-
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as v } from "react-i18next";
|
|
5
|
-
import { B as l } from "./button-D-MQxsA_.js";
|
|
6
|
-
import { P as w } from "./progress-D_g_Sl2g.js";
|
|
7
|
-
import { H as o } from "./hover-card-CTNhQXWS.js";
|
|
8
|
-
const y = x("ds:flex ds:flex-col ds:items-start", {
|
|
9
|
-
variants: {
|
|
10
|
-
mode: {
|
|
11
|
-
included: "",
|
|
12
|
-
bundles: ""
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
mode: "included"
|
|
17
|
-
}
|
|
18
|
-
}), k = f((i, m) => {
|
|
19
|
-
const { t: e, i18n: u } = v("ui"), { allowance: s, className: C, mode: t, ...N } = i, {
|
|
20
|
-
onLearnMore: D,
|
|
21
|
-
onDismiss: B,
|
|
22
|
-
onViewBundles: L,
|
|
23
|
-
onSeeCosts: M,
|
|
24
|
-
...h
|
|
25
|
-
} = N, a = !!(s && s.limit > 0), r = a && (s != null && s.resetsOn) ? new Intl.DateTimeFormat(u.language, {
|
|
26
|
-
day: "numeric",
|
|
27
|
-
month: "long"
|
|
28
|
-
}).format(s.resetsOn) : void 0, c = a ? e("aiCreditsNotice.included.allowance", {
|
|
29
|
-
remaining: s.remaining,
|
|
30
|
-
limit: s.limit
|
|
31
|
-
}) : void 0, b = t === "included" ? e("aiCreditsNotice.included.heading") : a ? e("aiCreditsNotice.bundles.headingWithAllowance", {
|
|
32
|
-
remaining: s.remaining,
|
|
33
|
-
limit: s.limit
|
|
34
|
-
}) : e("aiCreditsNotice.bundles.eyebrow"), g = t === "included" ? e("aiCreditsNotice.included.body") : a ? e("aiCreditsNotice.bundles.body", { limit: s.limit }) : e("aiCreditsNotice.bundles.bodyGeneric");
|
|
35
|
-
return /* @__PURE__ */ d(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
...h,
|
|
39
|
-
ref: m,
|
|
40
|
-
"data-component": "ai-credits-notice",
|
|
41
|
-
"data-mode": t,
|
|
42
|
-
className: y({ mode: t, className: C }),
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ n(o.Eyebrow, { children: e(t === "included" ? "aiCreditsNotice.included.eyebrow" : "aiCreditsNotice.bundles.eyebrow") }),
|
|
45
|
-
/* @__PURE__ */ n(o.Heading, { children: b }),
|
|
46
|
-
/* @__PURE__ */ d(o.Body, { children: [
|
|
47
|
-
/* @__PURE__ */ n("p", { className: "ds:m-0", children: g }),
|
|
48
|
-
t === "included" && a ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[margin-block-start:var(--spacing-sm)]", children: [
|
|
49
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ n("span", { className: "type-label", children: c }) }),
|
|
50
|
-
/* @__PURE__ */ n(
|
|
51
|
-
w,
|
|
52
|
-
{
|
|
53
|
-
value: Math.max(0, s.limit - s.remaining),
|
|
54
|
-
max: s.limit,
|
|
55
|
-
size: "sm",
|
|
56
|
-
ariaLabel: e("aiCreditsNotice.included.eyebrow"),
|
|
57
|
-
ariaValueText: c
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
r ? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: e("aiCreditsNotice.included.resetsOn", { date: r }) }) : null
|
|
61
|
-
] }) : null
|
|
62
|
-
] }),
|
|
63
|
-
t === "included" ? i.onLearnMore || i.onDismiss ? /* @__PURE__ */ d(o.Footer, { children: [
|
|
64
|
-
i.onDismiss ? /* @__PURE__ */ n(
|
|
65
|
-
l,
|
|
66
|
-
{
|
|
67
|
-
intent: "link",
|
|
68
|
-
size: "sm",
|
|
69
|
-
onClick: i.onDismiss,
|
|
70
|
-
className: "ds:me-auto",
|
|
71
|
-
children: e("aiCreditsNotice.dismiss")
|
|
72
|
-
}
|
|
73
|
-
) : null,
|
|
74
|
-
i.onLearnMore ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onLearnMore, children: e("aiCreditsNotice.included.learnMore") }) : null
|
|
75
|
-
] }) : null : /* @__PURE__ */ d(o.Footer, { children: [
|
|
76
|
-
i.onSeeCosts || i.onDismiss ? /* @__PURE__ */ d("div", { className: "ds:me-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
77
|
-
i.onSeeCosts ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onSeeCosts, children: e("aiCreditsNotice.bundles.seeCosts") }) : null,
|
|
78
|
-
i.onDismiss ? /* @__PURE__ */ n(l, { intent: "link", size: "sm", onClick: i.onDismiss, children: e("aiCreditsNotice.dismiss") }) : null
|
|
79
|
-
] }) : null,
|
|
80
|
-
/* @__PURE__ */ n(l, { intent: "tonal", size: "sm", onClick: i.onViewBundles, children: e("aiCreditsNotice.bundles.viewBundles") })
|
|
81
|
-
] })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
k.displayName = "AiCreditsNotice";
|
|
87
|
-
export {
|
|
88
|
-
k as A
|
|
89
|
-
};
|
|
90
|
-
//# sourceMappingURL=ai-credits-notice-pK9BOmEz.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const i = {
|
|
2
|
-
id: "ai-credits-notice",
|
|
3
|
-
capabilities: [],
|
|
4
|
-
state: {},
|
|
5
|
-
actions: {},
|
|
6
|
-
domHooks: {
|
|
7
|
-
root: {
|
|
8
|
-
attr: "data-component",
|
|
9
|
-
value: "ai-credits-notice",
|
|
10
|
-
description: 'Marks the element as a kit AiCreditsNotice card body. Carries a sibling `data-mode="included|bundles"` attribute for which notice is showing.'
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
i as a
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=ai-credits-notice.agent-C9L7orrP.js.map
|