@alfadocs/ui-kit 1.12.6 → 1.14.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/actions-cell-renderer-yy03OgRL.js +137 -0
- package/dist/_chunks/{address-fields-CZP4Wncx.js → address-fields-CZ0pEdEI.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-DnbfEJnr.js → ai-prompt-input-CrHr-5H8.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BfhxWPO3.js → anamnesis-summary-rows-CRWO8x8g.js} +4 -4
- package/dist/_chunks/{audio-recorder-EWBCNIsd.js → audio-recorder-DXG6LTtO.js} +2 -2
- package/dist/_chunks/{autocomplete-BrONKN8l.js → autocomplete-MpBhz-fG.js} +86 -74
- package/dist/_chunks/{balance-badge-cell-7L6nzB29.js → balance-badge-cell-CgkxYO96.js} +9 -8
- package/dist/_chunks/{bishop-score-Cnu0xs-z.js → bishop-score-CJUVBfAu.js} +2 -2
- package/dist/_chunks/{booking-CBHKdsZl.js → booking-DQbo6mQF.js} +609 -591
- package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
- package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
- package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
- package/dist/_chunks/calendar-workspace-DI49_t6t.js +7429 -0
- package/dist/_chunks/{care-plan-card-aDN4oem9.js → care-plan-card-D-FMfDKH.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-BEhANdBE.js → care-plan-entry-card-Bvw_9T-d.js} +2 -2
- package/dist/_chunks/{care-plan-header-CkpPyQqG.js → care-plan-header-B5CBE0zu.js} +2 -2
- package/dist/_chunks/{city-input-towzBenY.js → city-input-DaQc-Hbj.js} +2 -2
- package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
- package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
- package/dist/_chunks/{combobox-DiMLItyu.js → combobox-D7_NLE2Z.js} +89 -81
- package/dist/_chunks/{contact-profile-card-BMIBr5s9.js → contact-profile-card-BZqi8Hck.js} +38 -36
- package/dist/_chunks/{country-select-UEF9BEeQ.js → country-select-DzbPFktV.js} +2 -2
- package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
- package/dist/_chunks/{document-preview-oyx9RhCo.js → document-preview-CDb-n_W7.js} +2 -2
- package/dist/_chunks/{face-scheme-CZaKm6fG.js → face-scheme-DA2vjqaM.js} +2 -2
- package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
- package/dist/_chunks/{file-manager-C0y7HBAN.js → file-manager-DJMeB3V8.js} +138 -153
- package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
- package/dist/_chunks/{gestational-age-calculator-CxZelpu2.js → gestational-age-calculator-CiOQjzgx.js} +2 -2
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/key-value-pair-BIBdZBLg.js +188 -0
- package/dist/_chunks/{link-cell-renderer-CenJx-_7.js → link-cell-renderer-CIASXsVM.js} +4 -4
- package/dist/_chunks/{multi-select-DqL4o0qV.js → multi-select-DYOvx2SJ.js} +56 -48
- package/dist/_chunks/{muscle-scheme-yfzP_xoJ.js → muscle-scheme-BSJsI4-I.js} +2 -2
- package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
- package/dist/_chunks/{optical-prescription-Dj3Eh5Ok.js → optical-prescription-BvwuqTpl.js} +2 -2
- package/dist/_chunks/{patient-details-xrqe13az.js → patient-details-BfzvFnxQ.js} +75 -94
- package/dist/_chunks/{patient-search-D5ufYoRc.js → patient-search-HeEUB-_X.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CBfuDvJ5.js → patient-summary-card-D5Vfa321.js} +3 -3
- package/dist/_chunks/{payment-request-card-YVCcCZ25.js → payment-request-card-lmKLwsDs.js} +2 -2
- package/dist/_chunks/{periodontal-chart-BatZEFar.js → periodontal-chart-B9fphroR.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-BBpY_rBc.js → periodontal-chart-card-qEZPXj83.js} +2 -2
- package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
- package/dist/_chunks/{pregnancy-dating-DtToyMyc.js → pregnancy-dating-D2wchD11.js} +2 -2
- package/dist/_chunks/{province-select-BDywtmL-.js → province-select-BBc7s7vR.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
- package/dist/_chunks/{select-BW5ecXlX.js → select-Bi8zril7.js} +165 -136
- package/dist/_chunks/signature-CpFNpsVK.js +21 -0
- package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
- package/dist/_chunks/{signature-request-DVDTKLjM.js → signature-request-CUe903hj.js} +2 -2
- package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
- package/dist/_chunks/{tabs-CBb2AidH.js → tabs-DqKtTIjZ.js} +2 -2
- package/dist/_chunks/{tasks-panel-Do5SFp-j.js → tasks-panel-DPCNaRko.js} +2 -2
- package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
- package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
- package/dist/_chunks/{tooth-scheme-WdyVymQ1.js → tooth-scheme-2IsmbE6w.js} +2 -2
- package/dist/_chunks/{unit-converter-BPumXMA6.js → unit-converter-C6jMjqL9.js} +2 -2
- package/dist/_chunks/{workflow-map-DE_ribRM.js → workflow-map-dNzJjBWG.js} +104 -113
- package/dist/agent-catalog.json +867 -1
- package/dist/agent-i18n/en.json +27 -0
- package/dist/components/_shared/option.d.ts +1 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +39 -38
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts +16 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/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/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +24 -0
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/toast/index.js +7 -6
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +680 -0
- package/dist/i18n/locales/ar.js +680 -0
- package/dist/i18n/locales/de.d.ts +680 -0
- package/dist/i18n/locales/de.js +680 -0
- package/dist/i18n/locales/el.d.ts +680 -0
- package/dist/i18n/locales/el.js +680 -0
- package/dist/i18n/locales/en.d.ts +680 -0
- package/dist/i18n/locales/en.js +680 -0
- package/dist/i18n/locales/es.d.ts +680 -0
- package/dist/i18n/locales/es.js +680 -0
- package/dist/i18n/locales/fr.d.ts +680 -0
- package/dist/i18n/locales/fr.js +680 -0
- package/dist/i18n/locales/hi.d.ts +680 -0
- package/dist/i18n/locales/hi.js +680 -0
- package/dist/i18n/locales/it.d.ts +680 -0
- package/dist/i18n/locales/it.js +680 -0
- package/dist/i18n/locales/ja.d.ts +680 -0
- package/dist/i18n/locales/ja.js +680 -0
- package/dist/i18n/locales/nl.d.ts +680 -0
- package/dist/i18n/locales/nl.js +680 -0
- package/dist/i18n/locales/pl.d.ts +680 -0
- package/dist/i18n/locales/pl.js +680 -0
- package/dist/i18n/locales/pt.d.ts +680 -0
- package/dist/i18n/locales/pt.js +680 -0
- package/dist/i18n/locales/ro.d.ts +680 -0
- package/dist/i18n/locales/ro.js +680 -0
- package/dist/i18n/locales/ru.d.ts +680 -0
- package/dist/i18n/locales/ru.js +680 -0
- package/dist/i18n/locales/sq.d.ts +680 -0
- package/dist/i18n/locales/sq.js +680 -0
- package/dist/i18n/locales/sv.d.ts +680 -0
- package/dist/i18n/locales/sv.js +680 -0
- package/dist/i18n/locales/tr.d.ts +680 -0
- package/dist/i18n/locales/tr.js +680 -0
- package/dist/i18n/locales/zh.d.ts +680 -0
- package/dist/i18n/locales/zh.js +680 -0
- package/dist/index.js +830 -812
- package/dist/locales/ar.json +680 -0
- package/dist/locales/de.json +680 -0
- package/dist/locales/el.json +680 -0
- package/dist/locales/en.json +680 -0
- package/dist/locales/es.json +680 -0
- package/dist/locales/fr.json +680 -0
- package/dist/locales/hi.json +680 -0
- package/dist/locales/it.json +680 -0
- package/dist/locales/ja.json +680 -0
- package/dist/locales/nl.json +680 -0
- package/dist/locales/pl.json +680 -0
- package/dist/locales/pt.json +680 -0
- package/dist/locales/ro.json +680 -0
- package/dist/locales/ru.json +680 -0
- package/dist/locales/sq.json +680 -0
- package/dist/locales/sv.json +680 -0
- package/dist/locales/tr.json +680 -0
- package/dist/locales/zh.json +680 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +62 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +358 -0
- package/dist/patterns/calendar/calendar.data.d.ts +122 -0
- package/dist/patterns/calendar/calendar.host.d.ts +10 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
- package/dist/patterns/calendar/calendar.model.d.ts +684 -0
- package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +77 -0
- package/dist/patterns/calendar/calendar.types.d.ts +413 -0
- package/dist/patterns/calendar/index.d.ts +13 -0
- package/dist/patterns/calendar/index.js +19 -0
- package/dist/patterns/signature-request/index.js +1 -1
- package/package.json +5 -1
- package/dist/_chunks/actions-cell-renderer-DnSLrgQD.js +0 -1945
- package/dist/_chunks/key-value-pair-BubG4fUa.js +0 -144
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as g, useState as y, useCallback as z } from "react";
|
|
3
|
-
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as I } from "react-i18next";
|
|
5
|
-
import { I as K } from "./icon-button-DA2CAGHZ.js";
|
|
6
|
-
import { C as T } from "./check-DrFSN__t.js";
|
|
7
|
-
import { C as j } from "./copy-vRpqqHtY.js";
|
|
8
|
-
const B = P("ds:flex", {
|
|
9
|
-
variants: {
|
|
10
|
-
layout: {
|
|
11
|
-
horizontal: "ds:flex-row ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
12
|
-
vertical: "ds:flex-col ds:gap-[var(--spacing-xs)]"
|
|
13
|
-
},
|
|
14
|
-
/** Internal — flips the root to a horizontal flex when an icon
|
|
15
|
-
is present so the icon can sit at the leading edge of both
|
|
16
|
-
horizontal and vertical inner stacks. `items-start` keeps the
|
|
17
|
-
icon anchored to the label row even when the value wraps. */
|
|
18
|
-
hasIcon: {
|
|
19
|
-
true: "ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
20
|
-
false: ""
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
layout: "horizontal",
|
|
25
|
-
hasIcon: !1
|
|
26
|
-
}
|
|
27
|
-
}), _ = g(
|
|
28
|
-
({
|
|
29
|
-
label: o,
|
|
30
|
-
value: e,
|
|
31
|
-
layout: s = "horizontal",
|
|
32
|
-
mono: r = !1,
|
|
33
|
-
copyable: l = !1,
|
|
34
|
-
copyText: v,
|
|
35
|
-
icon: d,
|
|
36
|
-
className: h,
|
|
37
|
-
...k
|
|
38
|
-
}, x) => {
|
|
39
|
-
const { t: n } = I(), [C, m] = y(!1), [N, t] = y(""), c = v ?? (typeof e == "string" ? e : void 0), V = z(async () => {
|
|
40
|
-
if (c)
|
|
41
|
-
try {
|
|
42
|
-
await navigator.clipboard.writeText(c), m(!0), t(n("keyValuePair.copied")), setTimeout(() => {
|
|
43
|
-
m(!1), t("");
|
|
44
|
-
}, 2e3);
|
|
45
|
-
} catch {
|
|
46
|
-
t(n("keyValuePair.notAvailable")), setTimeout(() => t(""), 3e3);
|
|
47
|
-
}
|
|
48
|
-
}, [c, n]), b = [
|
|
49
|
-
"type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
|
|
50
|
-
// `flex-1` lets the value absorb the remaining inline space
|
|
51
|
-
// when the KVP root flexes the icon / label / value as direct
|
|
52
|
-
// siblings (`hasIcon && layout === 'horizontal'`). Without it,
|
|
53
|
-
// the value would shrink to its content width and the row
|
|
54
|
-
// would leave inline-end whitespace. Vertical layout doesn't
|
|
55
|
-
// need it because the value is below the label, not beside it.
|
|
56
|
-
s === "horizontal" ? "ds:flex-1" : "",
|
|
57
|
-
r ? "ds:font-[family-name:var(--font-mono)]" : ""
|
|
58
|
-
].filter(Boolean).join(" "), u = d != null, w = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", p = /* @__PURE__ */ i(f, { children: [
|
|
59
|
-
/* @__PURE__ */ i("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
60
|
-
o,
|
|
61
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
|
|
62
|
-
] }),
|
|
63
|
-
/* @__PURE__ */ a("span", { className: b, children: e }),
|
|
64
|
-
l && /* @__PURE__ */ a(
|
|
65
|
-
K,
|
|
66
|
-
{
|
|
67
|
-
icon: C ? /* @__PURE__ */ a(T, {}) : /* @__PURE__ */ a(j, {}),
|
|
68
|
-
size: "sm",
|
|
69
|
-
"aria-label": n("keyValuePair.copy", { label: o }),
|
|
70
|
-
onClick: V,
|
|
71
|
-
intent: "ghost",
|
|
72
|
-
className: s === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] });
|
|
76
|
-
return /* @__PURE__ */ i(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
ref: x,
|
|
80
|
-
className: B({ layout: s, hasIcon: u, className: h }),
|
|
81
|
-
"data-component": "key-value-pair",
|
|
82
|
-
...k,
|
|
83
|
-
children: [
|
|
84
|
-
u ? /* @__PURE__ */ i(f, { children: [
|
|
85
|
-
/* @__PURE__ */ a(
|
|
86
|
-
"span",
|
|
87
|
-
{
|
|
88
|
-
"aria-hidden": "true",
|
|
89
|
-
className: "ds:inline-flex ds:shrink-0 ds:translate-y-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
|
|
90
|
-
children: d
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
s === "horizontal" ? p : /* @__PURE__ */ a("div", { className: w, children: p })
|
|
94
|
-
] }) : p,
|
|
95
|
-
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: N })
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
_.displayName = "KeyValuePair";
|
|
102
|
-
const A = {
|
|
103
|
-
sm: "ds:gap-y-[var(--spacing-sm)]",
|
|
104
|
-
md: "ds:gap-y-[var(--spacing-md)]",
|
|
105
|
-
lg: "ds:gap-y-[var(--spacing-lg)]"
|
|
106
|
-
}, L = g(
|
|
107
|
-
({ children: o, className: e, rowGap: s = "md", ...r }, l) => /* @__PURE__ */ a(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
ref: l,
|
|
111
|
-
"data-component": "key-value-list",
|
|
112
|
-
className: [
|
|
113
|
-
"ds:grid ds:grid-cols-[auto_auto_minmax(0,1fr)]",
|
|
114
|
-
"ds:gap-x-[var(--spacing-md)]",
|
|
115
|
-
A[s],
|
|
116
|
-
// Each direct `data-component="key-value-pair"` child becomes
|
|
117
|
-
// a subgrid row spanning all three columns. The KVP's own
|
|
118
|
-
// flex layout still works inside the cell (icon shrinks-0,
|
|
119
|
-
// label shrinks-0, value flexes) — subgrid just aligns the
|
|
120
|
-
// boundaries between siblings.
|
|
121
|
-
'ds:[&>[data-component="key-value-pair"]]:grid',
|
|
122
|
-
'ds:[&>[data-component="key-value-pair"]]:grid-cols-subgrid',
|
|
123
|
-
'ds:[&>[data-component="key-value-pair"]]:col-span-3',
|
|
124
|
-
'ds:[&>[data-component="key-value-pair"]]:items-baseline',
|
|
125
|
-
// Unset the KVP's intra-row `gap-sm` so the subgrid inherits
|
|
126
|
-
// the parent KeyValueList's `gap-x-md` for every track gap
|
|
127
|
-
// (icon→label and label→value). `gap-0` here would override
|
|
128
|
-
// the parent's gap and crowd the icon against the label;
|
|
129
|
-
// `[gap:normal]` is the subgrid-spec way to defer to the
|
|
130
|
-
// parent.
|
|
131
|
-
'ds:[&>[data-component="key-value-pair"]]:[gap:normal]',
|
|
132
|
-
e
|
|
133
|
-
].filter(Boolean).join(" "),
|
|
134
|
-
...r,
|
|
135
|
-
children: o
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
);
|
|
139
|
-
L.displayName = "KeyValueList";
|
|
140
|
-
export {
|
|
141
|
-
L as K,
|
|
142
|
-
_ as a
|
|
143
|
-
};
|
|
144
|
-
//# sourceMappingURL=key-value-pair-BubG4fUa.js.map
|