@alfadocs/ui-kit 1.4.13 → 1.4.15
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-D-8akw2m.js → address-fields-CZP4Wncx.js} +2 -2
- package/dist/_chunks/{agenda-card-BQDs2ZMp.js → agenda-card-pdN49pMu.js} +2 -2
- package/dist/_chunks/{agenda-tray-BTyWsVwT.js → agenda-tray-CYR-znfE.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-gVcoiXxv.js → ai-consent-banner-DLF6FNXv.js} +2 -2
- package/dist/_chunks/{anamnesis-card-Bt0twrML.js → anamnesis-card-BylMLHYj.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-BKGVcwny.js → anamnesis-summary-card-DGVKBQoq.js} +134 -116
- package/dist/_chunks/{anamnesis-summary-rows-B5MAYkJ-.js → anamnesis-summary-rows-ESkjwenu.js} +2438 -2353
- package/dist/_chunks/{antenatal-schedule-timeline-BSLrOQ3S.js → antenatal-schedule-timeline-BjlF2rTz.js} +2 -2
- package/dist/_chunks/{appointment-card-kcUC7vWR.js → appointment-card-BhcPJpXh.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BC3dlZu5.js → appointment-timeline-DT1uFp8z.js} +2 -2
- package/dist/_chunks/{appointment-tray-BPY5rATW.js → appointment-tray-DvyVK7um.js} +2 -2
- package/dist/_chunks/{badge-CIt-UFEx.js → badge-sTusUqZD.js} +23 -18
- package/dist/_chunks/{bishop-score-B6iYYO0c.js → bishop-score-BV1JAEMV.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DC5SaqXT.js → bmi-calculator-CdR-RLFj.js} +5 -5
- package/dist/_chunks/{booking-CmHX15dh.js → booking-CGKof8QU.js} +2 -2
- package/dist/_chunks/{care-plan-card-9tLgsDYY.js → care-plan-card-C83Hb9EE.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CSan4h7A.js → care-plan-entry-card-CHMPSTCz.js} +2 -2
- package/dist/_chunks/{care-plan-header-D_BTi77b.js → care-plan-header-_B0TTWT1.js} +2 -2
- package/dist/_chunks/{clinical-note-card-ByzQ86uz.js → clinical-note-card-BBgFd2nB.js} +2 -2
- package/dist/_chunks/{connection-status-D8mZ4klk.js → connection-status-NT8hUtYl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DuW6VpzY.js → contact-profile-card-BxHiG8e6.js} +2 -2
- package/dist/_chunks/{cycle-calculator-B_NlctlQ.js → cycle-calculator-DJZYvNhw.js} +4 -4
- package/dist/_chunks/{dependent-selector-BUvrZRi0.js → dependent-selector-cJlJFAKD.js} +2 -2
- package/dist/_chunks/{document-preview-Di15VrpQ.js → document-preview-Aae2yKvY.js} +2 -2
- package/dist/_chunks/{due-date-calculator-le1z3KpW.js → due-date-calculator-ajaQ4ya5.js} +6 -6
- package/dist/_chunks/{fetal-weight-DXA6ZpMq.js → fetal-weight-jon6GIfQ.js} +4 -4
- package/dist/_chunks/{field-value-BCFLVBmu.js → field-value-BbiDRyNh.js} +2 -2
- package/dist/_chunks/{file-manager-BjCM2fZB.js → file-manager-CML_C6_h.js} +2 -2
- package/dist/_chunks/form-field-CahJzTxp.js +131 -0
- package/dist/_chunks/{gestational-age-calculator-Ch8vmJAl.js → gestational-age-calculator-dEpQDWcb.js} +5 -5
- package/dist/_chunks/{hcg-doubling-BT6lki_i.js → hcg-doubling-CC6TLtHd.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-C7GvyK66.js → link-cell-renderer-D3IsW_2R.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-BhRH7Zi4.js → marketplace-app-shell-b5hN-Q0m.js} +2 -2
- package/dist/_chunks/{notes-panel-Bz83SO4-.js → notes-panel-D6HKLLS-.js} +2 -2
- package/dist/_chunks/{number-input-CM1q9zvH.js → number-input-Cgu2TtA8.js} +30 -21
- package/dist/_chunks/{operator-hero-CpJkDNAM.js → operator-hero-CCDnIa1S.js} +2 -2
- package/dist/_chunks/{optical-prescription-CQR_WJiS.js → optical-prescription-DtzEqFQm.js} +2 -2
- package/dist/_chunks/{patient-details-CnFgF3MU.js → patient-details-rENrE_qY.js} +3 -3
- package/dist/_chunks/{patient-summary-card-DfbOtOV6.js → patient-summary-card-DQJgOOrA.js} +3 -3
- package/dist/_chunks/{patient-table-BXzcrC79.js → patient-table-BubxfOWL.js} +3 -3
- package/dist/_chunks/{payment-automation-upsell-Ckh3b7Xx.js → payment-automation-upsell-CnaBPt5e.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dn6-tH-D.js → payment-request-card-CvhDzDNk.js} +2 -2
- package/dist/_chunks/{periodontal-chart-B0yko9Xm.js → periodontal-chart-brakjj0s.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-HbYTmWlo.js → periodontal-chart-card-Bz-ebteE.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-Qk4F3Wc_.js → periodontal-diagnosis-HrFsVi-C.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-ByKuM4cF.js → periodontal-risk-chart-0x7KVZjL.js} +2 -2
- package/dist/_chunks/{practice-results-C5exrEn0.js → practice-results-DWUZRm2x.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-4tPV_Yko.js → pregnancy-dating-DQVpFs_f.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-BBgbWBGe.js → pregnancy-weight-gain-hm3QJALe.js} +5 -5
- package/dist/_chunks/radio-group-rXDJADzW.js +175 -0
- package/dist/_chunks/{radiograph-panel.agent-Drj0hYVV.js → radiograph-panel.agent-CAXFgCyn.js} +3 -3
- package/dist/_chunks/{signature-status-chip-DlLJk1VA.js → signature-status-chip-DqrPIJtH.js} +2 -2
- package/dist/_chunks/{tab-bar-Ddp_ZbnL.js → tab-bar-DvFJIQfL.js} +2 -2
- package/dist/_chunks/{tasks-panel-T7vaKJcA.js → tasks-panel-BBkZuejF.js} +2 -2
- package/dist/_chunks/{unit-converter-Dsk__pjA.js → unit-converter-iDxlxKmm.js} +3 -3
- package/dist/_chunks/{widget-picker-DqMbjQy_.js → widget-picker-em4xGgv0.js} +2 -2
- package/dist/_chunks/{workflow-map-BNBeG2zn.js → workflow-map-BVofnDYh.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- 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/anamnesis-summary-card.d.ts +2 -2
- 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/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/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 +8 -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/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +5 -2
- 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 +5 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tasks-panel/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/index.js +56 -56
- package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +7 -1
- package/dist/patterns/anamnesis/anamnesis-field.d.ts +9 -1
- package/dist/patterns/anamnesis/anamnesis-indicators.d.ts +3 -1
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +3 -2
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +3 -0
- 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 +3 -3
- package/package.json +1 -1
- package/dist/_chunks/form-field-D1oqYisL.js +0 -127
- package/dist/_chunks/radio-group-BmIqhIT2.js +0 -171
package/package.json
CHANGED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as V, useId as B, useMemo as x } from "react";
|
|
3
|
-
import { c as u } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { F as I } from "./form-field-context-B3APVHKx.js";
|
|
6
|
-
import { C as $ } from "./circle-alert-rGDZ73Wh.js";
|
|
7
|
-
const k = u("ds:text-start", {
|
|
8
|
-
variants: {
|
|
9
|
-
orientation: {
|
|
10
|
-
vertical: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
11
|
-
horizontal: "ds:grid ds:grid-cols-[minmax(0,var(--form-label-inline-size))_minmax(0,1fr)] ds:items-start ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)]"
|
|
12
|
-
},
|
|
13
|
-
disabled: {
|
|
14
|
-
true: "ds:opacity-50 ds:cursor-not-allowed",
|
|
15
|
-
false: ""
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
orientation: "vertical",
|
|
20
|
-
disabled: !1
|
|
21
|
-
}
|
|
22
|
-
}), T = u("ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", {
|
|
23
|
-
variants: {
|
|
24
|
-
orientation: {
|
|
25
|
-
vertical: "",
|
|
26
|
-
horizontal: "ds:min-w-0"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
orientation: "vertical"
|
|
31
|
-
}
|
|
32
|
-
}), q = V(
|
|
33
|
-
(v, h) => {
|
|
34
|
-
const {
|
|
35
|
-
label: g,
|
|
36
|
-
labelEnd: l,
|
|
37
|
-
description: n,
|
|
38
|
-
error: r,
|
|
39
|
-
required: d = !1,
|
|
40
|
-
optional: b = !1,
|
|
41
|
-
orientation: c = "vertical",
|
|
42
|
-
disabled: o = !1,
|
|
43
|
-
className: y,
|
|
44
|
-
children: N,
|
|
45
|
-
...F
|
|
46
|
-
} = v, { t: j } = C(), s = B(), t = `${s}-help`, i = `${s}-error`, m = !!r, p = x(
|
|
47
|
-
() => [n ? t : null, r ? i : null].filter(Boolean).join(" "),
|
|
48
|
-
[n, r, t, i]
|
|
49
|
-
), w = x(
|
|
50
|
-
() => ({
|
|
51
|
-
id: s,
|
|
52
|
-
helpId: t,
|
|
53
|
-
errorId: i,
|
|
54
|
-
describedBy: p,
|
|
55
|
-
invalid: m,
|
|
56
|
-
required: d,
|
|
57
|
-
disabled: o
|
|
58
|
-
}),
|
|
59
|
-
[s, t, i, p, m, d, o]
|
|
60
|
-
), f = /* @__PURE__ */ a(z, { children: [
|
|
61
|
-
g,
|
|
62
|
-
d && /* @__PURE__ */ e(
|
|
63
|
-
"span",
|
|
64
|
-
{
|
|
65
|
-
"aria-hidden": "true",
|
|
66
|
-
className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
|
|
67
|
-
children: "*"
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
b && /* @__PURE__ */ a("span", { className: "ds:text-muted-foreground ds:ms-[var(--spacing-xs)] ds:font-normal", children: [
|
|
71
|
-
"(",
|
|
72
|
-
j("common.optional", "optional"),
|
|
73
|
-
")"
|
|
74
|
-
] })
|
|
75
|
-
] });
|
|
76
|
-
return /* @__PURE__ */ e(I.Provider, { value: w, children: /* @__PURE__ */ a(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
ref: h,
|
|
80
|
-
className: k({ orientation: c, disabled: o, className: y }),
|
|
81
|
-
"data-component": "form-field",
|
|
82
|
-
...F,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ a(
|
|
85
|
-
"label",
|
|
86
|
-
{
|
|
87
|
-
id: `${s}-label`,
|
|
88
|
-
htmlFor: s,
|
|
89
|
-
className: l ? "type-label ds:text-foreground ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]" : "type-label ds:text-foreground",
|
|
90
|
-
children: [
|
|
91
|
-
l ? /* @__PURE__ */ e("span", { children: f }) : f,
|
|
92
|
-
l ? /* @__PURE__ */ e("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: l }) : null
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
/* @__PURE__ */ a("div", { className: T({ orientation: c }), children: [
|
|
97
|
-
N,
|
|
98
|
-
n && /* @__PURE__ */ e("p", { id: t, className: "type-body-sm ds:text-muted-foreground", children: n }),
|
|
99
|
-
r && /* @__PURE__ */ a(
|
|
100
|
-
"p",
|
|
101
|
-
{
|
|
102
|
-
id: i,
|
|
103
|
-
role: "alert",
|
|
104
|
-
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
$,
|
|
108
|
-
{
|
|
109
|
-
"aria-hidden": "true",
|
|
110
|
-
className: "ds:size-4 ds:shrink-0"
|
|
111
|
-
}
|
|
112
|
-
),
|
|
113
|
-
/* @__PURE__ */ e("span", { children: r })
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] })
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
) });
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
q.displayName = "FormField";
|
|
124
|
-
export {
|
|
125
|
-
q as F
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=form-field-D1oqYisL.js.map
|
|
@@ -1,171 +0,0 @@
|
|
|
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
|