@humain/ui 2.4.1 → 2.4.3
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/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index194.js +6 -8
- package/dist/index194.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/wc/AIClarificationCard.js +1 -1
- package/dist/wc/AIContainer.js +1 -1
- package/dist/wc/AIForm.js +17 -17
- package/dist/wc/AIInput.js +32 -32
- package/dist/wc/AIInput.js.map +1 -1
- package/dist/wc/AIMermaidDiagram.js +1 -1
- package/dist/wc/AIMessage.js +1 -1
- package/dist/wc/AIScrollButton.js +4 -4
- package/dist/wc/AIToolCall.js +5 -5
- package/dist/wc/AppSidebar.constants.js +1 -1
- package/dist/wc/AvatarFallback.js +5 -5
- package/dist/wc/CheckboxIndicator.js +7 -7
- package/dist/wc/CollapsiblePanel.js +1 -1
- package/dist/wc/DialogTrigger.js +9 -9
- package/dist/wc/DropdownMenu.js +16 -16
- package/dist/wc/MenuSubmenuTrigger.js +31 -31
- package/dist/wc/PopoverDescription.js +30 -30
- package/dist/wc/PrehydrationScript.js +1 -1
- package/dist/wc/Select.js +18 -18
- package/dist/wc/SelectSeparator.js +72 -72
- package/dist/wc/SelectSeparator.js.map +1 -1
- package/dist/wc/Tabs.js +18 -18
- package/dist/wc/TooltipProvider.js +9 -9
- package/dist/wc/chart.js +1 -1
- package/dist/wc/chunk-75Z2AOVW.js +39 -39
- package/dist/wc/chunk-OSK3NFVY.js +32 -32
- package/dist/wc/command.js +4 -4
- package/dist/wc/form-field.js +1 -1
- package/dist/wc/form-fieldset.js +5 -5
- package/dist/wc/hf-accordion-card.js +4 -4
- package/dist/wc/hf-accordion.js +6 -6
- package/dist/wc/hf-ai-feedback-bar.js +5 -5
- package/dist/wc/hf-ai-reasoning-block.js +6 -6
- package/dist/wc/hf-ai-system-message.js +1 -1
- package/dist/wc/hf-ai-tool-run.js +1 -1
- package/dist/wc/hf-area-chart.js +15 -15
- package/dist/wc/hf-autocomplete.js +36 -36
- package/dist/wc/hf-bar-chart.js +4 -4
- package/dist/wc/hf-calendar.js +4 -4
- package/dist/wc/hf-carousel.js +1 -1
- package/dist/wc/hf-context-menu.js +8 -8
- package/dist/wc/hf-donut-chart.js +10 -10
- package/dist/wc/hf-empty-state.js +87 -88
- package/dist/wc/hf-empty-state.js.map +1 -1
- package/dist/wc/hf-history.js +4 -4
- package/dist/wc/hf-horizontal-bar-chart.js +7 -7
- package/dist/wc/hf-hover-card.js +6 -6
- package/dist/wc/hf-line-chart.js +4 -4
- package/dist/wc/hf-metric-card.js +5 -5
- package/dist/wc/hf-metric-item.js +8 -8
- package/dist/wc/hf-metric-item.js.map +1 -1
- package/dist/wc/hf-nav-account-menu.js +4 -4
- package/dist/wc/hf-notification-panel.js +2 -2
- package/dist/wc/hf-pie-chart.js +17 -17
- package/dist/wc/hf-radar-chart.js +16 -16
- package/dist/wc/hf-section-header.js +6 -6
- package/dist/wc/hf-sheet.js +1 -1
- package/dist/wc/hf-sparkline-chart.js +5 -5
- package/dist/wc/hf-steps.js +6 -6
- package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
- package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
- package/dist/wc/popupStateMapping.js +53 -53
- package/dist/wc/popupStateMapping.js.map +1 -1
- package/dist/wc/selection-group.js +1 -1
- package/dist/wc/selection-group.js.map +1 -1
- package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
- package/dist/wc/stateAttributesMapping.js.map +1 -0
- package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
- package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
- package/dist/wc/useCollapsiblePanel.js +3 -3
- package/dist/wc/usePopupHandleStore.js +4 -4
- package/dist/wc/useScrollLock.js +1 -1
- package/dist/wc/vendor/recharts.js +525 -524
- package/dist/wc/vendor/recharts.js.map +1 -1
- package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
- package/dist/wc-react/AIClarificationCard.js +1 -1
- package/dist/wc-react/AIContainer.js +1 -1
- package/dist/wc-react/AIForm.js +17 -17
- package/dist/wc-react/AIInput.js +2 -2
- package/dist/wc-react/AIInput.js.map +1 -1
- package/dist/wc-react/AIMermaidDiagram.js +1 -1
- package/dist/wc-react/AIMessage.js +1 -1
- package/dist/wc-react/AIScrollButton.js +4 -4
- package/dist/wc-react/AIToolCall.js +5 -5
- package/dist/wc-react/AppSidebar.constants.js +1 -1
- package/dist/wc-react/AvatarFallback.js +5 -5
- package/dist/wc-react/CheckboxIndicator.js +7 -7
- package/dist/wc-react/CollapsiblePanel.js +1 -1
- package/dist/wc-react/DialogTrigger.js +9 -9
- package/dist/wc-react/DropdownMenu.js +16 -16
- package/dist/wc-react/FloatingPortalLite.js +3 -3
- package/dist/wc-react/MenuSubmenuTrigger.js +31 -31
- package/dist/wc-react/PopoverDescription.js +31 -31
- package/dist/wc-react/PrehydrationScript.js +1 -1
- package/dist/wc-react/Select.js +18 -18
- package/dist/wc-react/SelectSeparator.js +71 -70
- package/dist/wc-react/SelectSeparator.js.map +1 -1
- package/dist/wc-react/Tabs.js +18 -18
- package/dist/wc-react/TooltipProvider.js +9 -9
- package/dist/wc-react/chart.js +1 -1
- package/dist/wc-react/chunk-75Z2AOVW.js +39 -39
- package/dist/wc-react/chunk-OSK3NFVY.js +32 -32
- package/dist/wc-react/command.js +4 -4
- package/dist/wc-react/form-field.js +1 -1
- package/dist/wc-react/form-fieldset.js +77 -77
- package/dist/wc-react/hf-accordion-card.js +4 -4
- package/dist/wc-react/hf-accordion.js +6 -6
- package/dist/wc-react/hf-ai-feedback-bar.js +5 -5
- package/dist/wc-react/hf-ai-reasoning-block.js +6 -6
- package/dist/wc-react/hf-ai-system-message.js +1 -1
- package/dist/wc-react/hf-ai-tool-run.js +1 -1
- package/dist/wc-react/hf-autocomplete.js +37 -37
- package/dist/wc-react/hf-calendar.js +4 -4
- package/dist/wc-react/hf-carousel.js +1 -1
- package/dist/wc-react/hf-context-menu.js +8 -8
- package/dist/wc-react/hf-data-table.js +1 -1
- package/dist/wc-react/hf-empty-state.js +87 -88
- package/dist/wc-react/hf-empty-state.js.map +1 -1
- package/dist/wc-react/hf-history.js +4 -4
- package/dist/wc-react/hf-hover-card.js +6 -6
- package/dist/wc-react/hf-metric-item.js +6 -6
- package/dist/wc-react/hf-metric-item.js.map +1 -1
- package/dist/wc-react/hf-nav-account-menu.js +4 -4
- package/dist/wc-react/hf-notification-panel.js +2 -2
- package/dist/wc-react/hf-section-header.js +6 -6
- package/dist/wc-react/hf-sheet.js +1 -1
- package/dist/wc-react/hf-steps.js +5 -5
- package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
- package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
- package/dist/wc-react/popupStateMapping.js +54 -54
- package/dist/wc-react/popupStateMapping.js.map +1 -1
- package/dist/wc-react/selection-group.js +1 -1
- package/dist/wc-react/selection-group.js.map +1 -1
- package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
- package/dist/wc-react/stateAttributesMapping.js.map +1 -0
- package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
- package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
- package/dist/wc-react/useCollapsiblePanel.js +3 -3
- package/dist/wc-react/usePopupHandleStore.js +3 -3
- package/dist/wc-react/useScrollLock.js +1 -1
- package/dist/wc-react/vendor/recharts.js +525 -524
- package/dist/wc-react/vendor/recharts.js.map +1 -1
- package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
- package/package.json +1 -1
- package/skills/humain-ui/SKILL.md +1 -1
- package/skills/humain-ui-wc/SKILL.md +1 -1
- package/skills/humain-ui-wc.skill +0 -0
- package/skills/humain-ui.skill +0 -0
- package/dist/wc/useOpenChangeComplete.js.map +0 -1
- package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
|
@@ -6,22 +6,22 @@ import { d as me, l as Ve, r as Me, s as xe, t as W } from "./useRenderElement.j
|
|
|
6
6
|
import { t as Z } from "./useBaseUiId.js";
|
|
7
7
|
import { r as De } from "./shadowDom.js";
|
|
8
8
|
import { l as X, n as _, o as Se, r as ee, s as ae, t as Ne, u as te } from "./LabelableContext.js";
|
|
9
|
-
import {
|
|
10
|
-
import { n as Ae } from "./
|
|
9
|
+
import { n as Ee } from "./useTimeout.js";
|
|
10
|
+
import { a as Le, n as Pe, r as Ae } from "./stateAttributesMapping.js";
|
|
11
11
|
import { t as ve } from "./FieldItemContext.js";
|
|
12
12
|
import { t as we } from "./FieldControl.js";
|
|
13
13
|
import * as i from "react";
|
|
14
14
|
import { jsx as E, jsxs as ke } from "react/jsx-runtime";
|
|
15
15
|
function ge(t, e) {
|
|
16
|
-
const
|
|
17
|
-
return U(() => (e(
|
|
18
|
-
e((u) => u ===
|
|
19
|
-
}), [
|
|
16
|
+
const n = Z(t);
|
|
17
|
+
return U(() => (e(n), () => {
|
|
18
|
+
e((u) => u === n ? void 0 : u);
|
|
19
|
+
}), [n, e]), n;
|
|
20
20
|
}
|
|
21
21
|
function Te(t = {}) {
|
|
22
|
-
const { id: e, fallbackControlId:
|
|
22
|
+
const { id: e, fallbackControlId: n, native: u = !1, setLabelId: b, focusControl: p } = t, { controlId: f, setLabelId: I } = _(), l = w((a) => {
|
|
23
23
|
I(a), b?.(a);
|
|
24
|
-
}),
|
|
24
|
+
}), s = ge(e, l), o = f ?? n;
|
|
25
25
|
function d(a) {
|
|
26
26
|
if (p) {
|
|
27
27
|
p(a, o);
|
|
@@ -35,11 +35,11 @@ function Te(t = {}) {
|
|
|
35
35
|
De(a.nativeEvent)?.closest("button,input,select,textarea") || (!a.defaultPrevented && a.detail > 1 && a.preventDefault(), !u && d(a));
|
|
36
36
|
}
|
|
37
37
|
return u ? {
|
|
38
|
-
id:
|
|
38
|
+
id: s,
|
|
39
39
|
htmlFor: o ?? void 0,
|
|
40
40
|
onMouseDown: R
|
|
41
41
|
} : {
|
|
42
|
-
id:
|
|
42
|
+
id: s,
|
|
43
43
|
onClick: R,
|
|
44
44
|
onPointerDown(a) {
|
|
45
45
|
a.preventDefault();
|
|
@@ -56,7 +56,7 @@ function oe(t = !1) {
|
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
58
|
var je = function(e) {
|
|
59
|
-
const
|
|
59
|
+
const n = Z(), u = e.controlId === void 0 ? n : e.controlId, [b, p] = i.useState(u), [f, I] = i.useState(e.labelId), [l, s] = i.useState([]), o = me(() => /* @__PURE__ */ new Map()), { messageIds: d } = _(), R = w((F, v) => {
|
|
60
60
|
const S = o.current;
|
|
61
61
|
if (v === void 0) {
|
|
62
62
|
S.delete(F);
|
|
@@ -83,7 +83,7 @@ var je = function(e) {
|
|
|
83
83
|
labelId: f,
|
|
84
84
|
setLabelId: I,
|
|
85
85
|
messageIds: l,
|
|
86
|
-
setMessageIds:
|
|
86
|
+
setMessageIds: s,
|
|
87
87
|
getDescriptionProps: a
|
|
88
88
|
}), [
|
|
89
89
|
b,
|
|
@@ -91,7 +91,7 @@ var je = function(e) {
|
|
|
91
91
|
f,
|
|
92
92
|
I,
|
|
93
93
|
l,
|
|
94
|
-
|
|
94
|
+
s,
|
|
95
95
|
a
|
|
96
96
|
]);
|
|
97
97
|
return /* @__PURE__ */ E(Ne.Provider, {
|
|
@@ -99,7 +99,7 @@ var je = function(e) {
|
|
|
99
99
|
children: e.children
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
function
|
|
102
|
+
function se(t, e) {
|
|
103
103
|
return {
|
|
104
104
|
...t,
|
|
105
105
|
state: {
|
|
@@ -108,25 +108,25 @@ function ne(t, e) {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var ne = Object.keys(X);
|
|
112
112
|
function $e(t, e) {
|
|
113
113
|
return t.matches(":disabled") ? !1 : !e || t.form === e ? !0 : t.form === null && !t.hasAttribute("form");
|
|
114
114
|
}
|
|
115
115
|
function ce(t, e) {
|
|
116
|
-
let
|
|
116
|
+
let n = null;
|
|
117
117
|
for (const u of t.keys())
|
|
118
118
|
if ($e(u, e)) {
|
|
119
119
|
if (!u.validity.valid) return u;
|
|
120
|
-
|
|
120
|
+
n ??= u;
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return n;
|
|
123
123
|
}
|
|
124
124
|
function fe(t, e) {
|
|
125
|
-
for (const
|
|
125
|
+
for (const n of e.keys()) n.setCustomValidity("");
|
|
126
126
|
t?.setCustomValidity("");
|
|
127
127
|
}
|
|
128
128
|
function Be(t) {
|
|
129
|
-
const { elementRef: e, formRef:
|
|
129
|
+
const { elementRef: e, formRef: n } = ee(), { setValidityData: u, validate: b, validityData: p, validationDebounceTime: f, invalid: I, markedDirtyRef: l, state: s, shouldValidateOnChange: o, registeredFieldIdRef: d } = t, { controlId: R, getDescriptionProps: a } = _(), m = Ee(), F = i.useRef(null), v = me(() => /* @__PURE__ */ new Map()).current, S = i.useRef(0), C = i.useCallback((h, A) => (v.set(h, A), () => {
|
|
130
130
|
v.delete(h);
|
|
131
131
|
}), [v]), r = w(() => {
|
|
132
132
|
const h = ce(v, e.current);
|
|
@@ -137,10 +137,10 @@ function Be(t) {
|
|
|
137
137
|
function $(N, y = I) {
|
|
138
138
|
const P = d.current ?? R;
|
|
139
139
|
if (P == null) return;
|
|
140
|
-
const D =
|
|
140
|
+
const D = n.current.fields.get(P);
|
|
141
141
|
if (!D) return;
|
|
142
|
-
const O =
|
|
143
|
-
|
|
142
|
+
const O = se(N, y);
|
|
143
|
+
n.current.fields.set(P, {
|
|
144
144
|
...D,
|
|
145
145
|
validityData: O
|
|
146
146
|
});
|
|
@@ -160,18 +160,18 @@ function Be(t) {
|
|
|
160
160
|
}
|
|
161
161
|
const c = v.size > 0 ? ce(v, e.current) : F.current;
|
|
162
162
|
if (A) {
|
|
163
|
-
if (
|
|
163
|
+
if (s.valid !== !1 || !c) return;
|
|
164
164
|
const N = c.validity;
|
|
165
165
|
if (!N.valueMissing) {
|
|
166
166
|
L(c, !1);
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
for (const y of
|
|
169
|
+
for (const y of ne) if (y !== "valid" && y !== "valueMissing" && y !== "customError" && N[y]) return;
|
|
170
170
|
}
|
|
171
171
|
function B(N) {
|
|
172
|
-
const y =
|
|
172
|
+
const y = ne.reduce((D, O) => (D[O] = N.validity[O], D), {});
|
|
173
173
|
let P = !1;
|
|
174
|
-
for (const D of
|
|
174
|
+
for (const D of ne)
|
|
175
175
|
if (D !== "valid") {
|
|
176
176
|
if (D === "valueMissing" && y[D]) P = !0;
|
|
177
177
|
else if (y[D]) return y;
|
|
@@ -189,7 +189,7 @@ function Be(t) {
|
|
|
189
189
|
if (c && c.validationMessage && !Y)
|
|
190
190
|
T = c.validationMessage, k = [c.validationMessage];
|
|
191
191
|
else {
|
|
192
|
-
const N = Array.from(
|
|
192
|
+
const N = Array.from(n.current.fields.values()).reduce((P, D) => (D.name && (P[D.name] = D.getValue()), P), {}), y = b(h, N);
|
|
193
193
|
if (typeof y == "object" && y !== null && "then" in y) {
|
|
194
194
|
if (M = await y, z !== S.current) return;
|
|
195
195
|
} else M = y;
|
|
@@ -210,10 +210,10 @@ function Be(t) {
|
|
|
210
210
|
A && h !== "" && f ? (S.current += 1, m.start(f, () => {
|
|
211
211
|
g(h);
|
|
212
212
|
})) : g(h, !A);
|
|
213
|
-
}), j = i.useCallback((h, A = {}) => Me(a(A),
|
|
213
|
+
}), j = i.useCallback((h, A = {}) => Me(a(A), s.valid === !1 && !s.disabled && !h ? { "aria-invalid": !0 } : Ve), [
|
|
214
214
|
a,
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
s.disabled,
|
|
216
|
+
s.valid
|
|
217
217
|
]);
|
|
218
218
|
return i.useMemo(() => ({
|
|
219
219
|
getValidationProps: j,
|
|
@@ -233,7 +233,7 @@ function Be(t) {
|
|
|
233
233
|
]);
|
|
234
234
|
}
|
|
235
235
|
function Ke(t) {
|
|
236
|
-
const { commit: e, invalid:
|
|
236
|
+
const { commit: e, invalid: n, markedDirtyRef: u, name: b, setRegisteredFieldName: p, registeredFieldIdRef: f, setValidityData: I, validityData: l } = t, { formRef: s } = ee(), o = i.useRef(null), d = i.useRef(null), R = i.useRef(!1), a = w(() => {
|
|
237
237
|
const r = d.current;
|
|
238
238
|
if (r)
|
|
239
239
|
return r.getValue ? r.getValue() : r.value;
|
|
@@ -251,16 +251,16 @@ function Ke(t) {
|
|
|
251
251
|
});
|
|
252
252
|
function v() {
|
|
253
253
|
const r = d.current;
|
|
254
|
-
!r || !r.id ||
|
|
254
|
+
!r || !r.id || s.current.fields.set(r.id, {
|
|
255
255
|
getValue: a,
|
|
256
256
|
name: b ?? r.name,
|
|
257
257
|
controlRef: r.controlRef,
|
|
258
|
-
validityData:
|
|
258
|
+
validityData: se(l, n),
|
|
259
259
|
validate: F
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
function S(r = d.current?.id) {
|
|
263
|
-
r &&
|
|
263
|
+
r && s.current.fields.delete(r);
|
|
264
264
|
}
|
|
265
265
|
function C(r) {
|
|
266
266
|
if (R.current) return;
|
|
@@ -273,28 +273,28 @@ function Ke(t) {
|
|
|
273
273
|
}
|
|
274
274
|
return U(() => {
|
|
275
275
|
const r = d.current;
|
|
276
|
-
!r || !r.id || (p(b ? void 0 : r.name),
|
|
276
|
+
!r || !r.id || (p(b ? void 0 : r.name), s.current.fields.set(r.id, {
|
|
277
277
|
getValue: a,
|
|
278
278
|
name: b ?? r.name,
|
|
279
279
|
controlRef: r.controlRef,
|
|
280
|
-
validityData:
|
|
280
|
+
validityData: se(l, n),
|
|
281
281
|
validate: F
|
|
282
282
|
}));
|
|
283
283
|
}, [
|
|
284
|
-
n,
|
|
285
|
-
a,
|
|
286
284
|
s,
|
|
285
|
+
a,
|
|
286
|
+
n,
|
|
287
287
|
b,
|
|
288
288
|
p,
|
|
289
289
|
F,
|
|
290
290
|
l
|
|
291
291
|
]), U(() => {
|
|
292
|
-
const r =
|
|
292
|
+
const r = s.current.fields;
|
|
293
293
|
return () => {
|
|
294
294
|
const g = d.current?.id;
|
|
295
295
|
g && r.delete(g);
|
|
296
296
|
};
|
|
297
|
-
}, [
|
|
297
|
+
}, [s]), [F, w((r, g) => {
|
|
298
298
|
if (!g) {
|
|
299
299
|
o.current === r && (o.current = null, S(), d.current = null, p(void 0), f.current = void 0);
|
|
300
300
|
return;
|
|
@@ -303,8 +303,8 @@ function Ke(t) {
|
|
|
303
303
|
o.current = r, d.current = g, b || p(g.name), f.current = g.id, V && V !== g.id && S(V), C(g), v();
|
|
304
304
|
})];
|
|
305
305
|
}
|
|
306
|
-
var Ue = /* @__PURE__ */ i.forwardRef(function(e,
|
|
307
|
-
const { errors: u, validationMode: b, submitAttemptedRef: p } = ee(), { render: f, className: I, validate: l, validationDebounceTime:
|
|
306
|
+
var Ue = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
307
|
+
const { errors: u, validationMode: b, submitAttemptedRef: p } = ee(), { render: f, className: I, validate: l, validationDebounceTime: s = 0, validationMode: o = b, name: d, disabled: R = !1, invalid: a, dirty: m, touched: F, actionsRef: v, style: S, ...C } = e, r = oe(!0)?.disabled, g = w(l || (() => null)), V = r || R, [j, h] = i.useState(!1), [A, z] = i.useState(!1), [$, L] = i.useState(!1), [c, B] = i.useState(!1), M = m ?? A, k = F ?? j, x = i.useRef(M), T = i.useRef(void 0), [Y, q] = i.useState(), N = d ?? Y;
|
|
308
308
|
U(() => {
|
|
309
309
|
m !== void 0 && (x.current = m);
|
|
310
310
|
}, [m]);
|
|
@@ -336,7 +336,7 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
336
336
|
setValidityData: re,
|
|
337
337
|
validate: g,
|
|
338
338
|
validityData: J,
|
|
339
|
-
validationDebounceTime:
|
|
339
|
+
validationDebounceTime: s,
|
|
340
340
|
invalid: H,
|
|
341
341
|
markedDirtyRef: x,
|
|
342
342
|
state: G,
|
|
@@ -383,7 +383,7 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
383
383
|
ue,
|
|
384
384
|
ie
|
|
385
385
|
]), Ce = W("div", e, {
|
|
386
|
-
ref:
|
|
386
|
+
ref: n,
|
|
387
387
|
state: G,
|
|
388
388
|
props: C,
|
|
389
389
|
stateAttributesMapping: te
|
|
@@ -392,41 +392,41 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
392
392
|
value: Fe,
|
|
393
393
|
children: Ce
|
|
394
394
|
});
|
|
395
|
-
}), We = /* @__PURE__ */ i.forwardRef(function(e,
|
|
395
|
+
}), We = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
396
396
|
return /* @__PURE__ */ E(je, { children: /* @__PURE__ */ E(Ue, {
|
|
397
397
|
...e,
|
|
398
|
-
ref:
|
|
398
|
+
ref: n
|
|
399
399
|
}) });
|
|
400
|
-
}), _e = /* @__PURE__ */ i.forwardRef(function(e,
|
|
401
|
-
const { render: u, className: b, style: p, id: f, nativeLabel: I = !0, ...l } = e,
|
|
402
|
-
...
|
|
403
|
-
disabled:
|
|
400
|
+
}), _e = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
401
|
+
const { render: u, className: b, style: p, id: f, nativeLabel: I = !0, ...l } = e, s = ae(!1), o = ve(), { labelId: d } = _(), R = {
|
|
402
|
+
...s.state,
|
|
403
|
+
disabled: s.disabled || o.disabled
|
|
404
404
|
}, a = i.useRef(null), m = Te({
|
|
405
405
|
id: d ?? f,
|
|
406
406
|
native: I
|
|
407
407
|
});
|
|
408
408
|
return W("label", e, {
|
|
409
|
-
ref: [
|
|
409
|
+
ref: [n, a],
|
|
410
410
|
state: R,
|
|
411
411
|
props: [m, l],
|
|
412
412
|
stateAttributesMapping: te
|
|
413
413
|
});
|
|
414
414
|
}), ze = {
|
|
415
415
|
...te,
|
|
416
|
-
...
|
|
417
|
-
}, He = /* @__PURE__ */ i.forwardRef(function(e,
|
|
418
|
-
const { render: u, id: b, className: p, match: f, style: I, ...l } = e,
|
|
416
|
+
...Pe
|
|
417
|
+
}, He = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
418
|
+
const { render: u, id: b, className: p, match: f, style: I, ...l } = e, s = Z(b), { validityData: o, state: d, name: R } = ae(!1), { setMessageIds: a } = _(), { errors: m } = ee(), F = R && Object.hasOwn(m, R) ? m[R] : null, v = !!(Array.isArray(F) ? F.length : F), S = typeof f == "string";
|
|
419
419
|
let C = !1;
|
|
420
420
|
f === !0 ? C = !0 : d.disabled ? C = !1 : S ? C = !!o.state[f] : C = v || o.state.valid === !1;
|
|
421
421
|
const { mounted: r, transitionStatus: g, setMounted: V } = Le(C);
|
|
422
422
|
U(() => {
|
|
423
|
-
if (!(!C || !
|
|
424
|
-
return a((x) => x.concat(
|
|
425
|
-
a((x) => x.filter((T) => T !==
|
|
423
|
+
if (!(!C || !s))
|
|
424
|
+
return a((x) => x.concat(s)), () => {
|
|
425
|
+
a((x) => x.filter((T) => T !== s));
|
|
426
426
|
};
|
|
427
427
|
}, [
|
|
428
428
|
C,
|
|
429
|
-
|
|
429
|
+
s,
|
|
430
430
|
a
|
|
431
431
|
]);
|
|
432
432
|
const j = i.useRef(null), [h, A] = i.useState(null), [z, $] = i.useState(null);
|
|
@@ -435,7 +435,7 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
435
435
|
let c = L;
|
|
436
436
|
Array.isArray(L) && (c = L.length > 1 ? /* @__PURE__ */ E("ul", { children: L.map((x) => /* @__PURE__ */ E("li", { children: x }, x)) }) : L[0]);
|
|
437
437
|
const B = Array.isArray(L) ? JSON.stringify(L) : L;
|
|
438
|
-
C && B !== z && ($(B), A(c)),
|
|
438
|
+
C && B !== z && ($(B), A(c)), Ae({
|
|
439
439
|
open: C,
|
|
440
440
|
ref: j,
|
|
441
441
|
onComplete() {
|
|
@@ -446,20 +446,20 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
446
446
|
...d,
|
|
447
447
|
transitionStatus: g
|
|
448
448
|
}, k = W("div", e, {
|
|
449
|
-
ref: [
|
|
449
|
+
ref: [n, j],
|
|
450
450
|
state: M,
|
|
451
451
|
props: [{
|
|
452
|
-
id:
|
|
452
|
+
id: s,
|
|
453
453
|
children: C ? c : h
|
|
454
454
|
}, l],
|
|
455
455
|
stateAttributesMapping: ze,
|
|
456
456
|
enabled: r
|
|
457
457
|
});
|
|
458
458
|
return r ? k : null;
|
|
459
|
-
}), Je = /* @__PURE__ */ i.forwardRef(function(e,
|
|
460
|
-
const { render: u, id: b, className: p, style: f, ...I } = e, l = Z(b),
|
|
461
|
-
...
|
|
462
|
-
disabled:
|
|
459
|
+
}), Je = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
460
|
+
const { render: u, id: b, className: p, style: f, ...I } = e, l = Z(b), s = ae(!1), o = ve(), { setMessageIds: d } = _(), R = {
|
|
461
|
+
...s.state,
|
|
462
|
+
disabled: s.disabled || o.disabled
|
|
463
463
|
};
|
|
464
464
|
return U(() => {
|
|
465
465
|
if (l)
|
|
@@ -467,15 +467,15 @@ var Ue = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
467
467
|
d((a) => a.filter((m) => m !== l));
|
|
468
468
|
};
|
|
469
469
|
}, [l, d]), W("p", e, {
|
|
470
|
-
ref:
|
|
470
|
+
ref: n,
|
|
471
471
|
state: R,
|
|
472
472
|
props: [{ id: l }, I],
|
|
473
473
|
stateAttributesMapping: te
|
|
474
474
|
});
|
|
475
475
|
});
|
|
476
|
-
var Ye = /* @__PURE__ */ i.forwardRef(function(e,
|
|
477
|
-
const { render: u, className: b, style: p, disabled: f = !1, ...I } = e, [l,
|
|
478
|
-
ref:
|
|
476
|
+
var Ye = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
477
|
+
const { render: u, className: b, style: p, disabled: f = !1, ...I } = e, [l, s] = i.useState(void 0), o = oe(!0)?.disabled || f, d = W("fieldset", e, {
|
|
478
|
+
ref: n,
|
|
479
479
|
state: { disabled: o },
|
|
480
480
|
props: [{
|
|
481
481
|
"aria-labelledby": l,
|
|
@@ -483,22 +483,22 @@ var Ye = /* @__PURE__ */ i.forwardRef(function(e, s) {
|
|
|
483
483
|
}, I]
|
|
484
484
|
}), R = i.useMemo(() => ({
|
|
485
485
|
legendId: l,
|
|
486
|
-
setLegendId:
|
|
486
|
+
setLegendId: s,
|
|
487
487
|
disabled: o
|
|
488
488
|
}), [
|
|
489
489
|
l,
|
|
490
|
-
|
|
490
|
+
s,
|
|
491
491
|
o
|
|
492
492
|
]);
|
|
493
493
|
return /* @__PURE__ */ E(ye.Provider, {
|
|
494
494
|
value: R,
|
|
495
495
|
children: d
|
|
496
496
|
});
|
|
497
|
-
}), qe = /* @__PURE__ */ i.forwardRef(function(e,
|
|
498
|
-
const { render: u, className: b, style: p, id: f, ...I } = e, { disabled: l, setLegendId:
|
|
497
|
+
}), qe = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
498
|
+
const { render: u, className: b, style: p, id: f, ...I } = e, { disabled: l, setLegendId: s } = oe(), o = ge(f, s);
|
|
499
499
|
return W("div", e, {
|
|
500
500
|
state: { disabled: l },
|
|
501
|
-
ref:
|
|
501
|
+
ref: n,
|
|
502
502
|
props: [{ id: o }, I]
|
|
503
503
|
});
|
|
504
504
|
});
|
|
@@ -558,7 +558,7 @@ Ze.displayName = "FieldDescription";
|
|
|
558
558
|
et.displayName = "FieldError";
|
|
559
559
|
be.displayName = "FieldsetRoot";
|
|
560
560
|
pe.displayName = "FieldsetLegend";
|
|
561
|
-
var tt = i.forwardRef(({ legend: t, description: e, children:
|
|
561
|
+
var tt = i.forwardRef(({ legend: t, description: e, children: n, className: u, disabled: b, ...p }, f) => {
|
|
562
562
|
const I = i.useId(), l = e ? [p["aria-describedby"], I].filter(Boolean).join(" ") : p["aria-describedby"];
|
|
563
563
|
return /* @__PURE__ */ ke(be, {
|
|
564
564
|
ref: f,
|
|
@@ -574,7 +574,7 @@ var tt = i.forwardRef(({ legend: t, description: e, children: s, className: u, d
|
|
|
574
574
|
className: "text-muted-foreground -mt-2 mb-4 text-sm",
|
|
575
575
|
children: e
|
|
576
576
|
}),
|
|
577
|
-
|
|
577
|
+
n
|
|
578
578
|
]
|
|
579
579
|
});
|
|
580
580
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as R } from "./chevron-down.js";
|
|
2
2
|
import { t as P } from "./pencil.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { c as j, f as c, s as _ } from "./_shared.js";
|
|
4
|
+
import { t as D } from "./create-safe-context.js";
|
|
5
5
|
import { n as H, r as I, t as V } from "./CollapsiblePanel.js";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import p from "react";
|
|
8
8
|
import { createRoot as $ } from "react-dom/client";
|
|
9
9
|
import { jsx as n } from "react/jsx-runtime";
|
|
10
|
-
var [L, f] =
|
|
10
|
+
var [L, f] = D("AccordionCard"), M = a.forwardRef(({ open: e, defaultOpen: r = !1, onOpenChange: t, disabled: o = !1, size: i = "default", className: s, children: d, ...m }, h) => {
|
|
11
11
|
const [z, k] = a.useState(r), g = e !== void 0, u = g ? e : z, b = `${a.useId()}-accordion-card-content`, C = a.useCallback((v) => {
|
|
12
12
|
o || (g || k(v), t?.(v));
|
|
13
13
|
}, [
|
|
@@ -165,7 +165,7 @@ var l = {
|
|
|
165
165
|
}
|
|
166
166
|
_setProp(e, r) {
|
|
167
167
|
const t = l[e] || "string";
|
|
168
|
-
this._props[e] =
|
|
168
|
+
this._props[e] = j(r, t), this._render();
|
|
169
169
|
}
|
|
170
170
|
_getProp(e) {
|
|
171
171
|
if (e in this._props) return this._props[e];
|
|
@@ -8,9 +8,9 @@ import { i as Ie, o as Ne, s as ae, t as V } from "./useRenderElement.js";
|
|
|
8
8
|
import { t as ee } from "./useBaseUiId.js";
|
|
9
9
|
import { t as Me } from "./useCompositeListItem.js";
|
|
10
10
|
import { t as Pe } from "./CompositeList.js";
|
|
11
|
-
import {
|
|
12
|
-
import { t as Se } from "./
|
|
13
|
-
import {
|
|
11
|
+
import { n as Re } from "./stateAttributesMapping.js";
|
|
12
|
+
import { t as Se } from "./useButton.js";
|
|
13
|
+
import { t as we } from "./use-controllable-state.js";
|
|
14
14
|
import { a as ie, i as Oe, n as Te, o as ke, r as Ve, t as Ee } from "./useCollapsiblePanel.js";
|
|
15
15
|
import * as r from "react";
|
|
16
16
|
import U from "react";
|
|
@@ -91,7 +91,7 @@ var je = /* @__PURE__ */ (function(e) {
|
|
|
91
91
|
})({}), D = {
|
|
92
92
|
...Te,
|
|
93
93
|
index: (e) => ({ [je.index]: String(e) }),
|
|
94
|
-
...
|
|
94
|
+
...Re,
|
|
95
95
|
value: () => null
|
|
96
96
|
}, Ue = /* @__PURE__ */ r.forwardRef(function(t, o) {
|
|
97
97
|
const { className: a, disabled: i = !1, onOpenChange: n, render: l, value: v, style: E, ...b } = t, { ref: I, index: h } = Me(), x = Ne(o, I), { disabled: A, handleValueChange: S, state: y, value: N } = de(), M = ee(), s = v ?? M, p = i || A, g = N.indexOf(s) !== -1, u = ne((j, T) => {
|
|
@@ -162,7 +162,7 @@ var je = /* @__PURE__ */ (function(e) {
|
|
|
162
162
|
stateAttributesMapping: D
|
|
163
163
|
});
|
|
164
164
|
}), We = /* @__PURE__ */ r.forwardRef(function(t, o) {
|
|
165
|
-
const { disabled: a, className: i, id: n, render: l, nativeButton: v = !0, style: E, ...b } = t, { panelId: I, open: h, handleTrigger: x, disabled: A } = ie(), { getButtonProps: S, buttonRef: y } =
|
|
165
|
+
const { disabled: a, className: i, id: n, render: l, nativeButton: v = !0, style: E, ...b } = t, { panelId: I, open: h, handleTrigger: x, disabled: A } = ie(), { getButtonProps: S, buttonRef: y } = Se({
|
|
166
166
|
disabled: a || A,
|
|
167
167
|
focusableWhenDisabled: !0,
|
|
168
168
|
native: v
|
|
@@ -295,7 +295,7 @@ var Be = Object.assign(ce, {
|
|
|
295
295
|
Content: G
|
|
296
296
|
});
|
|
297
297
|
function z({ value: e, defaultValue: t = [], onValueChange: o, multiple: a = !1, children: i, ...n }) {
|
|
298
|
-
const [l, v] =
|
|
298
|
+
const [l, v] = we({
|
|
299
299
|
value: e,
|
|
300
300
|
defaultValue: t,
|
|
301
301
|
onChange: o
|
|
@@ -2,10 +2,10 @@ import { t as j } from "./dist.js";
|
|
|
2
2
|
import { t as O } from "./check.js";
|
|
3
3
|
import { n as W, t as L } from "./thumbs-up.js";
|
|
4
4
|
import { c as $, f as h, s as A } from "./_shared.js";
|
|
5
|
-
import { t as P } from "./react.js";
|
|
6
|
-
import { t as H } from "./AnimatePresence.js";
|
|
7
5
|
import { t as T } from "./button.js";
|
|
8
|
-
import { t as
|
|
6
|
+
import { t as H } from "./Textarea2.js";
|
|
7
|
+
import { t as P } from "./react.js";
|
|
8
|
+
import { t as M } from "./AnimatePresence.js";
|
|
9
9
|
import * as d from "react";
|
|
10
10
|
import F from "react";
|
|
11
11
|
import { createRoot as Z } from "react-dom/client";
|
|
@@ -103,7 +103,7 @@ function X({ feedbackType: e, reasons: t, onSubmit: i, onCancel: s, placeholder:
|
|
|
103
103
|
selected: a,
|
|
104
104
|
onSelect: p
|
|
105
105
|
}),
|
|
106
|
-
/* @__PURE__ */ n(
|
|
106
|
+
/* @__PURE__ */ n(H, {
|
|
107
107
|
value: l,
|
|
108
108
|
onChange: (v) => u(v.target.value),
|
|
109
109
|
placeholder: r || o,
|
|
@@ -192,7 +192,7 @@ function B({ value: e, onChange: t, showForm: i = !1, reasons: s, prompt: r = "W
|
|
|
192
192
|
disabled: C && !a
|
|
193
193
|
})]
|
|
194
194
|
})]
|
|
195
|
-
}), /* @__PURE__ */ n(
|
|
195
|
+
}), /* @__PURE__ */ n(M, { children: S && /* @__PURE__ */ n(X, {
|
|
196
196
|
feedbackType: b,
|
|
197
197
|
reasons: s,
|
|
198
198
|
onSubmit: V,
|
|
@@ -3,10 +3,10 @@ import { t as A } from "./createLucideIcon.js";
|
|
|
3
3
|
import { t as w } from "./chevron-down.js";
|
|
4
4
|
import { t as R } from "./chevron-right.js";
|
|
5
5
|
import { c as z, f as o, s as f } from "./_shared.js";
|
|
6
|
+
import { t as O } from "./use-controllable-state.js";
|
|
7
|
+
import { t as P } from "./markdown-renderer.js";
|
|
6
8
|
import { t as d } from "./react.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as P } from "./use-controllable-state.js";
|
|
9
|
-
import { t as V } from "./markdown-renderer.js";
|
|
9
|
+
import { t as V } from "./AnimatePresence.js";
|
|
10
10
|
import * as j from "react";
|
|
11
11
|
import p from "react";
|
|
12
12
|
import { createRoot as B } from "react-dom/client";
|
|
@@ -126,7 +126,7 @@ y.displayName = "AIReasoningTrigger";
|
|
|
126
126
|
function _({ children: e, markdown: r = !0, className: t }) {
|
|
127
127
|
return /* @__PURE__ */ n("div", {
|
|
128
128
|
className: o("px-4 pb-4", t),
|
|
129
|
-
children: r && typeof e == "string" ? /* @__PURE__ */ n(
|
|
129
|
+
children: r && typeof e == "string" ? /* @__PURE__ */ n(P, {
|
|
130
130
|
className: "text-sm text-secondary-foreground",
|
|
131
131
|
children: e
|
|
132
132
|
}) : /* @__PURE__ */ n("div", {
|
|
@@ -137,7 +137,7 @@ function _({ children: e, markdown: r = !0, className: t }) {
|
|
|
137
137
|
}
|
|
138
138
|
_.displayName = "AIReasoningContent";
|
|
139
139
|
function N({ children: e, title: r = "Reasoning", open: t, defaultOpen: i = !1, onOpenChange: a, isStreaming: l = !1, markdown: u = !0, duration: x, variant: C, className: I }) {
|
|
140
|
-
const h = j.useId(), [m, k] =
|
|
140
|
+
const h = j.useId(), [m, k] = O({
|
|
141
141
|
value: t,
|
|
142
142
|
defaultValue: i,
|
|
143
143
|
onChange: a
|
|
@@ -157,7 +157,7 @@ function N({ children: e, title: r = "Reasoning", open: t, defaultOpen: i = !1,
|
|
|
157
157
|
isStreaming: l,
|
|
158
158
|
duration: x,
|
|
159
159
|
contentId: h
|
|
160
|
-
}), /* @__PURE__ */ n(
|
|
160
|
+
}), /* @__PURE__ */ n(V, { children: m && /* @__PURE__ */ n(d.section, {
|
|
161
161
|
id: h,
|
|
162
162
|
"aria-label": r,
|
|
163
163
|
initial: {
|
|
@@ -5,9 +5,9 @@ import { t as g } from "./info.js";
|
|
|
5
5
|
import { t as M } from "./triangle-alert.js";
|
|
6
6
|
import { t as x } from "./x.js";
|
|
7
7
|
import { c as j, f as c, s as y } from "./_shared.js";
|
|
8
|
+
import { t as D } from "./button.js";
|
|
8
9
|
import { t as _ } from "./react.js";
|
|
9
10
|
import { t as C } from "./AnimatePresence.js";
|
|
10
|
-
import { t as D } from "./button.js";
|
|
11
11
|
import * as v from "react";
|
|
12
12
|
import l from "react";
|
|
13
13
|
import { createRoot as T } from "react-dom/client";
|
|
@@ -8,9 +8,9 @@ import { n as Pe, r as Ke } from "./AIToolCall.js";
|
|
|
8
8
|
import { t as je } from "./AISource.js";
|
|
9
9
|
import { i as Je, n as Ue } from "./workflow-step-renderer.js";
|
|
10
10
|
import { a as H, d as U, f as me, i as oe, o as Ye, t as Fe, u as qe } from "./_shared.js";
|
|
11
|
-
import { t as L } from "./Card.js";
|
|
12
11
|
import { t as ie } from "./button.js";
|
|
13
12
|
import { t as W } from "./Progress.js";
|
|
13
|
+
import { t as L } from "./Card.js";
|
|
14
14
|
import * as N from "react";
|
|
15
15
|
import Be from "react";
|
|
16
16
|
import { jsx as m, jsxs as O } from "react/jsx-runtime";
|