@alfadocs/ui-kit 1.30.0 → 1.32.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/{address-fields-CZ0pEdEI.js → address-fields-jFfjxOQR.js} +3 -3
- package/dist/_chunks/{agenda-card-pdN49pMu.js → agenda-card-DVz3jwTf.js} +2 -2
- package/dist/_chunks/{agenda-tray-BweO8pDo.js → agenda-tray-1oDWCJdB.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js → ai-prompt-input-Dt7tpCBh.js} +2 -2
- package/dist/_chunks/{alia-sidebar-BWcWZivN.js → alia-sidebar-D18kp3p9.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js → anamnesis-summary-rows-BYgyp_i2.js} +6 -6
- package/dist/_chunks/{appointment-card-Dzr3GeVz.js → appointment-card-D-oj_ugh.js} +9 -7
- package/dist/_chunks/{appointment-timeline-DhHwmHo1.js → appointment-timeline-CymGHyIP.js} +2 -2
- package/dist/_chunks/{appointment-tray-4FUu_5NX.js → appointment-tray-DCk8gHod.js} +2 -2
- package/dist/_chunks/{audio-recorder-DXG6LTtO.js → audio-recorder-11wClczr.js} +2 -2
- package/dist/_chunks/{avatar-BNQNhoyL.js → avatar-CkDeQOSI.js} +37 -37
- package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js → balance-badge-cell-DhBtFRoW.js} +4 -4
- package/dist/_chunks/{bishop-score-CJUVBfAu.js → bishop-score-CAl7C5hm.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CcH6upht.js → bmi-calculator-Dwkih9a4.js} +3 -3
- package/dist/_chunks/{booking-AabCk7CI.js → booking-l6UGNiE1.js} +3 -3
- package/dist/_chunks/{calculator-dialog-12d3Sxaz.js → calculator-dialog-C0ixc3SU.js} +2 -2
- package/dist/_chunks/{calendar-CI9MINcR.js → calendar-Dgvl5L4T.js} +494 -438
- package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
- package/dist/_chunks/calendar-workspace-BX-zDyVR.js +9392 -0
- package/dist/_chunks/{care-plan-card-CQVboTn1.js → care-plan-card-CZW476Kg.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js → care-plan-entry-card-BMUYagEw.js} +2 -2
- package/dist/_chunks/{chat-message-DBQu10rs.js → chat-message-C-8UU2av.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BBgFd2nB.js → clinical-note-card-D2WTV2CO.js} +185 -188
- package/dist/_chunks/{color-picker-CU303VjY.js → color-picker-Bl5f0iK1.js} +28 -25
- package/dist/_chunks/{combobox-D7_NLE2Z.js → combobox-DnSdYssy.js} +216 -215
- package/dist/_chunks/{country-select-DzbPFktV.js → country-select-CfDNFG5c.js} +2 -2
- package/dist/_chunks/{data-table-DB5BiVQ0.js → data-table-DC96JJIq.js} +2 -2
- package/dist/_chunks/{dependent-selector-cJlJFAKD.js → dependent-selector-yTKKsuc9.js} +2 -2
- package/dist/_chunks/{dialog-UbKJCi1X.js → dialog-BJiLqhx6.js} +54 -46
- package/dist/_chunks/{document-preview-CDb-n_W7.js → document-preview-BrhMHNh8.js} +2 -2
- package/dist/_chunks/{due-date-calculator-BtgWeFqp.js → due-date-calculator-CxgK8vzt.js} +3 -3
- package/dist/_chunks/{entity-summary-B_vO5Ur4.js → entity-summary-5o768XLU.js} +2 -2
- package/dist/_chunks/{face-scheme-DA2vjqaM.js → face-scheme-l-CQyLs-.js} +2 -2
- package/dist/_chunks/{file-manager-Cd8V9IcZ.js → file-manager-CI2Qn8qW.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js → gestational-age-calculator-CZHVrERT.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js → link-cell-renderer-BEpMNtAa.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js → marketplace-app-shell-CK_ND8Tr.js} +2 -2
- package/dist/_chunks/{message-card-D8GB4FdF.js → message-card-BUMv16un.js} +2 -2
- package/dist/_chunks/{message-tray-CGIRQjx5.js → message-tray-0zsv27xX.js} +2 -2
- package/dist/_chunks/{muscle-scheme-BSJsI4-I.js → muscle-scheme-UVz_x4iE.js} +2 -2
- package/dist/_chunks/notes-panel-C4G-mhZ9.js +380 -0
- package/dist/_chunks/{operator-hero-BnFv-Uef.js → operator-hero-D7-iiFQ9.js} +2 -2
- package/dist/_chunks/{optical-prescription-BvwuqTpl.js → optical-prescription-DUJOhKz_.js} +2 -2
- package/dist/_chunks/{patient-details-DYAmq76G.js → patient-details-BGiawUHd.js} +5 -5
- package/dist/_chunks/{patient-summary-card-C9WBwct-.js → patient-summary-card--CT_gbaQ.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js → periodontal-diagnosis-lEwA8wqX.js} +3 -3
- package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js → practice-profile-hero-DQyDvpJL.js} +2 -2
- package/dist/_chunks/{practice-results-CxIsU2YO.js → practice-results-DjEzPgAK.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-m-c05DOI.js → pregnancy-dating-n5j5dAKy.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js → pregnancy-weight-gain-D5A8vPjj.js} +3 -3
- package/dist/_chunks/{province-select-BBc7s7vR.js → province-select-BaUnkg4S.js} +2 -2
- package/dist/_chunks/qr-code-DOJs4suh.js +750 -0
- package/dist/_chunks/radio-DNRe6H_8.js +193 -0
- package/dist/_chunks/radio-group-DyVBgnA3.js +297 -0
- package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js} +2 -2
- package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js → rich-text-editor-CQ7yZdG3.js} +3 -3
- package/dist/_chunks/select-CLSUnKjF.js +520 -0
- package/dist/_chunks/signature-request-vihDT8On.js +2232 -0
- package/dist/_chunks/{tabs-DqKtTIjZ.js → tabs-BnRaLT0y.js} +2 -2
- package/dist/_chunks/{tasks-panel-DPCNaRko.js → tasks-panel-DQuaVvl5.js} +2 -2
- package/dist/_chunks/{timeline-r-8IUoBS.js → timeline-Bs9Erxlo.js} +38 -36
- package/dist/_chunks/{tooth-scheme-C9jssOmy.js → tooth-scheme-Qe7LO5Di.js} +2 -2
- package/dist/_chunks/{unit-converter-C6jMjqL9.js → unit-converter-BTgU50gk.js} +2 -2
- package/dist/_chunks/{widget-picker-em4xGgv0.js → widget-picker-DvUkBemi.js} +2 -2
- package/dist/agent-catalog.json +366 -29
- package/dist/agent-i18n/en.json +27 -15
- package/dist/components/_shared/get-error-message.d.ts +3 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +26 -2
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
- 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/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +16 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +5 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +9 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/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/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +24 -5
- package/dist/components/operator-hero/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-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/practice-profile-hero/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/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/qr-encode.d.ts +14 -16
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group-context.d.ts +4 -1
- package/dist/components/radio-group/radio-group.d.ts +13 -1
- package/dist/components/radio-group/radio.d.ts +24 -1
- package/dist/components/radiograph-panel/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 +33 -0
- 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/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +2 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +118 -0
- package/dist/i18n/locales/ar.js +123 -5
- package/dist/i18n/locales/de.d.ts +128 -10
- package/dist/i18n/locales/de.js +135 -15
- package/dist/i18n/locales/el.d.ts +118 -0
- package/dist/i18n/locales/el.js +123 -5
- package/dist/i18n/locales/en.d.ts +118 -0
- package/dist/i18n/locales/en.js +123 -5
- package/dist/i18n/locales/es.d.ts +118 -0
- package/dist/i18n/locales/es.js +123 -5
- package/dist/i18n/locales/fr.d.ts +118 -0
- package/dist/i18n/locales/fr.js +122 -4
- package/dist/i18n/locales/hi.d.ts +118 -0
- package/dist/i18n/locales/hi.js +123 -5
- package/dist/i18n/locales/it.d.ts +128 -10
- package/dist/i18n/locales/it.js +133 -15
- package/dist/i18n/locales/ja.d.ts +118 -0
- package/dist/i18n/locales/ja.js +123 -5
- package/dist/i18n/locales/nl.d.ts +118 -0
- package/dist/i18n/locales/nl.js +123 -5
- package/dist/i18n/locales/pl.d.ts +118 -0
- package/dist/i18n/locales/pl.js +123 -5
- package/dist/i18n/locales/pt.d.ts +118 -0
- package/dist/i18n/locales/pt.js +123 -5
- package/dist/i18n/locales/ro.d.ts +118 -0
- package/dist/i18n/locales/ro.js +122 -4
- package/dist/i18n/locales/ru.d.ts +118 -0
- package/dist/i18n/locales/ru.js +123 -5
- package/dist/i18n/locales/sq.d.ts +118 -0
- package/dist/i18n/locales/sq.js +123 -5
- package/dist/i18n/locales/sv.d.ts +118 -0
- package/dist/i18n/locales/sv.js +123 -5
- package/dist/i18n/locales/tr.d.ts +118 -0
- package/dist/i18n/locales/tr.js +123 -5
- package/dist/i18n/locales/zh.d.ts +118 -0
- package/dist/i18n/locales/zh.js +123 -5
- package/dist/index.js +131 -130
- package/dist/locales/ar.json +123 -5
- package/dist/locales/de.json +133 -15
- package/dist/locales/el.json +123 -5
- package/dist/locales/en.json +123 -5
- package/dist/locales/es.json +123 -5
- package/dist/locales/fr.json +122 -4
- package/dist/locales/hi.json +123 -5
- package/dist/locales/it.json +133 -15
- package/dist/locales/ja.json +123 -5
- package/dist/locales/nl.json +123 -5
- package/dist/locales/pl.json +123 -5
- package/dist/locales/pt.json +123 -5
- package/dist/locales/ro.json +122 -4
- package/dist/locales/ru.json +123 -5
- package/dist/locales/sq.json +123 -5
- package/dist/locales/sv.json +123 -5
- package/dist/locales/tr.json +123 -5
- package/dist/locales/zh.json +123 -5
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +145 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +32 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +59 -0
- package/dist/patterns/calendar/calendar-notes-tool.d.ts +14 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
- package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts +18 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +26 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +8 -5
- package/dist/patterns/calendar/calendar.data.d.ts +66 -1
- package/dist/patterns/calendar/calendar.host.d.ts +2 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +42 -7
- package/dist/patterns/calendar/calendar.model.d.ts +54 -5
- package/dist/patterns/calendar/calendar.sheets.d.ts +68 -15
- package/dist/patterns/calendar/calendar.surface.d.ts +12 -2
- package/dist/patterns/calendar/calendar.types.d.ts +29 -1
- package/dist/patterns/calendar/index.d.ts +9 -6
- package/dist/patterns/calendar/index.js +15 -14
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/channel-meta.d.ts +27 -0
- package/dist/patterns/signature-request/index.d.ts +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/load-status.d.ts +13 -0
- package/dist/patterns/signature-request/person-grid.d.ts +32 -0
- package/dist/patterns/signature-request/required-documents.d.ts +127 -0
- package/dist/patterns/signature-request/signature-history.d.ts +57 -0
- package/dist/patterns/signature-request/signature-outcome.d.ts +29 -0
- package/dist/patterns/signature-request/signature-request.d.ts +390 -26
- package/dist/tokens.css +10 -2
- package/package.json +3 -1
- package/dist/_chunks/calendar-workspace-a84AHQwj.js +0 -7506
- package/dist/_chunks/notes-panel-CTNpsByN.js +0 -353
- package/dist/_chunks/qr-code-CPkEs5mG.js +0 -574
- package/dist/_chunks/radio-TWf9Q-mp.js +0 -108
- package/dist/_chunks/radio-group-rXDJADzW.js +0 -175
- package/dist/_chunks/select-Bi8zril7.js +0 -471
- package/dist/_chunks/signature-request-C-IsbkPf.js +0 -417
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsx as s, jsxs as o, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as B, createContext as G, forwardRef as O, useId as E, useState as H, useRef as _, useEffect as q } from "react";
|
|
3
|
+
import * as c from "@radix-ui/react-radio-group";
|
|
4
|
+
import { c as z } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { T as y } from "./tooltip-DvmfrNvB.js";
|
|
6
|
+
const A = G(null);
|
|
7
|
+
function D() {
|
|
8
|
+
return B(A);
|
|
9
|
+
}
|
|
10
|
+
const J = z(
|
|
11
|
+
[
|
|
12
|
+
"ds:group ds:inline-flex ds:items-center ds:justify-center ds:shrink-0 ds:rounded-full",
|
|
13
|
+
"ds:border ds:border-border ds:bg-background",
|
|
14
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
15
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
16
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
17
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
18
|
+
"ds:data-[state=checked]:border-primary",
|
|
19
|
+
"ds:data-[disabled]:border-muted",
|
|
20
|
+
'ds:relative ds:before:absolute ds:before:inset-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""]'
|
|
21
|
+
].join(" "),
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
sm: "ds:size-3.5",
|
|
26
|
+
md: "ds:size-4",
|
|
27
|
+
lg: "ds:size-5"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
size: "md"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
), K = z(
|
|
35
|
+
[
|
|
36
|
+
"ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
37
|
+
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
38
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
39
|
+
"ds:rounded-[var(--radius-sm)] ds:whitespace-nowrap type-label"
|
|
40
|
+
].join(" "),
|
|
41
|
+
{
|
|
42
|
+
variants: {
|
|
43
|
+
interactive: {
|
|
44
|
+
true: [
|
|
45
|
+
"ds:cursor-pointer ds:bg-transparent ds:text-foreground",
|
|
46
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
47
|
+
"ds:data-[state=unchecked]:hover:enabled:bg-muted",
|
|
48
|
+
"ds:data-[state=checked]:bg-primary ds:data-[state=checked]:text-primary-foreground",
|
|
49
|
+
"ds:focus-visible:z-10 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
50
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
51
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
52
|
+
// Forced colours drop background fills, so the chosen segment
|
|
53
|
+
// keeps the system highlight pair instead.
|
|
54
|
+
"ds:forced-colors:data-[state=checked]:[forced-color-adjust:none]",
|
|
55
|
+
"ds:forced-colors:data-[state=checked]:bg-[Highlight] ds:forced-colors:data-[state=checked]:text-[HighlightText]",
|
|
56
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
57
|
+
].join(" "),
|
|
58
|
+
false: ""
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
interactive: !1
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
function L({
|
|
67
|
+
icon: d,
|
|
68
|
+
text: r,
|
|
69
|
+
collapsed: e
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ o(V, { children: [
|
|
72
|
+
d ? /* @__PURE__ */ s(
|
|
73
|
+
"span",
|
|
74
|
+
{
|
|
75
|
+
"aria-hidden": "true",
|
|
76
|
+
className: "ds:inline-flex ds:shrink-0 ds:items-center ds:[&>svg]:size-4",
|
|
77
|
+
children: d
|
|
78
|
+
}
|
|
79
|
+
) : null,
|
|
80
|
+
/* @__PURE__ */ s("span", { className: e && d ? "ds:sr-only" : void 0, children: r })
|
|
81
|
+
] });
|
|
82
|
+
}
|
|
83
|
+
const M = {
|
|
84
|
+
sm: "ds:size-1.5",
|
|
85
|
+
md: "ds:size-2",
|
|
86
|
+
lg: "ds:size-2.5"
|
|
87
|
+
}, P = O(
|
|
88
|
+
({
|
|
89
|
+
label: d,
|
|
90
|
+
size: r = "md",
|
|
91
|
+
disabled: e,
|
|
92
|
+
disabledReason: t,
|
|
93
|
+
description: l,
|
|
94
|
+
icon: u,
|
|
95
|
+
shortLabel: k,
|
|
96
|
+
id: N,
|
|
97
|
+
className: m,
|
|
98
|
+
value: i,
|
|
99
|
+
...f
|
|
100
|
+
}, p) => {
|
|
101
|
+
const j = E(), n = N ?? j, a = D(), C = (a == null ? void 0 : a.variant) === "card", [w, I] = H(!1);
|
|
102
|
+
if (_(!1), q(() => {
|
|
103
|
+
}, [a]), (a == null ? void 0 : a.variant) === "segmented") {
|
|
104
|
+
const v = !!(e && t), b = a.collapsed && !e, x = v || b && !!u;
|
|
105
|
+
return /* @__PURE__ */ s(
|
|
106
|
+
y,
|
|
107
|
+
{
|
|
108
|
+
label: v && t ? t : d,
|
|
109
|
+
open: x && w,
|
|
110
|
+
onOpenChange: (T) => I(x ? T : !1),
|
|
111
|
+
children: /* @__PURE__ */ s("span", { className: "ds:flex", "data-component": "radio", children: /* @__PURE__ */ s(
|
|
112
|
+
c.Item,
|
|
113
|
+
{
|
|
114
|
+
ref: p,
|
|
115
|
+
id: n,
|
|
116
|
+
disabled: e,
|
|
117
|
+
"aria-disabled": e || void 0,
|
|
118
|
+
"aria-label": d,
|
|
119
|
+
value: i,
|
|
120
|
+
className: K({ interactive: !0, className: m }),
|
|
121
|
+
"data-option-id": i,
|
|
122
|
+
...f,
|
|
123
|
+
children: /* @__PURE__ */ s(
|
|
124
|
+
L,
|
|
125
|
+
{
|
|
126
|
+
icon: u,
|
|
127
|
+
text: k ?? d,
|
|
128
|
+
collapsed: b
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
) })
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
const R = [
|
|
137
|
+
"ds:rounded-full ds:bg-primary",
|
|
138
|
+
M[r],
|
|
139
|
+
"ds:group-data-[disabled]:bg-muted"
|
|
140
|
+
].join(" "), g = /* @__PURE__ */ s(
|
|
141
|
+
c.Item,
|
|
142
|
+
{
|
|
143
|
+
ref: p,
|
|
144
|
+
id: n,
|
|
145
|
+
disabled: e,
|
|
146
|
+
"aria-disabled": e || void 0,
|
|
147
|
+
value: i,
|
|
148
|
+
className: J({ size: r, className: m }),
|
|
149
|
+
"data-component": "radio",
|
|
150
|
+
"data-option-id": i,
|
|
151
|
+
...f,
|
|
152
|
+
children: /* @__PURE__ */ s(
|
|
153
|
+
c.Indicator,
|
|
154
|
+
{
|
|
155
|
+
asChild: !0,
|
|
156
|
+
className: "ds:inline-flex ds:items-center ds:justify-center",
|
|
157
|
+
children: /* @__PURE__ */ s("span", { "aria-hidden": "true", className: R })
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
), F = [
|
|
162
|
+
"type-label ds:text-foreground ds:select-none",
|
|
163
|
+
e ? "ds:cursor-not-allowed ds:opacity-50" : "ds:cursor-pointer"
|
|
164
|
+
].join(" "), S = [
|
|
165
|
+
"ds:flex ds:items-start ds:gap-[var(--spacing-md)]",
|
|
166
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
167
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:py-[var(--spacing-md)]",
|
|
168
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
169
|
+
"ds:has-[[data-state=checked]]:border-ring",
|
|
170
|
+
"ds:has-[[data-state=checked]]:bg-[color-mix(in_srgb,var(--accent)_5%,transparent)]",
|
|
171
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
172
|
+
e ? "ds:cursor-not-allowed ds:opacity-50" : "ds:cursor-pointer"
|
|
173
|
+
].join(" "), h = C ? /* @__PURE__ */ o("label", { htmlFor: n, className: S, children: [
|
|
174
|
+
g,
|
|
175
|
+
/* @__PURE__ */ o("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:text-start", children: [
|
|
176
|
+
/* @__PURE__ */ s("span", { className: "type-label ds:text-foreground", children: d }),
|
|
177
|
+
l ? /* @__PURE__ */ s("span", { className: "type-body-sm ds:text-muted-foreground", children: l }) : null
|
|
178
|
+
] })
|
|
179
|
+
] }) : /* @__PURE__ */ o("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:min-h-[var(--min-target-size)]", children: [
|
|
180
|
+
g,
|
|
181
|
+
/* @__PURE__ */ s("label", { htmlFor: n, className: F, children: d })
|
|
182
|
+
] });
|
|
183
|
+
return e && t ? /* @__PURE__ */ s(y, { label: t, children: h }) : h;
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
P.displayName = "Radio";
|
|
187
|
+
export {
|
|
188
|
+
P as R,
|
|
189
|
+
L as a,
|
|
190
|
+
A as b,
|
|
191
|
+
K as r
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=radio-DNRe6H_8.js.map
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { jsx as e, jsxs as u, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as de, useId as ie, Children as le, isValidElement as ce, useMemo as O, useRef as m, useState as Q } from "react";
|
|
3
|
+
import * as pe from "@radix-ui/react-radio-group";
|
|
4
|
+
import { c as ue } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { a as me, r as fe, b as E } from "./radio-DNRe6H_8.js";
|
|
6
|
+
import { a as ve } from "./tooltip-DvmfrNvB.js";
|
|
7
|
+
import { c as ge } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { u as J } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
+
import { u as he } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { u as xe } from "./use-direction-Dp8h70PP.js";
|
|
11
|
+
import { C as be } from "./circle-alert-rGDZ73Wh.js";
|
|
12
|
+
const Re = {
|
|
13
|
+
id: "radio-group",
|
|
14
|
+
capabilities: ["select_single"],
|
|
15
|
+
state: {
|
|
16
|
+
value: {
|
|
17
|
+
type: "string",
|
|
18
|
+
descriptionKey: "ui.agent.radioGroup.state.value",
|
|
19
|
+
description: "Currently selected radio value, or empty string when none.",
|
|
20
|
+
read: (t) => t.getValue()
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
actions: {
|
|
24
|
+
set_value: {
|
|
25
|
+
safety: "write",
|
|
26
|
+
argsType: "{ value: string }",
|
|
27
|
+
argsSchema: {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
value: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Value of the radio to select (its data-option-id)."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
required: ["value"]
|
|
36
|
+
},
|
|
37
|
+
idempotent: !0,
|
|
38
|
+
descriptionKey: "ui.agent.radioGroup.actions.setValue",
|
|
39
|
+
description: "Select the radio with the given value. A value that matches no enabled radio is ignored.",
|
|
40
|
+
invoke: (t, r) => {
|
|
41
|
+
t.setValue(r.value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
domHooks: {
|
|
46
|
+
root: {
|
|
47
|
+
attr: "data-component",
|
|
48
|
+
value: "radio-group",
|
|
49
|
+
description: "Marks the RadioGroup root."
|
|
50
|
+
},
|
|
51
|
+
instanceId: {
|
|
52
|
+
attr: "data-component-id",
|
|
53
|
+
sourceProp: "id",
|
|
54
|
+
description: "Sourced from the id prop."
|
|
55
|
+
},
|
|
56
|
+
item: {
|
|
57
|
+
attr: "data-option-id",
|
|
58
|
+
description: "Stable opaque value emitted on each rendered Radio child."
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, U = "ds:flex ds:flex-nowrap ds:items-stretch ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:p-[var(--spacing-2xs)]", ye = ue("ds:flex", {
|
|
62
|
+
variants: {
|
|
63
|
+
variant: {
|
|
64
|
+
vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
65
|
+
horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
|
|
66
|
+
card: "ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
67
|
+
segmented: `${U} ds:w-fit ds:max-w-full ds:min-w-0`
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
variant: "vertical"
|
|
72
|
+
}
|
|
73
|
+
}), A = () => {
|
|
74
|
+
};
|
|
75
|
+
function Ne(t, r, f) {
|
|
76
|
+
const n = m(null), a = m(null), v = m(null), o = m(null), [g, d] = Q(!1), h = m(A);
|
|
77
|
+
return J(() => {
|
|
78
|
+
const x = n.current, i = a.current;
|
|
79
|
+
if (!t || !x || !i) {
|
|
80
|
+
d(!1);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const l = () => {
|
|
84
|
+
const p = x.clientWidth;
|
|
85
|
+
if (p <= 0) {
|
|
86
|
+
d(!1);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const w = o.current, V = v.current, b = w && V ? w.offsetWidth + (Number.parseFloat(window.getComputedStyle(V).columnGap) || 0) : 0;
|
|
90
|
+
d(i.scrollWidth > p - b + 1);
|
|
91
|
+
};
|
|
92
|
+
if (h.current = l, l(), typeof ResizeObserver > "u")
|
|
93
|
+
return () => {
|
|
94
|
+
h.current = A;
|
|
95
|
+
};
|
|
96
|
+
const c = new ResizeObserver(l);
|
|
97
|
+
return c.observe(x), c.observe(i), o.current && c.observe(o.current), () => {
|
|
98
|
+
c.disconnect(), h.current = A;
|
|
99
|
+
};
|
|
100
|
+
}, [t, r]), J(() => {
|
|
101
|
+
h.current();
|
|
102
|
+
}, [f]), { containerRef: n, measureRef: a, lineRef: v, endRef: o, collapsed: g };
|
|
103
|
+
}
|
|
104
|
+
const we = de(
|
|
105
|
+
({
|
|
106
|
+
children: t,
|
|
107
|
+
variant: r = "vertical",
|
|
108
|
+
label: f,
|
|
109
|
+
labelStart: n,
|
|
110
|
+
labelEnd: a,
|
|
111
|
+
controlEnd: v,
|
|
112
|
+
description: o,
|
|
113
|
+
error: g,
|
|
114
|
+
required: d,
|
|
115
|
+
disabled: h,
|
|
116
|
+
className: x,
|
|
117
|
+
id: i,
|
|
118
|
+
value: l,
|
|
119
|
+
defaultValue: c,
|
|
120
|
+
onValueChange: p,
|
|
121
|
+
...w
|
|
122
|
+
}, V) => {
|
|
123
|
+
const b = ie(), C = `${b}-legend`, S = `${b}-description`, k = `${b}-error`, X = [o ? S : null, g ? k : null].filter(Boolean).join(" ") || void 0, Y = f ? C : void 0, R = r === "segmented", Z = r === "horizontal" || R ? "horizontal" : "vertical", I = R ? le.toArray(t).filter(ce) : [], ee = I.map(
|
|
124
|
+
(s) => `${s.props.value ?? ""}:${s.props.shortLabel ?? s.props.label ?? ""}:${s.props.icon ? 1 : 0}`
|
|
125
|
+
).join("|"), y = Ne(
|
|
126
|
+
R,
|
|
127
|
+
`${!!v}:${!!f}`,
|
|
128
|
+
ee
|
|
129
|
+
), G = R && y.collapsed, B = O(
|
|
130
|
+
() => ({ variant: r, collapsed: G }),
|
|
131
|
+
[r, G]
|
|
132
|
+
), z = o ? /* @__PURE__ */ e("p", { id: S, className: "type-body-sm ds:text-muted-foreground", children: o }) : null, j = g ? /* @__PURE__ */ u(
|
|
133
|
+
"p",
|
|
134
|
+
{
|
|
135
|
+
id: k,
|
|
136
|
+
role: "alert",
|
|
137
|
+
className: "ds:inline-flex ds:items-start ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ e(be, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
140
|
+
/* @__PURE__ */ e("span", { children: g })
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
) : null, $ = m(null), se = ge(V, $), te = xe($), N = l !== void 0, [re, oe] = Q(
|
|
144
|
+
c ?? ""
|
|
145
|
+
), T = N ? l ?? "" : re, K = m(T);
|
|
146
|
+
K.current = T;
|
|
147
|
+
const L = (s) => {
|
|
148
|
+
N || oe(s), p == null || p(s);
|
|
149
|
+
}, ne = O(
|
|
150
|
+
() => ({
|
|
151
|
+
getValue: () => K.current,
|
|
152
|
+
// An agent may only pick what a user could: a value with a rendered,
|
|
153
|
+
// enabled radio. Unoffered or disabled values are ignored.
|
|
154
|
+
setValue: (s) => {
|
|
155
|
+
var D;
|
|
156
|
+
Array.from(
|
|
157
|
+
((D = $.current) == null ? void 0 : D.querySelectorAll('[role="radio"]')) ?? []
|
|
158
|
+
).some(
|
|
159
|
+
(H) => H.getAttribute("data-option-id") === s && !H.hasAttribute("data-disabled")
|
|
160
|
+
) && L(s);
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
164
|
+
[N, p]
|
|
165
|
+
);
|
|
166
|
+
he(Re, ne, i);
|
|
167
|
+
const P = /* @__PURE__ */ e(
|
|
168
|
+
pe.Root,
|
|
169
|
+
{
|
|
170
|
+
ref: se,
|
|
171
|
+
id: i,
|
|
172
|
+
orientation: Z,
|
|
173
|
+
dir: te,
|
|
174
|
+
disabled: h,
|
|
175
|
+
required: d,
|
|
176
|
+
value: N ? l : void 0,
|
|
177
|
+
defaultValue: N ? void 0 : c,
|
|
178
|
+
onValueChange: L,
|
|
179
|
+
"aria-labelledby": Y,
|
|
180
|
+
"aria-describedby": X,
|
|
181
|
+
"aria-invalid": !!g || void 0,
|
|
182
|
+
"aria-required": d || void 0,
|
|
183
|
+
className: ye({ variant: r, className: x }),
|
|
184
|
+
"data-component": "radio-group",
|
|
185
|
+
"data-component-id": i,
|
|
186
|
+
"data-collapsed": G ? "" : void 0,
|
|
187
|
+
...w,
|
|
188
|
+
children: t
|
|
189
|
+
}
|
|
190
|
+
), W = R ? (
|
|
191
|
+
// Segments carry a tooltip each; bring a provider so the variant is
|
|
192
|
+
// safe in a host without one at its root.
|
|
193
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
194
|
+
"div",
|
|
195
|
+
{
|
|
196
|
+
ref: y.containerRef,
|
|
197
|
+
className: "ds:relative ds:w-full ds:min-w-0",
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ e(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
className: "ds:pointer-events-none ds:invisible ds:absolute ds:inset-0 ds:overflow-hidden",
|
|
204
|
+
children: /* @__PURE__ */ e(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
207
|
+
ref: y.measureRef,
|
|
208
|
+
"data-segment-measure": "",
|
|
209
|
+
className: `ds:absolute ds:start-0 ds:top-0 ds:w-max ${U}`,
|
|
210
|
+
children: I.map((s, q) => /* @__PURE__ */ e(
|
|
211
|
+
"span",
|
|
212
|
+
{
|
|
213
|
+
className: fe(),
|
|
214
|
+
children: /* @__PURE__ */ e(
|
|
215
|
+
me,
|
|
216
|
+
{
|
|
217
|
+
icon: s.props.icon,
|
|
218
|
+
text: s.props.shortLabel ?? s.props.label ?? "",
|
|
219
|
+
collapsed: !1
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
},
|
|
223
|
+
s.key ?? q
|
|
224
|
+
))
|
|
225
|
+
}
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
/* @__PURE__ */ u(
|
|
230
|
+
"div",
|
|
231
|
+
{
|
|
232
|
+
ref: y.lineRef,
|
|
233
|
+
className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-md)]",
|
|
234
|
+
children: [
|
|
235
|
+
P,
|
|
236
|
+
v ? /* @__PURE__ */ e(
|
|
237
|
+
"span",
|
|
238
|
+
{
|
|
239
|
+
ref: y.endRef,
|
|
240
|
+
className: "ds:inline-flex ds:shrink-0 ds:items-center",
|
|
241
|
+
children: v
|
|
242
|
+
}
|
|
243
|
+
) : null
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
) })
|
|
250
|
+
) : P, F = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", M = !!(n || a), _ = /* @__PURE__ */ u(ae, { children: [
|
|
251
|
+
f,
|
|
252
|
+
d ? /* @__PURE__ */ e(
|
|
253
|
+
"span",
|
|
254
|
+
{
|
|
255
|
+
"aria-hidden": "true",
|
|
256
|
+
className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
|
|
257
|
+
children: "*"
|
|
258
|
+
}
|
|
259
|
+
) : null
|
|
260
|
+
] });
|
|
261
|
+
return f ? /* @__PURE__ */ e(E.Provider, { value: B, children: /* @__PURE__ */ u(
|
|
262
|
+
"fieldset",
|
|
263
|
+
{
|
|
264
|
+
role: "presentation",
|
|
265
|
+
className: `${F} ds:border-0 ds:p-0 ds:m-0`,
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ e(
|
|
268
|
+
"legend",
|
|
269
|
+
{
|
|
270
|
+
id: C,
|
|
271
|
+
className: M ? "type-label ds:text-foreground ds:p-0 ds:w-full" : "type-label ds:text-foreground ds:p-0",
|
|
272
|
+
children: M ? /* @__PURE__ */ u("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
273
|
+
n ? /* @__PURE__ */ e("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: n }) : null,
|
|
274
|
+
n ? " " : null,
|
|
275
|
+
/* @__PURE__ */ e("span", { children: _ }),
|
|
276
|
+
a ? " " : null,
|
|
277
|
+
a ? /* @__PURE__ */ e("span", { className: "ds:ms-auto ds:inline-flex ds:shrink-0 ds:items-center", children: a }) : null
|
|
278
|
+
] }) : _
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
z,
|
|
282
|
+
W,
|
|
283
|
+
j
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
) }) : /* @__PURE__ */ e(E.Provider, { value: B, children: /* @__PURE__ */ u("div", { className: F, children: [
|
|
287
|
+
z,
|
|
288
|
+
W,
|
|
289
|
+
j
|
|
290
|
+
] }) });
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
we.displayName = "RadioGroup";
|
|
294
|
+
export {
|
|
295
|
+
we as R
|
|
296
|
+
};
|
|
297
|
+
//# sourceMappingURL=radio-group-DyVBgnA3.js.map
|
package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, Fragment as j, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as X, useState as h, useRef as ee, useImperativeHandle as ae, useMemo as re, useCallback as _, useEffect as ie } from "react";
|
|
3
3
|
import { useTranslation as S } from "react-i18next";
|
|
4
|
-
import { D as y } from "./dialog-
|
|
4
|
+
import { D as y } from "./dialog-BJiLqhx6.js";
|
|
5
5
|
import { B as T } from "./button-nJaPh_HC.js";
|
|
6
6
|
import { I as v } from "./icon-button-DA2CAGHZ.js";
|
|
7
7
|
import { B as L } from "./badge-sTusUqZD.js";
|
|
@@ -533,4 +533,4 @@ export {
|
|
|
533
533
|
qe as R,
|
|
534
534
|
Ae as r
|
|
535
535
|
};
|
|
536
|
-
//# sourceMappingURL=radiograph-panel.agent-
|
|
536
|
+
//# sourceMappingURL=radiograph-panel.agent-o4jwEJPC.js.map
|
|
@@ -18,8 +18,8 @@ import { B as ie } from "./button-nJaPh_HC.js";
|
|
|
18
18
|
import { a as pt } from "./tooltip-DvmfrNvB.js";
|
|
19
19
|
import { P as q } from "./popover-DP6WCVwm.js";
|
|
20
20
|
import { D as Ae } from "./dropdown-menu-DU-Hrf33.js";
|
|
21
|
-
import { D as B } from "./dialog-
|
|
22
|
-
import { C as We } from "./color-picker-
|
|
21
|
+
import { D as B } from "./dialog-BJiLqhx6.js";
|
|
22
|
+
import { C as We } from "./color-picker-Bl5f0iK1.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-
|
|
2629
|
+
//# sourceMappingURL=rich-text-editor-CQ7yZdG3.js.map
|