@alfadocs/ui-kit 1.55.0 → 1.56.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/{alia-sidebar-DS0b54Mv.js → alia-sidebar-DOei4Iyu.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.js → anamnesis-summary-rows-CQ-XGr0T.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js → balance-badge-cell-DmDcXw0c.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
- package/dist/_chunks/{booking-uZO10TLK.js → booking-WyNGKPE2.js} +2 -2
- package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
- package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-pCPWta7h.js} +2 -2
- package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-Du2ryaI-.js} +8 -8
- package/dist/_chunks/{care-plan-header-BeMYMiI7.js → care-plan-header-DUX_SVvF.js} +2 -2
- package/dist/_chunks/chart-HsF1KHbx.js +909 -0
- package/dist/_chunks/{contact-profile-card-C5DbP_X3.js → contact-profile-card-Ci8lBQ6a.js} +2 -2
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
- package/dist/_chunks/{data-table-C6T31E33.js → data-table-D8fuhqO1.js} +1 -1
- package/dist/_chunks/{date-range-picker-BOvHwWO5.js → date-range-picker-CtUOI38x.js} +188 -182
- package/dist/_chunks/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
- package/dist/_chunks/{dialog-D52AI4nF.js → dialog-CUzbnKLw.js} +86 -69
- package/dist/_chunks/{due-date-calculator-DXDJbUzo.js → due-date-calculator-CSjklbyw.js} +2 -2
- package/dist/_chunks/{file-manager-dIJQUZvq.js → file-manager-Cc_uO8r2.js} +4 -4
- package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
- package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-DqVeJke2.js} +2 -2
- package/dist/_chunks/{heatmap-BARGZZt2.js → heatmap-Gf9r7Tn1.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-fV-Apf72.js} +2 -2
- package/dist/_chunks/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
- package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-Byfxy6sy.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-TeJNvymP.js} +2 -2
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +65 -0
- package/dist/_chunks/{notes-panel-I8ntrrUW.js → notes-panel-DceRhthG.js} +3 -3
- package/dist/_chunks/{patient-summary-card-3dspc2tR.js → patient-summary-card-9nQWTQf6.js} +7 -3
- package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
- package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-CwDpwXUC.js} +2 -2
- package/dist/_chunks/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
- package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
- package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-Dhbo-fc_.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-Bfu0Cq4H.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
- package/dist/_chunks/{public-header.agent-BWusjxY8.js → public-header.agent-pr2hyiND.js} +2 -2
- package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
- package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DkUokbEa.js} +3 -3
- package/dist/_chunks/{rich-text-editor-Blp4smUr.js → rich-text-editor-CkFfmA3v.js} +2 -2
- package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-C7SwIxwB.js} +95 -79
- package/dist/_chunks/{signature-request-rgMsgo-C.js → signature-request-DhbpB9N9.js} +2 -2
- package/dist/_chunks/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
- package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
- package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-ByyRu29Y.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-JsDM48tf.js} +2 -2
- package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
- package/dist/_chunks/{widget-picker-D8RiWrJd.js → widget-picker-DXYBMTfe.js} +2 -2
- package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
- package/dist/agent-catalog.json +27 -10
- package/dist/agent-i18n/en.json +8 -7
- package/dist/components/_shared/non-modal-tab-exit.d.ts +8 -0
- package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
- package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +10 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/notes-panel/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/position-grid/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/public-header/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +9 -0
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-legacy.css +13 -2
- package/dist/i18n/locales/ar.d.ts +3 -2
- package/dist/i18n/locales/ar.js +5 -4
- package/dist/i18n/locales/de.d.ts +3 -2
- package/dist/i18n/locales/de.js +5 -4
- package/dist/i18n/locales/el.d.ts +3 -2
- package/dist/i18n/locales/el.js +5 -4
- package/dist/i18n/locales/en.d.ts +3 -2
- package/dist/i18n/locales/en.js +5 -4
- package/dist/i18n/locales/es.d.ts +3 -2
- package/dist/i18n/locales/es.js +5 -4
- package/dist/i18n/locales/fr.d.ts +3 -2
- package/dist/i18n/locales/fr.js +5 -4
- package/dist/i18n/locales/hi.d.ts +3 -2
- package/dist/i18n/locales/hi.js +5 -4
- package/dist/i18n/locales/it.d.ts +3 -2
- package/dist/i18n/locales/it.js +5 -4
- package/dist/i18n/locales/ja.d.ts +3 -2
- package/dist/i18n/locales/ja.js +5 -4
- package/dist/i18n/locales/nl.d.ts +3 -2
- package/dist/i18n/locales/nl.js +5 -4
- package/dist/i18n/locales/pl.d.ts +3 -2
- package/dist/i18n/locales/pl.js +5 -4
- package/dist/i18n/locales/pt.d.ts +3 -2
- package/dist/i18n/locales/pt.js +5 -4
- package/dist/i18n/locales/ro.d.ts +3 -2
- package/dist/i18n/locales/ro.js +5 -4
- package/dist/i18n/locales/ru.d.ts +3 -2
- package/dist/i18n/locales/ru.js +5 -4
- package/dist/i18n/locales/sq.d.ts +3 -2
- package/dist/i18n/locales/sq.js +5 -4
- package/dist/i18n/locales/sv.d.ts +3 -2
- package/dist/i18n/locales/sv.js +5 -4
- package/dist/i18n/locales/tr.d.ts +3 -2
- package/dist/i18n/locales/tr.js +5 -4
- package/dist/i18n/locales/zh.d.ts +3 -2
- package/dist/i18n/locales/zh.js +5 -4
- package/dist/index.js +48 -48
- package/dist/locales/ar.json +5 -4
- package/dist/locales/de.json +5 -4
- package/dist/locales/el.json +5 -4
- package/dist/locales/en.json +5 -4
- package/dist/locales/es.json +5 -4
- package/dist/locales/fr.json +5 -4
- package/dist/locales/hi.json +5 -4
- package/dist/locales/it.json +5 -4
- package/dist/locales/ja.json +5 -4
- package/dist/locales/nl.json +5 -4
- package/dist/locales/pl.json +5 -4
- package/dist/locales/pt.json +5 -4
- package/dist/locales/ro.json +5 -4
- package/dist/locales/ru.json +5 -4
- package/dist/locales/sq.json +5 -4
- package/dist/locales/sv.json +5 -4
- package/dist/locales/tr.json +5 -4
- package/dist/locales/zh.json +5 -4
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +13 -2
- package/package.json +1 -1
- package/dist/_chunks/chart-C2RBJERE.js +0 -705
- package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { T as
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
|
|
2
|
+
import { forwardRef as me, useId as pe, useRef as f, useEffect as E, useMemo as L, useState as ue } from "react";
|
|
3
|
+
import * as O from "@radix-ui/react-radio-group";
|
|
4
|
+
import { c as F } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as fe } from "react-i18next";
|
|
6
|
+
import { A as ge } from "./avatar-WZY3eGE7.js";
|
|
7
|
+
import { B as ve } from "./badge-hnBt8o7n.js";
|
|
8
|
+
import { T as be } from "./tooltip-Cp-PLePW.js";
|
|
9
|
+
import { c as he } from "./compose-refs-C0k0tdqF.js";
|
|
10
|
+
import { u as ye } from "./use-select-on-arrow-Cr4iBuW5.js";
|
|
11
|
+
import { u as xe } from "./registry-DvAUVLHh.js";
|
|
12
|
+
import { u as Se } from "./use-direction-Dp8h70PP.js";
|
|
13
|
+
import { C as we } from "./circle-alert-rGDZ73Wh.js";
|
|
14
|
+
const Ne = {
|
|
14
15
|
id: "dependent-selector",
|
|
15
16
|
capabilities: ["select_single"],
|
|
16
17
|
state: {
|
|
@@ -62,7 +63,7 @@ const xe = {
|
|
|
62
63
|
description: "Stable person id emitted on each rendered person row."
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, ze = F(
|
|
66
67
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:min-w-0",
|
|
67
68
|
{
|
|
68
69
|
variants: {
|
|
@@ -71,7 +72,7 @@ const xe = {
|
|
|
71
72
|
},
|
|
72
73
|
defaultVariants: { size: "md", tone: "checkin" }
|
|
73
74
|
}
|
|
74
|
-
),
|
|
75
|
+
), G = F(
|
|
75
76
|
[
|
|
76
77
|
// The row IS the Radix Item (`<button role="radio">`). Reset the
|
|
77
78
|
// button chrome, lay out avatar + text on the inline axis. Logical
|
|
@@ -116,15 +117,15 @@ const xe = {
|
|
|
116
117
|
},
|
|
117
118
|
defaultVariants: { size: "md", tone: "checkin", disabled: !1 }
|
|
118
119
|
}
|
|
119
|
-
),
|
|
120
|
+
), ke = { sm: "sm", md: "md", lg: "lg" }, Be = {
|
|
120
121
|
sm: "ds:size-8",
|
|
121
122
|
md: "ds:size-10",
|
|
122
123
|
lg: "ds:size-12"
|
|
123
|
-
},
|
|
124
|
+
}, Re = {
|
|
124
125
|
sm: "type-body-sm",
|
|
125
126
|
md: "type-label",
|
|
126
127
|
lg: "type-body"
|
|
127
|
-
},
|
|
128
|
+
}, Ie = me(
|
|
128
129
|
({
|
|
129
130
|
people: t,
|
|
130
131
|
value: c,
|
|
@@ -132,65 +133,66 @@ const xe = {
|
|
|
132
133
|
onValueChange: n,
|
|
133
134
|
label: v,
|
|
134
135
|
description: S,
|
|
135
|
-
size:
|
|
136
|
-
tone:
|
|
136
|
+
size: J = "md",
|
|
137
|
+
tone: Q = "checkin",
|
|
137
138
|
loading: r = !1,
|
|
138
139
|
error: m,
|
|
139
|
-
emptyState:
|
|
140
|
+
emptyState: U,
|
|
140
141
|
id: p,
|
|
141
|
-
className:
|
|
142
|
+
className: W,
|
|
142
143
|
"aria-label": w,
|
|
143
|
-
"aria-labelledby":
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
"aria-labelledby": k,
|
|
145
|
+
onKeyDown: N,
|
|
146
|
+
...X
|
|
147
|
+
}, Y) => {
|
|
148
|
+
const o = J ?? "md", z = Q ?? "checkin", { t: a } = fe("ui"), b = pe(), B = `${b}-legend`, R = `${b}-description`, I = `${b}-error`;
|
|
149
|
+
f(!1), E(() => {
|
|
150
|
+
}, [v, w, k]);
|
|
151
|
+
const A = L(
|
|
150
152
|
() => t.filter((e) => !e.disabled),
|
|
151
153
|
[t]
|
|
152
|
-
),
|
|
154
|
+
), Z = t.some(
|
|
153
155
|
(e) => e.relationshipKey !== "self"
|
|
154
|
-
), u =
|
|
156
|
+
), u = A.length === 1 ? A[0].id : void 0, i = c !== void 0, [C, ee] = ue(
|
|
155
157
|
g ?? u ?? ""
|
|
156
|
-
),
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
r
|
|
158
|
+
), _ = i ? c ?? "" : C, $ = f(_);
|
|
159
|
+
$.current = _;
|
|
160
|
+
const j = ye(), T = (e) => {
|
|
161
|
+
j.noteSelection(), !r && (i || ee(e), n == null || n(e));
|
|
160
162
|
}, h = f(n);
|
|
161
163
|
h.current = n;
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
+
const V = f(!1);
|
|
165
|
+
E(() => {
|
|
164
166
|
var e;
|
|
165
|
-
!
|
|
167
|
+
!V.current && !i && !r && g === void 0 && u !== void 0 && (V.current = !0, (e = h.current) == null || e.call(h, u));
|
|
166
168
|
}, [i, r, g, u]);
|
|
167
|
-
const
|
|
169
|
+
const se = L(
|
|
168
170
|
() => ({
|
|
169
|
-
getValue: () =>
|
|
170
|
-
setValue: (e) =>
|
|
171
|
+
getValue: () => $.current,
|
|
172
|
+
setValue: (e) => T(e)
|
|
171
173
|
}),
|
|
172
174
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
173
175
|
[i, r, n]
|
|
174
176
|
);
|
|
175
|
-
|
|
176
|
-
const D = f(null),
|
|
177
|
+
xe(Ne, se, p);
|
|
178
|
+
const D = f(null), M = he(Y, D), de = Se(D), y = k ?? (v ? B : void 0), H = [S ? R : null, m ? I : null].filter(Boolean).join(" ") || void 0, K = (e) => a(`dependentSelector.relationship.${e}`), P = (e) => a("dependentSelector.age", { count: e }), te = (e) => {
|
|
177
179
|
const l = [a("dependentSelector.optionLabel", {
|
|
178
180
|
name: e.name,
|
|
179
|
-
relationship:
|
|
181
|
+
relationship: K(e.relationshipKey)
|
|
180
182
|
})];
|
|
181
|
-
return typeof e.age == "number" && l.push(
|
|
182
|
-
},
|
|
183
|
+
return typeof e.age == "number" && l.push(P(e.age)), e.isMinor && l.push(a("dependentSelector.minorBadge")), l.join(", ");
|
|
184
|
+
}, ae = S ? /* @__PURE__ */ s("p", { id: R, className: "type-body-sm ds:text-muted-foreground", children: S }) : null, ie = m ? /* @__PURE__ */ d(
|
|
183
185
|
"p",
|
|
184
186
|
{
|
|
185
|
-
id:
|
|
187
|
+
id: I,
|
|
186
188
|
role: "alert",
|
|
187
189
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
188
190
|
children: [
|
|
189
|
-
/* @__PURE__ */ s(
|
|
191
|
+
/* @__PURE__ */ s(we, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
190
192
|
/* @__PURE__ */ s("span", { children: m })
|
|
191
193
|
]
|
|
192
194
|
}
|
|
193
|
-
) : null,
|
|
195
|
+
) : null, ne = /* @__PURE__ */ s(
|
|
194
196
|
"div",
|
|
195
197
|
{
|
|
196
198
|
"aria-hidden": "true",
|
|
@@ -198,12 +200,12 @@ const xe = {
|
|
|
198
200
|
children: Array.from({ length: 3 }).map((e, x) => /* @__PURE__ */ d(
|
|
199
201
|
"div",
|
|
200
202
|
{
|
|
201
|
-
className:
|
|
203
|
+
className: G({ size: o, tone: z, disabled: !1 }),
|
|
202
204
|
children: [
|
|
203
205
|
/* @__PURE__ */ s(
|
|
204
206
|
"span",
|
|
205
207
|
{
|
|
206
|
-
className: `ds:inline-flex ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-muted ds:animate-pulse ${
|
|
208
|
+
className: `ds:inline-flex ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-muted ds:animate-pulse ${Be[o]}`
|
|
207
209
|
}
|
|
208
210
|
),
|
|
209
211
|
/* @__PURE__ */ d("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0 ds:flex-1", children: [
|
|
@@ -215,9 +217,9 @@ const xe = {
|
|
|
215
217
|
x
|
|
216
218
|
))
|
|
217
219
|
}
|
|
218
|
-
),
|
|
219
|
-
const x = `${b}-row-${e.id}`, l =
|
|
220
|
-
|
|
220
|
+
), re = (e) => {
|
|
221
|
+
const x = `${b}-row-${e.id}`, l = te(e), q = /* @__PURE__ */ d(
|
|
222
|
+
O.Item,
|
|
221
223
|
{
|
|
222
224
|
id: x,
|
|
223
225
|
value: e.id,
|
|
@@ -225,18 +227,18 @@ const xe = {
|
|
|
225
227
|
"aria-label": l,
|
|
226
228
|
title: e.dob ?? void 0,
|
|
227
229
|
"data-option-id": e.id,
|
|
228
|
-
className:
|
|
230
|
+
className: G({
|
|
229
231
|
size: o,
|
|
230
|
-
tone:
|
|
232
|
+
tone: z,
|
|
231
233
|
disabled: !!e.disabled
|
|
232
234
|
}),
|
|
233
235
|
children: [
|
|
234
236
|
/* @__PURE__ */ s(
|
|
235
|
-
|
|
237
|
+
ge,
|
|
236
238
|
{
|
|
237
239
|
src: e.avatarSrc,
|
|
238
240
|
name: e.name,
|
|
239
|
-
size:
|
|
241
|
+
size: ke[o],
|
|
240
242
|
"aria-hidden": "true"
|
|
241
243
|
}
|
|
242
244
|
),
|
|
@@ -250,7 +252,7 @@ const xe = {
|
|
|
250
252
|
/* @__PURE__ */ s(
|
|
251
253
|
"span",
|
|
252
254
|
{
|
|
253
|
-
className: `${
|
|
255
|
+
className: `${Re[o]} ds:text-foreground ds:truncate ds:min-w-0`,
|
|
254
256
|
children: e.name
|
|
255
257
|
}
|
|
256
258
|
),
|
|
@@ -258,12 +260,12 @@ const xe = {
|
|
|
258
260
|
// Neutral chip (validated AA ~6:1) — the "Minor" flag is
|
|
259
261
|
// informational, not a warning STATE. The tonal `warning`
|
|
260
262
|
// variant fails AA at the small chip font size.
|
|
261
|
-
/* @__PURE__ */ s(
|
|
263
|
+
/* @__PURE__ */ s(ve, { variant: "neutral", size: "sm", children: a("dependentSelector.minorBadge") })
|
|
262
264
|
) : null
|
|
263
265
|
] }),
|
|
264
266
|
/* @__PURE__ */ d("span", { className: "type-body-sm ds:text-muted-foreground ds:truncate ds:min-w-0", children: [
|
|
265
|
-
|
|
266
|
-
typeof e.age == "number" ? ` · ${
|
|
267
|
+
K(e.relationshipKey),
|
|
268
|
+
typeof e.age == "number" ? ` · ${P(e.age)}` : null
|
|
267
269
|
] })
|
|
268
270
|
]
|
|
269
271
|
}
|
|
@@ -272,25 +274,25 @@ const xe = {
|
|
|
272
274
|
},
|
|
273
275
|
e.id
|
|
274
276
|
);
|
|
275
|
-
return e.disabled && e.disabledReason ? /* @__PURE__ */ s(
|
|
277
|
+
return e.disabled && e.disabledReason ? /* @__PURE__ */ s(be, { label: e.disabledReason, children: /* @__PURE__ */ s(
|
|
276
278
|
"span",
|
|
277
279
|
{
|
|
278
280
|
tabIndex: 0,
|
|
279
281
|
"data-disabled-row": e.id,
|
|
280
282
|
"aria-label": l,
|
|
281
283
|
className: "ds:flex ds:min-w-0 ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
282
|
-
children:
|
|
284
|
+
children: q
|
|
283
285
|
}
|
|
284
|
-
) }, e.id) :
|
|
285
|
-
},
|
|
286
|
+
) }, e.id) : q;
|
|
287
|
+
}, oe = U ?? /* @__PURE__ */ s("p", { className: "type-body-sm ds:text-muted-foreground", children: a("dependentSelector.empty") }), le = r ? /* @__PURE__ */ d(
|
|
286
288
|
"div",
|
|
287
289
|
{
|
|
288
|
-
ref:
|
|
290
|
+
ref: M,
|
|
289
291
|
id: p,
|
|
290
292
|
role: "radiogroup",
|
|
291
293
|
"aria-label": y ? void 0 : w,
|
|
292
294
|
"aria-labelledby": y,
|
|
293
|
-
"aria-describedby":
|
|
295
|
+
"aria-describedby": H,
|
|
294
296
|
"aria-invalid": !!m || void 0,
|
|
295
297
|
"aria-busy": "true",
|
|
296
298
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:min-w-0",
|
|
@@ -298,41 +300,44 @@ const xe = {
|
|
|
298
300
|
"data-component-id": p,
|
|
299
301
|
children: [
|
|
300
302
|
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: a("dependentSelector.loadingLabel") }),
|
|
301
|
-
|
|
303
|
+
ne
|
|
302
304
|
]
|
|
303
305
|
}
|
|
304
306
|
) : /* @__PURE__ */ s(
|
|
305
|
-
|
|
307
|
+
O.Root,
|
|
306
308
|
{
|
|
307
|
-
ref:
|
|
309
|
+
ref: M,
|
|
308
310
|
id: p,
|
|
309
|
-
dir:
|
|
311
|
+
dir: de,
|
|
310
312
|
value: i ? c ?? "" : void 0,
|
|
311
313
|
defaultValue: i ? void 0 : g ?? u,
|
|
312
|
-
onValueChange:
|
|
314
|
+
onValueChange: T,
|
|
315
|
+
onKeyDown: (e) => {
|
|
316
|
+
N == null || N(e), j.onKeyDown(e);
|
|
317
|
+
},
|
|
313
318
|
"aria-label": y ? void 0 : w,
|
|
314
319
|
"aria-labelledby": y,
|
|
315
|
-
"aria-describedby":
|
|
320
|
+
"aria-describedby": H,
|
|
316
321
|
"aria-invalid": !!m || void 0,
|
|
317
322
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:min-w-0",
|
|
318
323
|
"data-component": "dependent-selector",
|
|
319
324
|
"data-component-id": p,
|
|
320
|
-
...
|
|
321
|
-
children: t.map(
|
|
325
|
+
...X,
|
|
326
|
+
children: t.map(re)
|
|
322
327
|
}
|
|
323
|
-
),
|
|
324
|
-
return /* @__PURE__ */ d("div", { className:
|
|
325
|
-
v ? /* @__PURE__ */ s("div", { id:
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
!r && !
|
|
329
|
-
|
|
328
|
+
), ce = ze({ size: o, tone: z, className: W });
|
|
329
|
+
return /* @__PURE__ */ d("div", { className: ce, children: [
|
|
330
|
+
v ? /* @__PURE__ */ s("div", { id: B, className: "type-label ds:text-foreground", children: v }) : null,
|
|
331
|
+
ae,
|
|
332
|
+
le,
|
|
333
|
+
!r && !Z ? oe : null,
|
|
334
|
+
ie
|
|
330
335
|
] });
|
|
331
336
|
}
|
|
332
337
|
);
|
|
333
|
-
|
|
338
|
+
Ie.displayName = "DependentSelector";
|
|
334
339
|
export {
|
|
335
|
-
|
|
336
|
-
|
|
340
|
+
Ie as D,
|
|
341
|
+
Ne as d
|
|
337
342
|
};
|
|
338
|
-
//# sourceMappingURL=dependent-selector-
|
|
343
|
+
//# sourceMappingURL=dependent-selector-DgaAQc-c.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as E, useEffect as H, useMemo as v, forwardRef as i, useContext as S, createContext as A } from "react";
|
|
3
3
|
import * as s from "@radix-ui/react-dialog";
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
|
|
4
|
+
import { c as z } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as F } from "react-i18next";
|
|
6
|
+
import { u as I } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
+
import { u as V } from "./registry-DvAUVLHh.js";
|
|
8
|
+
import { u as L } from "./non-modal-tab-exit-D2Bd93Bq.js";
|
|
9
|
+
import { X as M } from "./x-B5YnXwCz.js";
|
|
10
|
+
const P = {
|
|
10
11
|
id: "dialog",
|
|
11
12
|
capabilities: ["open", "close", "dismiss"],
|
|
12
13
|
state: {
|
|
@@ -54,18 +55,18 @@ const w = {
|
|
|
54
55
|
description: "Sourced from the id prop on Dialog.Root."
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
+
}, w = [
|
|
58
59
|
"ds-dialog__backdrop",
|
|
59
60
|
"ds:backdrop-blur-sm",
|
|
60
61
|
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0",
|
|
61
62
|
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0",
|
|
62
63
|
"ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
63
|
-
].join(" "),
|
|
64
|
+
].join(" "), K = [
|
|
64
65
|
"ds:focus-visible:outline-none",
|
|
65
66
|
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
|
|
66
67
|
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
|
|
67
68
|
"ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
68
|
-
].join(" "),
|
|
69
|
+
].join(" "), U = z(`ds-dialog ds-dialog__surface ${K}`, {
|
|
69
70
|
variants: {
|
|
70
71
|
size: {
|
|
71
72
|
sm: "ds-dialog__surface--sm",
|
|
@@ -82,68 +83,84 @@ const w = {
|
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
defaultVariants: { size: "md", scroll: "surface" }
|
|
85
|
-
}),
|
|
86
|
+
}), _ = A({ modal: !0 }), y = ({
|
|
86
87
|
children: e,
|
|
87
88
|
id: o,
|
|
88
89
|
open: a,
|
|
89
|
-
defaultOpen:
|
|
90
|
-
onOpenChange:
|
|
91
|
-
|
|
90
|
+
defaultOpen: r,
|
|
91
|
+
onOpenChange: m,
|
|
92
|
+
modal: l = !0,
|
|
93
|
+
...c
|
|
92
94
|
}) => {
|
|
93
|
-
const [g, n] =
|
|
95
|
+
const [g, n] = I({
|
|
94
96
|
value: a,
|
|
95
|
-
defaultValue:
|
|
96
|
-
onChange:
|
|
97
|
-
}), d = g ?? !1,
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
defaultValue: r ?? !1,
|
|
98
|
+
onChange: m
|
|
99
|
+
}), d = g ?? !1, p = E(d);
|
|
100
|
+
H(() => {
|
|
101
|
+
p.current = d;
|
|
100
102
|
}, [d]);
|
|
101
|
-
const
|
|
103
|
+
const u = v(
|
|
102
104
|
() => ({
|
|
103
|
-
getIsOpen: () =>
|
|
105
|
+
getIsOpen: () => p.current,
|
|
104
106
|
open: () => n(!0),
|
|
105
107
|
close: () => n(!1)
|
|
106
108
|
}),
|
|
107
109
|
[n]
|
|
108
110
|
);
|
|
109
|
-
|
|
111
|
+
V(P, u, o);
|
|
112
|
+
const f = v(() => ({ id: o, modal: l }), [o, l]);
|
|
113
|
+
return /* @__PURE__ */ t(_.Provider, { value: f, children: /* @__PURE__ */ t(
|
|
114
|
+
s.Root,
|
|
115
|
+
{
|
|
116
|
+
open: d,
|
|
117
|
+
onOpenChange: n,
|
|
118
|
+
modal: l,
|
|
119
|
+
...c,
|
|
120
|
+
children: e
|
|
121
|
+
}
|
|
122
|
+
) });
|
|
110
123
|
};
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
const
|
|
124
|
+
y.displayName = "Dialog.Root";
|
|
125
|
+
const C = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Trigger, { ref: a, ...o, children: e }));
|
|
126
|
+
C.displayName = "Dialog.Trigger";
|
|
127
|
+
const N = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Close, { ref: a, ...o, children: e }));
|
|
128
|
+
N.displayName = "Dialog.Close";
|
|
129
|
+
const h = i(
|
|
117
130
|
({
|
|
118
131
|
size: e = "md",
|
|
119
132
|
variant: o = "default",
|
|
120
133
|
scroll: a = "surface",
|
|
121
|
-
hideCloseButton:
|
|
122
|
-
className:
|
|
123
|
-
children:
|
|
134
|
+
hideCloseButton: r,
|
|
135
|
+
className: m,
|
|
136
|
+
children: l,
|
|
137
|
+
onKeyDown: c,
|
|
124
138
|
...g
|
|
125
139
|
}, n) => {
|
|
126
|
-
const { t: d } =
|
|
127
|
-
return /* @__PURE__ */
|
|
140
|
+
const { t: d } = F("ui"), { id: p, modal: u } = S(_), f = L(!u), B = o === "alert" ? { role: "alertdialog" } : {}, k = r ?? o !== "default";
|
|
141
|
+
return /* @__PURE__ */ b(s.Portal, { children: [
|
|
128
142
|
/* @__PURE__ */ t(
|
|
129
143
|
s.Overlay,
|
|
130
144
|
{
|
|
131
145
|
"data-component": "dialog-overlay",
|
|
132
|
-
className:
|
|
146
|
+
className: w
|
|
133
147
|
}
|
|
134
148
|
),
|
|
135
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ b(
|
|
136
150
|
s.Content,
|
|
137
151
|
{
|
|
138
152
|
ref: n,
|
|
139
|
-
...
|
|
153
|
+
...B,
|
|
140
154
|
"data-component": "dialog",
|
|
141
|
-
"data-component-id":
|
|
142
|
-
className:
|
|
155
|
+
"data-component-id": p,
|
|
156
|
+
className: U({ size: e, scroll: a, className: m }),
|
|
143
157
|
...g,
|
|
158
|
+
onKeyDown: (D) => {
|
|
159
|
+
c == null || c(D), f(D);
|
|
160
|
+
},
|
|
144
161
|
children: [
|
|
145
|
-
|
|
146
|
-
!
|
|
162
|
+
l,
|
|
163
|
+
!k && // The close is a plain button carrying the `ds-dialog__close`
|
|
147
164
|
// contract class — the SAME class a vanilla host renders. The CSS
|
|
148
165
|
// (src/styles.css) owns its position, sizing, glyph size, hover
|
|
149
166
|
// wash, and focus ring from tokens, so the React and non-React
|
|
@@ -154,7 +171,7 @@ const _ = i(
|
|
|
154
171
|
type: "button",
|
|
155
172
|
className: "ds-dialog__close",
|
|
156
173
|
"aria-label": d("common.close", "Close"),
|
|
157
|
-
children: /* @__PURE__ */ t(
|
|
174
|
+
children: /* @__PURE__ */ t(M, { "aria-hidden": "true" })
|
|
158
175
|
}
|
|
159
176
|
)
|
|
160
177
|
]
|
|
@@ -163,8 +180,8 @@ const _ = i(
|
|
|
163
180
|
] });
|
|
164
181
|
}
|
|
165
182
|
);
|
|
166
|
-
|
|
167
|
-
const
|
|
183
|
+
h.displayName = "Dialog.Content";
|
|
184
|
+
const R = i(
|
|
168
185
|
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
169
186
|
"div",
|
|
170
187
|
{
|
|
@@ -174,8 +191,8 @@ const b = i(
|
|
|
174
191
|
}
|
|
175
192
|
)
|
|
176
193
|
);
|
|
177
|
-
|
|
178
|
-
const
|
|
194
|
+
R.displayName = "Dialog.Header";
|
|
195
|
+
const O = i(
|
|
179
196
|
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
180
197
|
"div",
|
|
181
198
|
{
|
|
@@ -185,8 +202,8 @@ const C = i(
|
|
|
185
202
|
}
|
|
186
203
|
)
|
|
187
204
|
);
|
|
188
|
-
|
|
189
|
-
const
|
|
205
|
+
O.displayName = "Dialog.Body";
|
|
206
|
+
const x = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
190
207
|
s.Title,
|
|
191
208
|
{
|
|
192
209
|
ref: a,
|
|
@@ -194,8 +211,8 @@ const h = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
|
194
211
|
...o
|
|
195
212
|
}
|
|
196
213
|
));
|
|
197
|
-
|
|
198
|
-
const
|
|
214
|
+
x.displayName = "Dialog.Title";
|
|
215
|
+
const T = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
199
216
|
s.Description,
|
|
200
217
|
{
|
|
201
218
|
ref: a,
|
|
@@ -203,12 +220,12 @@ const N = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
|
203
220
|
...o
|
|
204
221
|
}
|
|
205
222
|
));
|
|
206
|
-
|
|
207
|
-
const
|
|
208
|
-
({ className: e, divider: o = !1, ...a },
|
|
223
|
+
T.displayName = "Dialog.Description";
|
|
224
|
+
const j = i(
|
|
225
|
+
({ className: e, divider: o = !1, ...a }, r) => /* @__PURE__ */ t(
|
|
209
226
|
"div",
|
|
210
227
|
{
|
|
211
|
-
ref:
|
|
228
|
+
ref: r,
|
|
212
229
|
className: [
|
|
213
230
|
"ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
|
|
214
231
|
"ds:mt-[var(--spacing-md)]",
|
|
@@ -219,20 +236,20 @@ const R = i(
|
|
|
219
236
|
}
|
|
220
237
|
)
|
|
221
238
|
);
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
Root:
|
|
225
|
-
Trigger:
|
|
226
|
-
Content:
|
|
227
|
-
Header:
|
|
228
|
-
Title:
|
|
229
|
-
Description:
|
|
230
|
-
Body:
|
|
231
|
-
Footer:
|
|
232
|
-
Close:
|
|
239
|
+
j.displayName = "Dialog.Footer";
|
|
240
|
+
const Z = Object.assign(y, {
|
|
241
|
+
Root: y,
|
|
242
|
+
Trigger: C,
|
|
243
|
+
Content: h,
|
|
244
|
+
Header: R,
|
|
245
|
+
Title: x,
|
|
246
|
+
Description: T,
|
|
247
|
+
Body: O,
|
|
248
|
+
Footer: j,
|
|
249
|
+
Close: N
|
|
233
250
|
});
|
|
234
251
|
export {
|
|
235
|
-
|
|
236
|
-
|
|
252
|
+
Z as D,
|
|
253
|
+
P as d
|
|
237
254
|
};
|
|
238
|
-
//# sourceMappingURL=dialog-
|
|
255
|
+
//# sourceMappingURL=dialog-CUzbnKLw.js.map
|
|
@@ -4,7 +4,7 @@ import { c as oe } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as ie } from "react-i18next";
|
|
5
5
|
import { u as de } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { R as C } from "./radio-BBbMdbE_.js";
|
|
7
|
-
import { R as z } from "./radio-group-
|
|
7
|
+
import { R as z } from "./radio-group-DicxWJXP.js";
|
|
8
8
|
import { F as w } from "./form-field-Ani72sVY.js";
|
|
9
9
|
import { D as T } from "./date-picker-wRAcq2lt.js";
|
|
10
10
|
import { N as Y } from "./number-input-CVwI1ltI.js";
|
|
@@ -568,4 +568,4 @@ Ae.displayName = "DueDateCalculator";
|
|
|
568
568
|
export {
|
|
569
569
|
Ae as D
|
|
570
570
|
};
|
|
571
|
-
//# sourceMappingURL=due-date-calculator-
|
|
571
|
+
//# sourceMappingURL=due-date-calculator-CSjklbyw.js.map
|
|
@@ -2,13 +2,13 @@ import { jsx as n, jsxs as S } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo as O, useState as te, useRef as ee, useEffect as ne, useId as Pe, useCallback as y, forwardRef as bt, useImperativeHandle as vt } from "react";
|
|
3
3
|
import { c as Ve } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as J } from "react-i18next";
|
|
5
|
-
import { B as kt, b as He, c as ge } from "./breadcrumb-
|
|
5
|
+
import { B as kt, b as He, c as ge } from "./breadcrumb-Boan-5n8.js";
|
|
6
6
|
import { E as Mt } from "./empty-state-gNG3qYCX.js";
|
|
7
7
|
import { S as he } from "./skeleton-B1KTdJ4N.js";
|
|
8
8
|
import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as wt } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { B as Z } from "./button-Bn16lcFM.js";
|
|
11
|
-
import { D as m } from "./dialog-
|
|
11
|
+
import { D as m } from "./dialog-CUzbnKLw.js";
|
|
12
12
|
import { a as St, F as xt } from "./file-upload-CxjCs7TX.js";
|
|
13
13
|
import { S as We } from "./state-backed-text-input-DECQy5aA.js";
|
|
14
14
|
import { F as Ge } from "./folder-BghC8_S2.js";
|
|
@@ -18,7 +18,7 @@ import { F as Ft } from "./file-text-5yv6r2ls.js";
|
|
|
18
18
|
import { F as Tt } from "./file-spreadsheet-DmwyfV4O.js";
|
|
19
19
|
import { F as At } from "./file-BuG1VMAy.js";
|
|
20
20
|
import { C as Dt } from "./chevron-right-I9AeSxH2.js";
|
|
21
|
-
import { D as Fe } from "./data-table-
|
|
21
|
+
import { D as Fe } from "./data-table-D8fuhqO1.js";
|
|
22
22
|
import { A as Rt, a as It } from "./actions-cell-renderer-Dj1ZkvJj.js";
|
|
23
23
|
import { B as $e } from "./badge-hnBt8o7n.js";
|
|
24
24
|
import { D as Ue } from "./download-CfYKJO_j.js";
|
|
@@ -1744,4 +1744,4 @@ export {
|
|
|
1744
1744
|
hn as F,
|
|
1745
1745
|
Gt as f
|
|
1746
1746
|
};
|
|
1747
|
-
//# sourceMappingURL=file-manager-
|
|
1747
|
+
//# sourceMappingURL=file-manager-Cc_uO8r2.js.map
|