@alfadocs/ui-kit 1.4.11 → 1.4.13
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-BD-jruqA.js +1784 -0
- package/dist/_chunks/{address-fields-pHsfkXGk.js → address-fields-D-8akw2m.js} +2 -2
- package/dist/_chunks/{agenda-card-BCGaQazD.js → agenda-card-BQDs2ZMp.js} +2 -2
- package/dist/_chunks/{agenda-tray-CG6FuccE.js → agenda-tray-BTyWsVwT.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-CpF_rbG9.js → ai-consent-banner-gVcoiXxv.js} +2 -2
- package/dist/_chunks/{anamnesis-card-C4FVp9wO.js → anamnesis-card-Bt0twrML.js} +2 -2
- package/dist/_chunks/anamnesis-summary-card-BKGVcwny.js +350 -0
- package/dist/_chunks/{anamnesis-summary-rows-Dw3l6nOD.js → anamnesis-summary-rows-B5MAYkJ-.js} +2768 -2951
- package/dist/_chunks/{antenatal-schedule-timeline-u8TsS2QJ.js → antenatal-schedule-timeline-BSLrOQ3S.js} +2 -2
- package/dist/_chunks/{appointment-card-DgKI5QKD.js → appointment-card-kcUC7vWR.js} +2 -2
- package/dist/_chunks/{appointment-timeline-CUijZCxZ.js → appointment-timeline-BC3dlZu5.js} +2 -2
- package/dist/_chunks/{appointment-tray-B1aUk46V.js → appointment-tray-BPY5rATW.js} +2 -2
- package/dist/_chunks/{badge-DCOqV9mI.js → badge-CIt-UFEx.js} +28 -28
- package/dist/_chunks/{bishop-score-Bpe20Ctl.js → bishop-score-B6iYYO0c.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DF5bNsDD.js → bmi-calculator-DC5SaqXT.js} +5 -5
- package/dist/_chunks/{booking-DuSkvE5x.js → booking-CmHX15dh.js} +2 -2
- package/dist/_chunks/{care-plan-card-DiyK3Eys.js → care-plan-card-9tLgsDYY.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-6du8PYVk.js → care-plan-entry-card-CSan4h7A.js} +2 -2
- package/dist/_chunks/{care-plan-header-BWvDvly-.js → care-plan-header-D_BTi77b.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D63x_AkK.js → clinical-note-card-ByzQ86uz.js} +2 -2
- package/dist/_chunks/{connection-status-Bi4Hwpd1.js → connection-status-D8mZ4klk.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CGS_NABR.js → contact-profile-card-DuW6VpzY.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Bd4_fJhq.js → cycle-calculator-B_NlctlQ.js} +4 -4
- package/dist/_chunks/{date-time-picker-DafkGDGO.js → date-time-picker-DVETwpzc.js} +2 -2
- package/dist/_chunks/{dependent-selector-DyFpdzZV.js → dependent-selector-BUvrZRi0.js} +2 -2
- package/dist/_chunks/{document-preview-DuMzmupZ.js → document-preview-Di15VrpQ.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Do67C-Z-.js → due-date-calculator-le1z3KpW.js} +6 -6
- package/dist/_chunks/{fetal-weight-DHxXx7Uz.js → fetal-weight-DXA6ZpMq.js} +4 -4
- package/dist/_chunks/{field-value-C5A4t4OE.js → field-value-BCFLVBmu.js} +2 -2
- package/dist/_chunks/{file-manager-BY6FdHAt.js → file-manager-BjCM2fZB.js} +3 -3
- package/dist/_chunks/form-field-D1oqYisL.js +127 -0
- package/dist/_chunks/{gestational-age-calculator-CMhOtFE_.js → gestational-age-calculator-Ch8vmJAl.js} +5 -5
- package/dist/_chunks/{hcg-doubling-DNG9Q2go.js → hcg-doubling-BT6lki_i.js} +5 -5
- package/dist/_chunks/{link-cell-renderer-C8npOgmM.js → link-cell-renderer-C7GvyK66.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-BxOiy25s.js → marketplace-app-shell-BhRH7Zi4.js} +2 -2
- package/dist/_chunks/{notes-panel-BoyzMHI_.js → notes-panel-Bz83SO4-.js} +2 -2
- package/dist/_chunks/number-input-CM1q9zvH.js +414 -0
- package/dist/_chunks/{operator-hero-DVy0RGoD.js → operator-hero-CpJkDNAM.js} +2 -2
- package/dist/_chunks/{optical-prescription-Brs0CeP3.js → optical-prescription-CQR_WJiS.js} +2 -2
- package/dist/_chunks/{patient-details-Bf4iTAPp.js → patient-details-CnFgF3MU.js} +3 -3
- package/dist/_chunks/{patient-summary-card-dkV6a53T.js → patient-summary-card-DfbOtOV6.js} +3 -3
- package/dist/_chunks/{patient-table-zifAcsjV.js → patient-table-BXzcrC79.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-CZZPGfs0.js → payment-automation-upsell-Ckh3b7Xx.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dy7_DA-2.js → payment-request-card-Dn6-tH-D.js} +2 -2
- package/dist/_chunks/{periodontal-chart-CfFgKXWa.js → periodontal-chart-B0yko9Xm.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card--6yTUsrQ.js → periodontal-chart-card-HbYTmWlo.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-cco40xTa.js → periodontal-diagnosis-Qk4F3Wc_.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-bUGkMwDg.js → periodontal-risk-chart-ByKuM4cF.js} +2 -2
- package/dist/_chunks/{practice-results-Mys11x9p.js → practice-results-C5exrEn0.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-t3oM4ZzC.js → pregnancy-dating-4tPV_Yko.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-Bfz7SbIw.js → pregnancy-weight-gain-BBgbWBGe.js} +5 -5
- package/dist/_chunks/radio-group-BmIqhIT2.js +171 -0
- package/dist/_chunks/{radiograph-panel.agent-DyA4wsZA.js → radiograph-panel.agent-Drj0hYVV.js} +3 -3
- package/dist/_chunks/signature-status-chip-DlLJk1VA.js +97 -0
- package/dist/_chunks/{tab-bar-BYESZINM.js → tab-bar-Ddp_ZbnL.js} +2 -2
- package/dist/_chunks/{tasks-panel-CoESdfZI.js → tasks-panel-T7vaKJcA.js} +2 -2
- package/dist/_chunks/{time-picker-BPlJWm8w.js → time-picker-D0RS391l.js} +66 -63
- package/dist/_chunks/{unit-converter-lUW9Q888.js → unit-converter-Dsk__pjA.js} +3 -3
- package/dist/_chunks/{widget-picker-DEmTVuFL.js → widget-picker-DqMbjQy_.js} +2 -2
- package/dist/_chunks/{workflow-map-C5PGP6cD.js → workflow-map-BNBeG2zn.js} +2 -2
- package/dist/agent-catalog.json +34 -34
- package/dist/agent-i18n/en.json +4 -4
- 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-consent-banner/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/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/badge/badge.d.ts +1 -0
- package/dist/components/badge/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/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/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +19 -0
- package/dist/components/data-table/expanded-row-renderer.d.ts +47 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +31 -27
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/form-field/form-field.d.ts +6 -0
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +11 -0
- 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/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/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/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/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +3 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/signature-status-chip/index.d.ts +3 -0
- package/dist/components/signature-status-chip/index.js +6 -0
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +29 -0
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +11 -0
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +11 -0
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +11 -0
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +11 -0
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +11 -0
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +11 -0
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +11 -0
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.js +11 -0
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +11 -0
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +11 -0
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +11 -0
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +11 -0
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +11 -0
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +11 -0
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +11 -0
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +11 -0
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +11 -0
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +11 -0
- package/dist/index.js +799 -792
- package/dist/locales/ar.json +17 -0
- package/dist/locales/de.json +17 -0
- package/dist/locales/el.json +17 -0
- package/dist/locales/en.json +17 -0
- package/dist/locales/es.json +17 -0
- package/dist/locales/fr.json +17 -0
- package/dist/locales/hi.json +17 -0
- package/dist/locales/it.json +17 -0
- package/dist/locales/ja.json +17 -0
- package/dist/locales/nl.json +17 -0
- package/dist/locales/pl.json +17 -0
- package/dist/locales/pt.json +17 -0
- package/dist/locales/ro.json +17 -0
- package/dist/locales/ru.json +17 -0
- package/dist/locales/sq.json +17 -0
- package/dist/locales/sv.json +17 -0
- package/dist/locales/tr.json +17 -0
- package/dist/locales/zh.json +17 -0
- package/dist/patterns/anamnesis/anamnesis-baseline.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts +4 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +8 -9
- package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +24 -12
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +5 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +4 -1
- package/dist/patterns/anamnesis/anamnesis-readonly.d.ts +4 -1
- package/dist/patterns/anamnesis/anamnesis-source-blocks.d.ts +29 -0
- package/dist/patterns/anamnesis/anamnesis-window.d.ts +3 -5
- package/dist/patterns/anamnesis/anamnesis.d.ts +4 -1
- package/dist/patterns/anamnesis/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/tokens.css +5 -2
- package/package.json +5 -1
- package/dist/_chunks/actions-cell-renderer-C67oj7mR.js +0 -1581
- package/dist/_chunks/anamnesis-summary-card-CpQViN5l.js +0 -392
- package/dist/_chunks/form-field-M5UpX65Z.js +0 -123
- package/dist/_chunks/number-input-DOe5VYei.js +0 -370
- package/dist/_chunks/radio-group-CI-6SmSw.js +0 -167
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +0 -89
package/dist/_chunks/{periodontal-risk-chart-bUGkMwDg.js → periodontal-risk-chart-ByKuM4cF.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as T, useId as $, useMemo as S } from "react";
|
|
3
3
|
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as j } from "react-i18next";
|
|
5
|
-
import { B as w } from "./badge-
|
|
5
|
+
import { B as w } from "./badge-CIt-UFEx.js";
|
|
6
6
|
import { C as N } from "./card-DPmk26CL.js";
|
|
7
7
|
import { u as M } from "./registry-DvAUVLHh.js";
|
|
8
8
|
const B = {
|
|
@@ -331,4 +331,4 @@ export {
|
|
|
331
331
|
B as p,
|
|
332
332
|
te as r
|
|
333
333
|
};
|
|
334
|
-
//# sourceMappingURL=periodontal-risk-chart-
|
|
334
|
+
//# sourceMappingURL=periodontal-risk-chart-ByKuM4cF.js.map
|
|
@@ -12,7 +12,7 @@ import { R as Ce } from "./rating-BYbUowdK.js";
|
|
|
12
12
|
import { S as I } from "./sheet-CD99CdXr.js";
|
|
13
13
|
import { S as Xe } from "./skeleton-CZbwyJAA.js";
|
|
14
14
|
import { S as Ye } from "./spinner-hbwuKwMf.js";
|
|
15
|
-
import { B as L } from "./badge-
|
|
15
|
+
import { B as L } from "./badge-CIt-UFEx.js";
|
|
16
16
|
import { u as et } from "./use-media-query-CcAx5SMM.js";
|
|
17
17
|
import { u as tt } from "./registry-DvAUVLHh.js";
|
|
18
18
|
import { c as nt } from "./createLucideIcon-DhHxpK9K.js";
|
|
@@ -1606,4 +1606,4 @@ export {
|
|
|
1606
1606
|
Ct as P,
|
|
1607
1607
|
rt as p
|
|
1608
1608
|
};
|
|
1609
|
-
//# sourceMappingURL=practice-results-
|
|
1609
|
+
//# sourceMappingURL=practice-results-C5exrEn0.js.map
|
|
@@ -4,16 +4,16 @@ import { c as Me } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as Re } from "react-i18next";
|
|
5
5
|
import { u as Te } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { R as u } from "./radio-TWf9Q-mp.js";
|
|
7
|
-
import { R as j } from "./radio-group-
|
|
8
|
-
import { F as f } from "./form-field-
|
|
7
|
+
import { R as j } from "./radio-group-BmIqhIT2.js";
|
|
8
|
+
import { F as f } from "./form-field-D1oqYisL.js";
|
|
9
9
|
import { D as V } from "./date-picker-Bp64zk2p.js";
|
|
10
|
-
import { N as H } from "./number-input-
|
|
10
|
+
import { N as H } from "./number-input-CM1q9zvH.js";
|
|
11
11
|
import { S as Ce } from "./select-BW5ecXlX.js";
|
|
12
12
|
import { S as je } from "./switch-OILsBLWo.js";
|
|
13
13
|
import { C as ie } from "./card-DPmk26CL.js";
|
|
14
|
-
import { B as $ } from "./badge-
|
|
14
|
+
import { B as $ } from "./badge-CIt-UFEx.js";
|
|
15
15
|
import { I as Ee } from "./insert-result-98J1QEp7.js";
|
|
16
|
-
import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-
|
|
16
|
+
import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-BSLrOQ3S.js";
|
|
17
17
|
import { s as P } from "./subDays-CAUv47M1.js";
|
|
18
18
|
import { c as q } from "./date-picker-variants-pKAJfnWr.js";
|
|
19
19
|
import { p as $e } from "./parseISO-fOGpHKXm.js";
|
|
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
|
|
|
767
767
|
export {
|
|
768
768
|
Ue as P
|
|
769
769
|
};
|
|
770
|
-
//# sourceMappingURL=pregnancy-dating-
|
|
770
|
+
//# sourceMappingURL=pregnancy-dating-4tPV_Yko.js.map
|
package/dist/_chunks/{pregnancy-weight-gain-Bfz7SbIw.js → pregnancy-weight-gain-BBgbWBGe.js}
RENAMED
|
@@ -4,11 +4,11 @@ import { c as X } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as Y } from "react-i18next";
|
|
5
5
|
import { u as Z } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { R as M } from "./radio-TWf9Q-mp.js";
|
|
7
|
-
import { R as ee } from "./radio-group-
|
|
8
|
-
import { F as P } from "./form-field-
|
|
9
|
-
import { N as I } from "./number-input-
|
|
7
|
+
import { R as ee } from "./radio-group-BmIqhIT2.js";
|
|
8
|
+
import { F as P } from "./form-field-D1oqYisL.js";
|
|
9
|
+
import { N as I } from "./number-input-CM1q9zvH.js";
|
|
10
10
|
import { C as B } from "./card-DPmk26CL.js";
|
|
11
|
-
import { B as E } from "./badge-
|
|
11
|
+
import { B as E } from "./badge-CIt-UFEx.js";
|
|
12
12
|
import { I as te } from "./insert-result-98J1QEp7.js";
|
|
13
13
|
import { b as ne, e as ae } from "./bmi-BxD-tFzU.js";
|
|
14
14
|
const ie = {
|
|
@@ -550,4 +550,4 @@ export {
|
|
|
550
550
|
ie as p,
|
|
551
551
|
oe as r
|
|
552
552
|
};
|
|
553
|
-
//# sourceMappingURL=pregnancy-weight-gain-
|
|
553
|
+
//# sourceMappingURL=pregnancy-weight-gain-BBgbWBGe.js.map
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L, useId as O, useMemo as z, useRef as B, useState as Q } from "react";
|
|
3
|
+
import * as U from "@radix-ui/react-radio-group";
|
|
4
|
+
import { c as W } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { a as S } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { c as X } from "./compose-refs-C0k0tdqF.js";
|
|
7
|
+
import { u as Y } from "./registry-DvAUVLHh.js";
|
|
8
|
+
import { u as Z } from "./use-direction-Dp8h70PP.js";
|
|
9
|
+
import { C as E } from "./circle-alert-rGDZ73Wh.js";
|
|
10
|
+
const ee = {
|
|
11
|
+
id: "radio-group",
|
|
12
|
+
capabilities: ["select_single"],
|
|
13
|
+
state: {
|
|
14
|
+
value: {
|
|
15
|
+
type: "string",
|
|
16
|
+
descriptionKey: "ui.agent.radioGroup.state.value",
|
|
17
|
+
description: "Currently selected radio value, or empty string when none.",
|
|
18
|
+
read: (t) => t.getValue()
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
actions: {
|
|
22
|
+
set_value: {
|
|
23
|
+
safety: "write",
|
|
24
|
+
argsType: "{ value: string }",
|
|
25
|
+
descriptionKey: "ui.agent.radioGroup.actions.setValue",
|
|
26
|
+
description: "Select the radio with the given value.",
|
|
27
|
+
invoke: (t, s) => {
|
|
28
|
+
t.setValue(s.value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
domHooks: {
|
|
33
|
+
root: {
|
|
34
|
+
attr: "data-component",
|
|
35
|
+
value: "radio-group",
|
|
36
|
+
description: "Marks the RadioGroup root."
|
|
37
|
+
},
|
|
38
|
+
instanceId: {
|
|
39
|
+
attr: "data-component-id",
|
|
40
|
+
sourceProp: "id",
|
|
41
|
+
description: "Sourced from the id prop."
|
|
42
|
+
},
|
|
43
|
+
item: {
|
|
44
|
+
attr: "data-option-id",
|
|
45
|
+
description: "Stable opaque value emitted on each rendered Radio child."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, se = W("ds:flex", {
|
|
49
|
+
variants: {
|
|
50
|
+
variant: {
|
|
51
|
+
vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
52
|
+
horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
|
|
53
|
+
card: "ds:flex-col ds:gap-[var(--spacing-md)]"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
variant: "vertical"
|
|
58
|
+
}
|
|
59
|
+
}), te = L(
|
|
60
|
+
({
|
|
61
|
+
children: t,
|
|
62
|
+
variant: s = "vertical",
|
|
63
|
+
label: n,
|
|
64
|
+
labelEnd: l,
|
|
65
|
+
description: c,
|
|
66
|
+
error: a,
|
|
67
|
+
required: p,
|
|
68
|
+
disabled: $,
|
|
69
|
+
className: A,
|
|
70
|
+
id: u,
|
|
71
|
+
value: m,
|
|
72
|
+
defaultValue: v,
|
|
73
|
+
onValueChange: i,
|
|
74
|
+
...C
|
|
75
|
+
}, P) => {
|
|
76
|
+
const f = O(), g = `${f}-legend`, h = `${f}-description`, x = `${f}-error`, H = [c ? h : null, a ? x : null].filter(Boolean).join(" ") || void 0, K = n ? g : void 0, M = s === "horizontal" ? "horizontal" : "vertical", y = z(
|
|
77
|
+
() => ({ variant: s }),
|
|
78
|
+
[s]
|
|
79
|
+
), R = c ? /* @__PURE__ */ e("p", { id: h, className: "type-body-sm ds:text-muted-foreground", children: c }) : null, N = a ? /* @__PURE__ */ o(
|
|
80
|
+
"p",
|
|
81
|
+
{
|
|
82
|
+
id: x,
|
|
83
|
+
role: "alert",
|
|
84
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ e(E, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
87
|
+
/* @__PURE__ */ e("span", { children: a })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
) : null, b = B(null), T = X(P, b), _ = Z(b), r = m !== void 0, [D, F] = Q(
|
|
91
|
+
v ?? ""
|
|
92
|
+
), w = r ? m ?? "" : D, G = B(w);
|
|
93
|
+
G.current = w;
|
|
94
|
+
const V = (d) => {
|
|
95
|
+
r || F(d), i == null || i(d);
|
|
96
|
+
}, q = z(
|
|
97
|
+
() => ({
|
|
98
|
+
getValue: () => G.current,
|
|
99
|
+
setValue: (d) => V(d)
|
|
100
|
+
}),
|
|
101
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
102
|
+
[r, i]
|
|
103
|
+
);
|
|
104
|
+
Y(ee, q, u);
|
|
105
|
+
const I = /* @__PURE__ */ e(
|
|
106
|
+
U.Root,
|
|
107
|
+
{
|
|
108
|
+
ref: T,
|
|
109
|
+
id: u,
|
|
110
|
+
orientation: M,
|
|
111
|
+
dir: _,
|
|
112
|
+
disabled: $,
|
|
113
|
+
required: p,
|
|
114
|
+
value: r ? m : void 0,
|
|
115
|
+
defaultValue: r ? void 0 : v,
|
|
116
|
+
onValueChange: V,
|
|
117
|
+
"aria-labelledby": K,
|
|
118
|
+
"aria-describedby": H,
|
|
119
|
+
"aria-invalid": !!a || void 0,
|
|
120
|
+
"aria-required": p || void 0,
|
|
121
|
+
className: se({ variant: s, className: A }),
|
|
122
|
+
"data-component": "radio-group",
|
|
123
|
+
"data-component-id": u,
|
|
124
|
+
...C,
|
|
125
|
+
children: t
|
|
126
|
+
}
|
|
127
|
+
), k = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", j = /* @__PURE__ */ o(J, { children: [
|
|
128
|
+
n,
|
|
129
|
+
p ? /* @__PURE__ */ e(
|
|
130
|
+
"span",
|
|
131
|
+
{
|
|
132
|
+
"aria-hidden": "true",
|
|
133
|
+
className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
|
|
134
|
+
children: "*"
|
|
135
|
+
}
|
|
136
|
+
) : null
|
|
137
|
+
] });
|
|
138
|
+
return n ? /* @__PURE__ */ e(S.Provider, { value: y, children: /* @__PURE__ */ o(
|
|
139
|
+
"fieldset",
|
|
140
|
+
{
|
|
141
|
+
role: "presentation",
|
|
142
|
+
className: `${k} ds:border-0 ds:p-0 ds:m-0`,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ e(
|
|
145
|
+
"legend",
|
|
146
|
+
{
|
|
147
|
+
id: g,
|
|
148
|
+
className: l ? "type-label ds:text-foreground ds:p-0 ds:w-full" : "type-label ds:text-foreground ds:p-0",
|
|
149
|
+
children: l ? /* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
150
|
+
/* @__PURE__ */ e("span", { children: j }),
|
|
151
|
+
/* @__PURE__ */ e("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: l })
|
|
152
|
+
] }) : j
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
R,
|
|
156
|
+
I,
|
|
157
|
+
N
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
) }) : /* @__PURE__ */ e(S.Provider, { value: y, children: /* @__PURE__ */ o("div", { className: k, children: [
|
|
161
|
+
R,
|
|
162
|
+
I,
|
|
163
|
+
N
|
|
164
|
+
] }) });
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
te.displayName = "RadioGroup";
|
|
168
|
+
export {
|
|
169
|
+
te as R
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=radio-group-BmIqhIT2.js.map
|
package/dist/_chunks/{radiograph-panel.agent-DyA4wsZA.js → radiograph-panel.agent-Drj0hYVV.js}
RENAMED
|
@@ -4,8 +4,8 @@ import { useTranslation as S } from "react-i18next";
|
|
|
4
4
|
import { D as y } from "./dialog-UbKJCi1X.js";
|
|
5
5
|
import { B as T } from "./button-BvNtqHAS.js";
|
|
6
6
|
import { I as v } from "./icon-button-9c9Gp41m.js";
|
|
7
|
-
import { B as L } from "./badge-
|
|
8
|
-
import { F as V } from "./form-field-
|
|
7
|
+
import { B as L } from "./badge-CIt-UFEx.js";
|
|
8
|
+
import { F as V } from "./form-field-D1oqYisL.js";
|
|
9
9
|
import { T as oe } from "./text-area-Bt3p7Pt0.js";
|
|
10
10
|
import { F as de } from "./file-upload-CwxdqkMK.js";
|
|
11
11
|
import { D as te } from "./date-picker-Bp64zk2p.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-Drj0hYVV.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C } from "react";
|
|
3
|
+
import { useTranslation as R } from "react-i18next";
|
|
4
|
+
import { B as V } from "./badge-CIt-UFEx.js";
|
|
5
|
+
function T(e, n) {
|
|
6
|
+
const t = [e, n].filter((i) => i !== "notRequired");
|
|
7
|
+
if (t.length === 0) return "notRequired";
|
|
8
|
+
const s = t.filter((i) => i === "signed").length;
|
|
9
|
+
return s === 0 ? "unsigned" : s === t.length ? "signed" : "partial";
|
|
10
|
+
}
|
|
11
|
+
const A = {
|
|
12
|
+
// Traffic light: green when everyone required has signed, amber when one
|
|
13
|
+
// party is still missing, red when nobody has.
|
|
14
|
+
signed: "success",
|
|
15
|
+
partial: "warning",
|
|
16
|
+
unsigned: "error",
|
|
17
|
+
notRequired: "neutral"
|
|
18
|
+
}, b = {
|
|
19
|
+
operator: "Operator",
|
|
20
|
+
patient: "Patient"
|
|
21
|
+
}, w = {
|
|
22
|
+
signed: "signed",
|
|
23
|
+
pending: "pending"
|
|
24
|
+
};
|
|
25
|
+
function y(e, n) {
|
|
26
|
+
const t = [];
|
|
27
|
+
return e !== "notRequired" && t.push({ party: "operator", standing: e }), n !== "notRequired" && t.push({ party: "patient", standing: n }), t;
|
|
28
|
+
}
|
|
29
|
+
const N = C(
|
|
30
|
+
({
|
|
31
|
+
operator: e,
|
|
32
|
+
patient: n,
|
|
33
|
+
size: t = "md",
|
|
34
|
+
detail: s = !1,
|
|
35
|
+
id: i,
|
|
36
|
+
className: p,
|
|
37
|
+
"aria-label": c,
|
|
38
|
+
title: f,
|
|
39
|
+
...m
|
|
40
|
+
}, h) => {
|
|
41
|
+
const { t: a } = R(), o = T(e, n), r = (() => {
|
|
42
|
+
switch (o) {
|
|
43
|
+
case "signed":
|
|
44
|
+
return a("signatureStatusChip.signed", { defaultValue: "Signed" });
|
|
45
|
+
case "unsigned":
|
|
46
|
+
return a("signatureStatusChip.unsigned", {
|
|
47
|
+
defaultValue: "Not signed"
|
|
48
|
+
});
|
|
49
|
+
case "notRequired":
|
|
50
|
+
return a("signatureStatusChip.notRequired", {
|
|
51
|
+
defaultValue: "No signature required"
|
|
52
|
+
});
|
|
53
|
+
case "partial":
|
|
54
|
+
return e === "pending" ? a("signatureStatusChip.missingOperator", {
|
|
55
|
+
defaultValue: "Operator signature missing"
|
|
56
|
+
}) : a("signatureStatusChip.missingPatient", {
|
|
57
|
+
defaultValue: "Patient signature missing"
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
})(), u = y(e, n).map(
|
|
61
|
+
({ party: g, standing: l }) => a("signatureStatusChip.breakdownItem", {
|
|
62
|
+
defaultValue: "{{party}} {{state}}",
|
|
63
|
+
party: a(`signatureStatusChip.party.${g}`, {
|
|
64
|
+
defaultValue: b[g]
|
|
65
|
+
}),
|
|
66
|
+
state: a(`signatureStatusChip.state.${l}`, {
|
|
67
|
+
defaultValue: w[l]
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
).join(" · "), d = u ? `${r}, ${u}` : r, S = s && u ? `${r} · ${u}` : r;
|
|
71
|
+
return /* @__PURE__ */ q(
|
|
72
|
+
V,
|
|
73
|
+
{
|
|
74
|
+
ref: h,
|
|
75
|
+
variant: A[o],
|
|
76
|
+
size: t,
|
|
77
|
+
withDot: !0,
|
|
78
|
+
role: "img",
|
|
79
|
+
"aria-label": c ?? d,
|
|
80
|
+
title: f ?? d,
|
|
81
|
+
"data-component": "signature-status-chip",
|
|
82
|
+
"data-status": o,
|
|
83
|
+
"data-component-id": i,
|
|
84
|
+
id: i,
|
|
85
|
+
className: p,
|
|
86
|
+
...m,
|
|
87
|
+
children: S
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
N.displayName = "SignatureStatusChip";
|
|
93
|
+
export {
|
|
94
|
+
N as S,
|
|
95
|
+
T as s
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=signature-status-chip-DlLJk1VA.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as v, Fragment as S } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as V, useState as F, useCallback as O, forwardRef as D, Fragment as M } from "react";
|
|
3
3
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as L } from "react-i18next";
|
|
5
|
-
import { B as W } from "./badge-
|
|
5
|
+
import { B as W } from "./badge-CIt-UFEx.js";
|
|
6
6
|
import { D as b } from "./dropdown-menu-DU-Hrf33.js";
|
|
7
7
|
import { u as P } from "./use-media-query-CcAx5SMM.js";
|
|
8
8
|
import { u as I } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
@@ -265,4 +265,4 @@ ts.displayName = "TabBar";
|
|
|
265
265
|
export {
|
|
266
266
|
ts as T
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=tab-bar-
|
|
268
|
+
//# sourceMappingURL=tab-bar-Ddp_ZbnL.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as k, Fragment as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as pt, useId as ge, useMemo as V, useState as h, useCallback as f, useRef as O, useImperativeHandle as ut } from "react";
|
|
3
3
|
import { c as ft } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as mt } from "react-i18next";
|
|
5
|
-
import { B as kt } from "./badge-
|
|
5
|
+
import { B as kt } from "./badge-CIt-UFEx.js";
|
|
6
6
|
import { B as ae } from "./button-BvNtqHAS.js";
|
|
7
7
|
import { I as $ } from "./icon-button-9c9Gp41m.js";
|
|
8
8
|
import { B as he } from "./button-group-Be_In68J.js";
|
|
@@ -754,4 +754,4 @@ export {
|
|
|
754
754
|
Gt as T,
|
|
755
755
|
qt as t
|
|
756
756
|
};
|
|
757
|
-
//# sourceMappingURL=tasks-panel-
|
|
757
|
+
//# sourceMappingURL=tasks-panel-T7vaKJcA.js.map
|