@alfadocs/ui-kit 0.38.0 → 0.39.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/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{bmi-calculator-BRUru9QX.js → bmi-calculator-DnEr513I.js} +2 -2
- package/dist/_chunks/{booking-DK_BPHnQ.js → booking-4mCw3Mpl.js} +2 -2
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{document-scanner-CdHQ6lTN.js → document-scanner-CqS_klIr.js} +56 -55
- package/dist/_chunks/{editable-currency-cell-renderer-DGKuRNVG.js → editable-currency-cell-renderer-DgkCIIcO.js} +2 -2
- package/dist/_chunks/{file-upload-CnzRcErt.js → file-upload-BosbPDb1.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-Bz3CdO84.js → patient-shell-DF81lALv.js} +36 -35
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{practice-results-C8ciLQap.js → practice-results-C0d4IL5E.js} +2 -2
- package/dist/_chunks/{public-footer.agent-zw1vFin_.js → public-footer.agent-okt8ZRc5.js} +2 -2
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/agent-catalog.json +39 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +1 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/map-view/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/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +22 -0
- package/dist/i18n/locales/ar.js +22 -0
- package/dist/i18n/locales/de.d.ts +22 -0
- package/dist/i18n/locales/de.js +22 -0
- package/dist/i18n/locales/el.d.ts +22 -0
- package/dist/i18n/locales/el.js +22 -0
- package/dist/i18n/locales/en.d.ts +22 -0
- package/dist/i18n/locales/en.js +22 -0
- package/dist/i18n/locales/es.d.ts +22 -0
- package/dist/i18n/locales/es.js +22 -0
- package/dist/i18n/locales/fr.d.ts +22 -0
- package/dist/i18n/locales/fr.js +22 -0
- package/dist/i18n/locales/hi.d.ts +22 -0
- package/dist/i18n/locales/hi.js +22 -0
- package/dist/i18n/locales/it.d.ts +22 -0
- package/dist/i18n/locales/it.js +22 -0
- package/dist/i18n/locales/ja.d.ts +22 -0
- package/dist/i18n/locales/ja.js +22 -0
- package/dist/i18n/locales/nl.d.ts +22 -0
- package/dist/i18n/locales/nl.js +22 -0
- package/dist/i18n/locales/pl.d.ts +22 -0
- package/dist/i18n/locales/pl.js +22 -0
- package/dist/i18n/locales/pt.d.ts +22 -0
- package/dist/i18n/locales/pt.js +22 -0
- package/dist/i18n/locales/ro.d.ts +22 -0
- package/dist/i18n/locales/ro.js +22 -0
- package/dist/i18n/locales/ru.d.ts +22 -0
- package/dist/i18n/locales/ru.js +22 -0
- package/dist/i18n/locales/sq.d.ts +22 -0
- package/dist/i18n/locales/sq.js +22 -0
- package/dist/i18n/locales/sv.d.ts +22 -0
- package/dist/i18n/locales/sv.js +22 -0
- package/dist/i18n/locales/tr.d.ts +22 -0
- package/dist/i18n/locales/tr.js +22 -0
- package/dist/i18n/locales/zh.d.ts +22 -0
- package/dist/i18n/locales/zh.js +22 -0
- package/dist/index.js +110 -107
- package/dist/locales/ar.json +22 -0
- package/dist/locales/de.json +22 -0
- package/dist/locales/el.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/hi.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/locales/ja.json +22 -0
- package/dist/locales/nl.json +22 -0
- package/dist/locales/pl.json +22 -0
- package/dist/locales/pt.json +22 -0
- package/dist/locales/ro.json +22 -0
- package/dist/locales/ru.json +22 -0
- package/dist/locales/sq.json +22 -0
- package/dist/locales/sv.json +22 -0
- package/dist/locales/tr.json +22 -0
- package/dist/locales/zh.json +22 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/marketplace-app-shell-BnClrL2B.js +0 -295
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as j, useId as G, useMemo as
|
|
1
|
+
import { jsx as v, jsxs as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useId as G, useMemo as w, useRef as V, useState as A, useEffect as H, useImperativeHandle as Z } from "react";
|
|
3
3
|
import { c as $ } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import J from "react-apexcharts";
|
|
6
|
-
import
|
|
6
|
+
import R from "apexcharts";
|
|
7
7
|
import { g as D, u as K } from "./apexcharts-theme-BJigns_V.js";
|
|
8
8
|
import { u as Q } from "./registry-nPAVE19X.js";
|
|
9
9
|
function X(n) {
|
|
@@ -15,8 +15,8 @@ function X(n) {
|
|
|
15
15
|
const o = s - a;
|
|
16
16
|
i += o * (n[s] - c), l += o * o;
|
|
17
17
|
}
|
|
18
|
-
const d = l === 0 ? 0 : i / l,
|
|
19
|
-
return { slope: d, direction:
|
|
18
|
+
const d = l === 0 ? 0 : i / l, k = 0.01 * (Math.max(...n) - Math.min(...n) || 1), u = Math.abs(d) < k ? "steady" : d > 0 ? "increasing" : "decreasing";
|
|
19
|
+
return { slope: d, direction: u };
|
|
20
20
|
}
|
|
21
21
|
const Y = {
|
|
22
22
|
id: "sparkline",
|
|
@@ -50,7 +50,10 @@ const Y = {
|
|
|
50
50
|
size: {
|
|
51
51
|
xs: "ds:h-6",
|
|
52
52
|
sm: "ds:h-8",
|
|
53
|
-
md: "ds:h-10"
|
|
53
|
+
md: "ds:h-10",
|
|
54
|
+
// Applied when an explicit `height` prop is given: the wrapper
|
|
55
|
+
// grows with the svg instead of clipping at the size's fixed height.
|
|
56
|
+
auto: ""
|
|
54
57
|
}
|
|
55
58
|
},
|
|
56
59
|
defaultVariants: { size: "md" }
|
|
@@ -76,26 +79,26 @@ const ne = j(
|
|
|
76
79
|
color: l,
|
|
77
80
|
showEndpoint: d = !1,
|
|
78
81
|
showTooltip: M = !1,
|
|
79
|
-
width:
|
|
80
|
-
height:
|
|
82
|
+
width: k,
|
|
83
|
+
height: u,
|
|
81
84
|
className: s,
|
|
82
85
|
...o
|
|
83
86
|
}, _) => {
|
|
84
|
-
var
|
|
85
|
-
const { t:
|
|
87
|
+
var S;
|
|
88
|
+
const { t: m, i18n: C } = q(), T = G(), p = w(
|
|
86
89
|
() => `sparkline-${T.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
87
90
|
[T]
|
|
88
|
-
),
|
|
91
|
+
), h = V(null), [O, E] = A(0), { direction: y } = X(t), z = w(() => {
|
|
89
92
|
if (t.length === 0)
|
|
90
|
-
return
|
|
91
|
-
const e = (
|
|
93
|
+
return m("sparkline.noData", "No data");
|
|
94
|
+
const e = (b) => new Intl.NumberFormat(C.language).format(b), r = m(`sparkline.direction.${y}`), g = {
|
|
92
95
|
min: e(Math.min(...t)),
|
|
93
96
|
max: e(Math.max(...t)),
|
|
94
97
|
current: e(t[t.length - 1]),
|
|
95
98
|
direction: r
|
|
96
99
|
};
|
|
97
|
-
return i ?
|
|
98
|
-
}, [t, i, y, C.language,
|
|
100
|
+
return i ? m("sparkline.summary", { label: i, ...g }) : m("sparkline.summaryNoLabel", g);
|
|
101
|
+
}, [t, i, y, C.language, m]), [f, W] = A(
|
|
99
102
|
() => {
|
|
100
103
|
try {
|
|
101
104
|
return D();
|
|
@@ -104,7 +107,7 @@ const ne = j(
|
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
);
|
|
107
|
-
|
|
110
|
+
H(() => {
|
|
108
111
|
let e;
|
|
109
112
|
const r = new MutationObserver(() => {
|
|
110
113
|
clearTimeout(e), e = setTimeout(() => {
|
|
@@ -120,57 +123,60 @@ const ne = j(
|
|
|
120
123
|
}), () => {
|
|
121
124
|
clearTimeout(e), r.disconnect();
|
|
122
125
|
};
|
|
123
|
-
}, []),
|
|
124
|
-
const e =
|
|
126
|
+
}, []), H(() => {
|
|
127
|
+
const e = h.current;
|
|
125
128
|
if (!e) return;
|
|
126
|
-
const r = new ResizeObserver((
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
+
const r = new ResizeObserver((g) => {
|
|
130
|
+
const b = g[0];
|
|
131
|
+
b && E(Math.floor(b.contentRect.width));
|
|
129
132
|
});
|
|
130
133
|
return r.observe(e), () => r.disconnect();
|
|
131
|
-
}, []), K(
|
|
132
|
-
const x =
|
|
134
|
+
}, []), K(h);
|
|
135
|
+
const x = w(
|
|
133
136
|
() => ({
|
|
134
137
|
updateSeries(e) {
|
|
135
138
|
var r;
|
|
136
|
-
(r =
|
|
139
|
+
(r = R.getChartByID(p)) == null || r.updateSeries([{ data: e }]);
|
|
137
140
|
},
|
|
138
141
|
updateOptions(e) {
|
|
139
142
|
var r;
|
|
140
|
-
(r =
|
|
143
|
+
(r = R.getChartByID(p)) == null || r.updateOptions(e);
|
|
141
144
|
},
|
|
142
145
|
async dataURI() {
|
|
143
|
-
const e =
|
|
146
|
+
const e = R.getChartByID(p);
|
|
144
147
|
return e ? (await e.dataURI()).imgURI : "";
|
|
145
148
|
}
|
|
146
149
|
}),
|
|
147
|
-
[
|
|
150
|
+
[p]
|
|
148
151
|
);
|
|
149
152
|
Z(_, () => x, [x]), Q(Y, x, n);
|
|
150
|
-
const I = l ?? ((
|
|
153
|
+
const I = l ?? ((S = f.colors) == null ? void 0 : S[0]) ?? "currentColor";
|
|
151
154
|
if (t.length === 0)
|
|
152
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ v(
|
|
153
156
|
"div",
|
|
154
157
|
{
|
|
155
|
-
ref:
|
|
158
|
+
ref: h,
|
|
156
159
|
role: "img",
|
|
157
|
-
"aria-label":
|
|
160
|
+
"aria-label": z,
|
|
158
161
|
dir: "ltr",
|
|
159
|
-
className: U({
|
|
162
|
+
className: U({
|
|
163
|
+
size: u !== void 0 ? "auto" : c,
|
|
164
|
+
className: s
|
|
165
|
+
}),
|
|
160
166
|
...o
|
|
161
167
|
}
|
|
162
168
|
);
|
|
163
|
-
const
|
|
164
|
-
...
|
|
169
|
+
const N = re(), B = {
|
|
170
|
+
...f,
|
|
165
171
|
chart: {
|
|
166
|
-
...
|
|
167
|
-
id:
|
|
172
|
+
...f.chart,
|
|
173
|
+
id: p,
|
|
168
174
|
type: a,
|
|
169
175
|
sparkline: { enabled: !0 },
|
|
170
176
|
toolbar: { show: !1 },
|
|
171
177
|
animations: {
|
|
172
|
-
enabled: !
|
|
173
|
-
dynamicAnimation: { enabled: !
|
|
178
|
+
enabled: !N,
|
|
179
|
+
dynamicAnimation: { enabled: !N }
|
|
174
180
|
},
|
|
175
181
|
zoom: { enabled: !1 },
|
|
176
182
|
parentHeightOffset: 0
|
|
@@ -200,26 +206,29 @@ const ne = j(
|
|
|
200
206
|
]
|
|
201
207
|
} : { size: 0 },
|
|
202
208
|
grid: {
|
|
203
|
-
...
|
|
209
|
+
...f.grid,
|
|
204
210
|
show: !1,
|
|
205
211
|
// ApexCharts grid.padding uses physical keys (not CSS logical properties).
|
|
206
212
|
// The chart wrapper enforces dir="ltr" so these always resolve correctly.
|
|
207
213
|
padding: { top: 2, right: 2, bottom: 2, left: 2 }
|
|
208
214
|
}
|
|
209
|
-
}, F =
|
|
215
|
+
}, F = k ?? (O > 0 ? O : "100%"), L = u ?? te[c ?? "md"];
|
|
210
216
|
return /* @__PURE__ */ P(
|
|
211
217
|
"div",
|
|
212
218
|
{
|
|
213
|
-
ref:
|
|
219
|
+
ref: h,
|
|
214
220
|
role: "img",
|
|
215
|
-
"aria-label":
|
|
221
|
+
"aria-label": z,
|
|
216
222
|
dir: "ltr",
|
|
217
|
-
className: U({
|
|
223
|
+
className: U({
|
|
224
|
+
size: u !== void 0 ? "auto" : c,
|
|
225
|
+
className: s
|
|
226
|
+
}),
|
|
218
227
|
"data-component": "sparkline",
|
|
219
228
|
"data-component-id": n,
|
|
220
229
|
...o,
|
|
221
230
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ v(
|
|
223
232
|
J,
|
|
224
233
|
{
|
|
225
234
|
type: a,
|
|
@@ -230,7 +239,7 @@ const ne = j(
|
|
|
230
239
|
"aria-hidden": "true"
|
|
231
240
|
}
|
|
232
241
|
),
|
|
233
|
-
d && /* @__PURE__ */
|
|
242
|
+
d && /* @__PURE__ */ v(
|
|
234
243
|
"span",
|
|
235
244
|
{
|
|
236
245
|
"aria-hidden": "true",
|
|
@@ -249,4 +258,4 @@ export {
|
|
|
249
258
|
Y as s,
|
|
250
259
|
X as u
|
|
251
260
|
};
|
|
252
|
-
//# sourceMappingURL=sparkline-
|
|
261
|
+
//# sourceMappingURL=sparkline-DGhCSw8M.js.map
|
|
@@ -88,7 +88,7 @@ const J = [
|
|
|
88
88
|
}), Q = v(
|
|
89
89
|
[
|
|
90
90
|
"ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]",
|
|
91
|
-
"ds:border ds:border-[var(--border)] ds:bg-[var(--card)]",
|
|
91
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[var(--card)]",
|
|
92
92
|
"ds:data-[state=open]:border-[var(--primary)]",
|
|
93
93
|
"ds:transition-[border-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
94
94
|
"ds:motion-reduce:transition-none"
|
|
@@ -254,4 +254,4 @@ ne.displayName = "StepperAccordion";
|
|
|
254
254
|
export {
|
|
255
255
|
ne as S
|
|
256
256
|
};
|
|
257
|
-
//# sourceMappingURL=stepper-accordion-
|
|
257
|
+
//# sourceMappingURL=stepper-accordion-Dki6r9ZE.js.map
|
|
@@ -27,7 +27,7 @@ const V = B(
|
|
|
27
27
|
},
|
|
28
28
|
fill: {
|
|
29
29
|
solid: "",
|
|
30
|
-
outline: "ds:border ds:bg-transparent"
|
|
30
|
+
outline: "ds:border ds:border-[color:var(--border)] ds:bg-transparent"
|
|
31
31
|
},
|
|
32
32
|
size: {
|
|
33
33
|
// Symmetric start/end padding — close button uses negative margin to stay flush.
|
|
@@ -131,7 +131,7 @@ const V = B(
|
|
|
131
131
|
}
|
|
132
132
|
), M = q(
|
|
133
133
|
({
|
|
134
|
-
label:
|
|
134
|
+
label: o,
|
|
135
135
|
variant: g = "neutral",
|
|
136
136
|
fill: p = "solid",
|
|
137
137
|
size: a = "md",
|
|
@@ -139,20 +139,20 @@ const V = B(
|
|
|
139
139
|
onRemove: t,
|
|
140
140
|
onClick: b,
|
|
141
141
|
disabled: e = !1,
|
|
142
|
-
maxInlineSize:
|
|
142
|
+
maxInlineSize: n = "none",
|
|
143
143
|
className: h
|
|
144
144
|
}, i) => {
|
|
145
145
|
const { t: w } = H(), y = F(null), [D, C] = E(!1), [O, R] = E("");
|
|
146
146
|
G(() => {
|
|
147
147
|
const s = y.current;
|
|
148
|
-
if (!s ||
|
|
148
|
+
if (!s || n === "none") return;
|
|
149
149
|
const z = () => C(s.scrollWidth > s.clientWidth), j = new ResizeObserver(z);
|
|
150
150
|
return j.observe(s), z(), () => j.disconnect();
|
|
151
|
-
}, [
|
|
151
|
+
}, [n]);
|
|
152
152
|
const W = (s) => {
|
|
153
153
|
(s.key === "Backspace" || s.key === "Delete") && t && !e && (s.preventDefault(), x(), setTimeout(t, 100));
|
|
154
154
|
}, x = () => {
|
|
155
|
-
R(w("tag.removed", { label:
|
|
155
|
+
R(w("tag.removed", { label: o }));
|
|
156
156
|
}, K = () => {
|
|
157
157
|
!e && t && (x(), setTimeout(t, 100));
|
|
158
158
|
}, d = !!t, N = !!b && !d, T = V({
|
|
@@ -174,22 +174,22 @@ const V = B(
|
|
|
174
174
|
"span",
|
|
175
175
|
{
|
|
176
176
|
ref: y,
|
|
177
|
-
className:
|
|
178
|
-
style:
|
|
179
|
-
children:
|
|
177
|
+
className: n !== "none" ? "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap" : void 0,
|
|
178
|
+
style: n !== "none" ? { maxInlineSize: n } : void 0,
|
|
179
|
+
children: o
|
|
180
180
|
}
|
|
181
181
|
), A = /* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: O }), X = d ? /* @__PURE__ */ r(
|
|
182
182
|
"button",
|
|
183
183
|
{
|
|
184
184
|
type: "button",
|
|
185
|
-
"aria-label": w("tag.remove", { label:
|
|
185
|
+
"aria-label": w("tag.remove", { label: o }),
|
|
186
186
|
onClick: K,
|
|
187
187
|
disabled: e,
|
|
188
188
|
tabIndex: -1,
|
|
189
189
|
className: L({ size: a }),
|
|
190
190
|
children: /* @__PURE__ */ r(J, { "aria-hidden": "true" })
|
|
191
191
|
}
|
|
192
|
-
) : null, u =
|
|
192
|
+
) : null, u = n !== "none" && D;
|
|
193
193
|
if (N) {
|
|
194
194
|
const s = /* @__PURE__ */ f(
|
|
195
195
|
"button",
|
|
@@ -206,7 +206,7 @@ const V = B(
|
|
|
206
206
|
]
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
|
-
return u ? /* @__PURE__ */ r(v, { label:
|
|
209
|
+
return u ? /* @__PURE__ */ r(v, { label: o, children: s }) : s;
|
|
210
210
|
}
|
|
211
211
|
if (d) {
|
|
212
212
|
const s = (
|
|
@@ -216,7 +216,7 @@ const V = B(
|
|
|
216
216
|
{
|
|
217
217
|
ref: i,
|
|
218
218
|
role: "group",
|
|
219
|
-
"aria-label":
|
|
219
|
+
"aria-label": o,
|
|
220
220
|
tabIndex: e ? -1 : 0,
|
|
221
221
|
"aria-disabled": e || void 0,
|
|
222
222
|
onKeyDown: W,
|
|
@@ -231,7 +231,7 @@ const V = B(
|
|
|
231
231
|
}
|
|
232
232
|
)
|
|
233
233
|
);
|
|
234
|
-
return u ? /* @__PURE__ */ r(v, { label:
|
|
234
|
+
return u ? /* @__PURE__ */ r(v, { label: o, children: s }) : s;
|
|
235
235
|
}
|
|
236
236
|
const k = /* @__PURE__ */ f(
|
|
237
237
|
"span",
|
|
@@ -245,11 +245,11 @@ const V = B(
|
|
|
245
245
|
]
|
|
246
246
|
}
|
|
247
247
|
);
|
|
248
|
-
return u ? /* @__PURE__ */ r(v, { label:
|
|
248
|
+
return u ? /* @__PURE__ */ r(v, { label: o, children: k }) : k;
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
251
|
M.displayName = "Tag";
|
|
252
252
|
export {
|
|
253
253
|
M as T
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=tag-
|
|
255
|
+
//# sourceMappingURL=tag-CdA0s_VV.js.map
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
3
|
+
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as g } from "react-i18next";
|
|
5
5
|
import { C as x } from "./chevron-right-BrpYejk0.js";
|
|
6
6
|
import { S as y } from "./square-check-big-Jr-0202D.js";
|
|
7
7
|
import { C } from "./circle-alert-ChA9opNA.js";
|
|
8
8
|
import { S as N } from "./square-CZoGU14v.js";
|
|
9
|
-
const k =
|
|
9
|
+
const k = b(
|
|
10
10
|
[
|
|
11
11
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
12
12
|
"ds:rounded-[var(--radius-sm)]",
|
|
13
13
|
"ds:transition-colors",
|
|
14
14
|
"ds:motion-reduce:transition-none",
|
|
15
15
|
"ds:text-start ds:group",
|
|
16
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
16
17
|
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
17
18
|
].join(" "),
|
|
18
19
|
{
|
|
@@ -53,7 +54,7 @@ function T({
|
|
|
53
54
|
}
|
|
54
55
|
const w = v(
|
|
55
56
|
({ item: s, size: a = "sm", onActivate: r, className: u, ...f }, p) => {
|
|
56
|
-
const { t: m } =
|
|
57
|
+
const { t: m } = g(), t = !!r, h = !!s.url && S(s.url), n = m("taskCard.itemLabel", {
|
|
57
58
|
title: s.title,
|
|
58
59
|
due: s.dueLabel ?? "",
|
|
59
60
|
defaultValue: '{{title}}{{due, prepend, " · "}}'
|
|
@@ -114,4 +115,4 @@ export {
|
|
|
114
115
|
w as T,
|
|
115
116
|
S as i
|
|
116
117
|
};
|
|
117
|
-
//# sourceMappingURL=task-card-
|
|
118
|
+
//# sourceMappingURL=task-card-CPyQ5AXC.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as j, useRef as v, useMemo as q, useImperativeHandle as z } from "react";
|
|
3
|
+
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as S } from "react-i18next";
|
|
5
5
|
import { I as C } from "./icon-button-CKEOrN37.js";
|
|
6
6
|
import { S as K } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E } from "./empty-state-BLy7tigq.js";
|
|
8
|
-
import { T as L } from "./task-card-
|
|
8
|
+
import { T as L } from "./task-card-CPyQ5AXC.js";
|
|
9
9
|
import { u as P } from "./registry-nPAVE19X.js";
|
|
10
10
|
import { c as H } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { P as V } from "./plus-CYKNmfuA.js";
|
|
@@ -77,10 +77,11 @@ const B = [
|
|
|
77
77
|
description: "Stable task id emitted on each rendered TaskCard inside the tray."
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
}, J =
|
|
80
|
+
}, J = M(
|
|
81
81
|
[
|
|
82
82
|
"ds:flex ds:flex-col",
|
|
83
83
|
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
84
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
84
85
|
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
85
86
|
"ds:overflow-hidden"
|
|
86
87
|
].join(" "),
|
|
@@ -95,80 +96,80 @@ const B = [
|
|
|
95
96
|
size: "sm"
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
), Q =
|
|
99
|
+
), Q = j(
|
|
99
100
|
({
|
|
100
101
|
id: e,
|
|
101
102
|
items: s,
|
|
102
|
-
title:
|
|
103
|
+
title: k,
|
|
103
104
|
size: f = "sm",
|
|
104
|
-
onOpenTask:
|
|
105
|
+
onOpenTask: i,
|
|
105
106
|
onToggleDone: n,
|
|
106
107
|
onDismissTask: c,
|
|
107
108
|
onAddTask: y,
|
|
108
109
|
addLabel: x,
|
|
109
|
-
loading:
|
|
110
|
-
emptyTitle:
|
|
111
|
-
emptyDescription:
|
|
112
|
-
className:
|
|
113
|
-
...
|
|
114
|
-
},
|
|
115
|
-
const { t: l } =
|
|
110
|
+
loading: h = !1,
|
|
111
|
+
emptyTitle: b,
|
|
112
|
+
emptyDescription: w,
|
|
113
|
+
className: I,
|
|
114
|
+
...N
|
|
115
|
+
}, T) => {
|
|
116
|
+
const { t: l } = S(), u = k ?? l("taskTray.title", "Tasks"), R = x ?? l("taskTray.add", "Add task"), A = !h && s.length === 0;
|
|
116
117
|
let m;
|
|
117
|
-
|
|
118
|
+
h ? m = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(K, { variant: "rectangular", height: "2.5rem" }, t)) }) : A ? m = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
|
|
118
119
|
E,
|
|
119
120
|
{
|
|
120
121
|
variant: "first-use",
|
|
121
122
|
size: "sm",
|
|
122
|
-
title:
|
|
123
|
-
description:
|
|
123
|
+
title: b ?? l("taskTray.empty.title", "No tasks yet"),
|
|
124
|
+
description: w ?? l("taskTray.empty.description", "New tasks will appear here.")
|
|
124
125
|
}
|
|
125
126
|
) }) : m = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col", children: s.map((t) => /* @__PURE__ */ a(
|
|
126
127
|
L,
|
|
127
128
|
{
|
|
128
129
|
item: t,
|
|
129
130
|
size: f,
|
|
130
|
-
onActivate:
|
|
131
|
+
onActivate: i,
|
|
131
132
|
"data-task-id": t.id
|
|
132
133
|
},
|
|
133
134
|
t.id
|
|
134
135
|
)) });
|
|
135
|
-
const d =
|
|
136
|
+
const d = v(s);
|
|
136
137
|
d.current = s;
|
|
137
|
-
const
|
|
138
|
+
const _ = q(
|
|
138
139
|
() => ({
|
|
139
140
|
getItems: () => d.current.map((t) => ({
|
|
140
141
|
id: t.id,
|
|
141
142
|
status: t.status ?? "open"
|
|
142
143
|
})),
|
|
143
144
|
selectItem: (t) => {
|
|
144
|
-
const
|
|
145
|
-
|
|
145
|
+
const r = d.current.find((o) => o.id === t);
|
|
146
|
+
r && (i == null || i(r));
|
|
146
147
|
},
|
|
147
148
|
toggleDone: (t) => {
|
|
148
|
-
const
|
|
149
|
-
|
|
149
|
+
const r = d.current.find((o) => o.id === t);
|
|
150
|
+
r && (n == null || n(r));
|
|
150
151
|
},
|
|
151
152
|
dismiss: (t) => {
|
|
152
|
-
const
|
|
153
|
-
|
|
153
|
+
const r = d.current.find((o) => o.id === t);
|
|
154
|
+
r && (c == null || c(r));
|
|
154
155
|
}
|
|
155
156
|
}),
|
|
156
|
-
[
|
|
157
|
-
), g =
|
|
158
|
-
return
|
|
157
|
+
[i, n, c]
|
|
158
|
+
), g = v(null);
|
|
159
|
+
return z(T, () => g.current, []), P(G, _, e), /* @__PURE__ */ p(
|
|
159
160
|
"section",
|
|
160
161
|
{
|
|
161
162
|
ref: g,
|
|
162
|
-
"aria-label":
|
|
163
|
+
"aria-label": u,
|
|
163
164
|
"data-component": "task-tray",
|
|
164
165
|
"data-component-id": e,
|
|
165
|
-
className: J({ size: f, className:
|
|
166
|
-
...
|
|
166
|
+
className: J({ size: f, className: I }),
|
|
167
|
+
...N,
|
|
167
168
|
children: [
|
|
168
169
|
/* @__PURE__ */ p("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
|
|
169
170
|
/* @__PURE__ */ p("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
|
|
170
171
|
/* @__PURE__ */ a(F, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
171
|
-
|
|
172
|
+
u
|
|
172
173
|
] }),
|
|
173
174
|
y ? /* @__PURE__ */ a(
|
|
174
175
|
C,
|
|
@@ -192,4 +193,4 @@ export {
|
|
|
192
193
|
Q as T,
|
|
193
194
|
G as t
|
|
194
195
|
};
|
|
195
|
-
//# sourceMappingURL=task-tray-
|
|
196
|
+
//# sourceMappingURL=task-tray-B8jFv5FV.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as K, useState as A, useRef as
|
|
2
|
+
import { forwardRef as K, useState as A, useRef as w, useId as _, useMemo as x, useCallback as R, useImperativeHandle as j, Fragment as O } from "react";
|
|
3
3
|
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as D } from "react-i18next";
|
|
5
5
|
import { u as F } from "./registry-nPAVE19X.js";
|
|
@@ -54,7 +54,8 @@ const U = {
|
|
|
54
54
|
}, G = V(
|
|
55
55
|
[
|
|
56
56
|
"ds:flex ds:flex-col ds:w-full ds:min-h-0",
|
|
57
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
57
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
|
|
58
|
+
"ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
|
|
58
59
|
"ds:bg-background",
|
|
59
60
|
"ds:focus-within:border-[color:var(--primary)]"
|
|
60
61
|
].join(" "),
|
|
@@ -120,14 +121,14 @@ const te = K(
|
|
|
120
121
|
className: p,
|
|
121
122
|
...g
|
|
122
123
|
}, L) => {
|
|
123
|
-
const { t: d, i18n: b } = D(), [m, M] = A(""), h =
|
|
124
|
+
const { t: d, i18n: b } = D(), [m, M] = A(""), h = w(null), T = w(null), P = _(), c = x(() => {
|
|
124
125
|
if (!Number.isFinite(n)) return -1;
|
|
125
126
|
for (let e = 0; e < t.length; e += 1) {
|
|
126
127
|
const r = t[e];
|
|
127
128
|
if (r.start <= n && n < r.end) return e;
|
|
128
129
|
}
|
|
129
130
|
return -1;
|
|
130
|
-
}, [t, n]), k =
|
|
131
|
+
}, [t, n]), k = x(() => {
|
|
131
132
|
if (!m) return 0;
|
|
132
133
|
let e = 0;
|
|
133
134
|
const r = m.toLocaleLowerCase();
|
|
@@ -245,9 +246,9 @@ const te = K(
|
|
|
245
246
|
);
|
|
246
247
|
},
|
|
247
248
|
[c, b.language, a, m, d]
|
|
248
|
-
), S =
|
|
249
|
+
), S = w(null);
|
|
249
250
|
j(L, () => S.current, []);
|
|
250
|
-
const E =
|
|
251
|
+
const E = x(
|
|
251
252
|
() => ({
|
|
252
253
|
getSelectedTurn: () => c >= 0 ? String(c) : null,
|
|
253
254
|
focusTurn: (e) => {
|
|
@@ -344,4 +345,4 @@ export {
|
|
|
344
345
|
te as T,
|
|
345
346
|
U as t
|
|
346
347
|
};
|
|
347
|
-
//# sourceMappingURL=transcript-panel-
|
|
348
|
+
//# sourceMappingURL=transcript-panel-CR7VY1uw.js.map
|