@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
|
@@ -2,11 +2,11 @@ import { a as k } from "./rolldown-runtime.js";
|
|
|
2
2
|
import { i as O, n as P, t as R } from "./vendor/react.js";
|
|
3
3
|
import { t as D } from "./chevron-down.js";
|
|
4
4
|
import { t as H } from "./pencil.js";
|
|
5
|
-
import { t as I } from "./create-safe-context.js";
|
|
6
5
|
import { n as c } from "./utils.js";
|
|
7
|
-
import { c as
|
|
6
|
+
import { c as I, s as _ } from "./_shared.js";
|
|
7
|
+
import { t as V } from "./create-safe-context.js";
|
|
8
8
|
import { n as L, r as M, t as $ } from "./CollapsiblePanel.js";
|
|
9
|
-
var n = /* @__PURE__ */ k(O(), 1), i = R(), [q, p] =
|
|
9
|
+
var n = /* @__PURE__ */ k(O(), 1), i = R(), [q, p] = V("AccordionCard"), S = n.forwardRef(({ open: e, defaultOpen: t = !1, onOpenChange: r, disabled: o = !1, size: a = "default", className: s, children: d, ...m }, f) => {
|
|
10
10
|
const [j, T] = n.useState(t), h = e !== void 0, u = h ? e : j, C = `${n.useId()}-accordion-card-content`, g = n.useCallback((b) => {
|
|
11
11
|
o || (h || T(b), r?.(b));
|
|
12
12
|
}, [
|
|
@@ -165,7 +165,7 @@ var l = {
|
|
|
165
165
|
}
|
|
166
166
|
_setProp(e, t) {
|
|
167
167
|
const r = l[e] || "string";
|
|
168
|
-
this._props[e] =
|
|
168
|
+
this._props[e] = I(t, r), this._render();
|
|
169
169
|
}
|
|
170
170
|
_getProp(e) {
|
|
171
171
|
if (e in this._props) return this._props[e];
|
package/dist/wc/hf-accordion.js
CHANGED
|
@@ -11,9 +11,9 @@ import { i as Ne, o as Me, s as ne, t as _ } from "./useRenderElement.js";
|
|
|
11
11
|
import { t as Y } from "./useBaseUiId.js";
|
|
12
12
|
import { t as je } from "./useCompositeListItem.js";
|
|
13
13
|
import { t as Pe } from "./CompositeList.js";
|
|
14
|
-
import {
|
|
15
|
-
import { t as Re } from "./
|
|
16
|
-
import {
|
|
14
|
+
import { n as Se } from "./stateAttributesMapping.js";
|
|
15
|
+
import { t as Re } from "./useButton.js";
|
|
16
|
+
import { t as we } from "./use-controllable-state.js";
|
|
17
17
|
import { a as re, i as Oe, n as Te, o as _e, r as ke, t as Ve } from "./useCollapsiblePanel.js";
|
|
18
18
|
var n = /* @__PURE__ */ ue(pe(), 1), ae = /* @__PURE__ */ n.createContext(void 0);
|
|
19
19
|
function se() {
|
|
@@ -91,7 +91,7 @@ var $e = /* @__PURE__ */ (function(e) {
|
|
|
91
91
|
})({}), B = {
|
|
92
92
|
...Te,
|
|
93
93
|
index: (e) => ({ [$e.index]: String(e) }),
|
|
94
|
-
...
|
|
94
|
+
...Se,
|
|
95
95
|
value: () => null
|
|
96
96
|
}, Ue = /* @__PURE__ */ n.forwardRef(function(t, o) {
|
|
97
97
|
const { className: a, disabled: s = !1, onOpenChange: r, render: l, value: v, style: k, ...h } = t, { ref: I, index: x } = je(), b = Me(o, I), { disabled: A, handleValueChange: S, state: y, value: N } = se(), M = Y(), d = v ?? M, p = s || A, g = N.indexOf(d) !== -1, u = te((F, O) => {
|
|
@@ -162,7 +162,7 @@ var $e = /* @__PURE__ */ (function(e) {
|
|
|
162
162
|
stateAttributesMapping: B
|
|
163
163
|
});
|
|
164
164
|
}), ze = /* @__PURE__ */ n.forwardRef(function(t, o) {
|
|
165
|
-
const { disabled: a, className: s, id: r, render: l, nativeButton: v = !0, style: k, ...h } = t, { panelId: I, open: x, handleTrigger: b, disabled: A } = re(), { getButtonProps: S, buttonRef: y } =
|
|
165
|
+
const { disabled: a, className: s, id: r, render: l, nativeButton: v = !0, style: k, ...h } = t, { panelId: I, open: x, handleTrigger: b, disabled: A } = re(), { getButtonProps: S, buttonRef: y } = Re({
|
|
166
166
|
disabled: a || A,
|
|
167
167
|
focusableWhenDisabled: !0,
|
|
168
168
|
native: v
|
|
@@ -295,7 +295,7 @@ var He = Object.assign(de, {
|
|
|
295
295
|
Content: q
|
|
296
296
|
});
|
|
297
297
|
function U({ value: e, defaultValue: t = [], onValueChange: o, multiple: a = !1, children: s, ...r }) {
|
|
298
|
-
const [l, v] =
|
|
298
|
+
const [l, v] = we({
|
|
299
299
|
value: e,
|
|
300
300
|
defaultValue: t,
|
|
301
301
|
onChange: o
|
|
@@ -5,10 +5,10 @@ import { t as q } from "./check.js";
|
|
|
5
5
|
import { n as L, t as M } from "./thumbs-up.js";
|
|
6
6
|
import { n as f } from "./utils.js";
|
|
7
7
|
import { c as H, s as S } from "./_shared.js";
|
|
8
|
-
import { t as T } from "./react.js";
|
|
9
|
-
import { t as Z } from "./AnimatePresence.js";
|
|
10
8
|
import { t as w } from "./button.js";
|
|
11
|
-
import { t as
|
|
9
|
+
import { t as Z } from "./Textarea2.js";
|
|
10
|
+
import { t as T } from "./react.js";
|
|
11
|
+
import { t as $ } from "./AnimatePresence.js";
|
|
12
12
|
var a = /* @__PURE__ */ D(R(), 1), i = W(), z = A("flex items-center gap-2 rounded-xl border transition-colors", {
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
@@ -102,7 +102,7 @@ function Y({ feedbackType: e, reasons: t, onSubmit: s, onCancel: r, placeholder:
|
|
|
102
102
|
selected: o,
|
|
103
103
|
onSelect: p
|
|
104
104
|
}),
|
|
105
|
-
/* @__PURE__ */ (0, i.jsx)(
|
|
105
|
+
/* @__PURE__ */ (0, i.jsx)(Z, {
|
|
106
106
|
value: d,
|
|
107
107
|
onChange: (g) => u(g.target.value),
|
|
108
108
|
placeholder: n || c,
|
|
@@ -191,7 +191,7 @@ function I({ value: e, onChange: t, showForm: s = !1, reasons: r, prompt: n = "W
|
|
|
191
191
|
disabled: k && !o
|
|
192
192
|
})]
|
|
193
193
|
})]
|
|
194
|
-
}), /* @__PURE__ */ (0, i.jsx)(
|
|
194
|
+
}), /* @__PURE__ */ (0, i.jsx)($, { children: N && /* @__PURE__ */ (0, i.jsx)(Y, {
|
|
195
195
|
feedbackType: h,
|
|
196
196
|
reasons: r,
|
|
197
197
|
onSubmit: B,
|
|
@@ -6,10 +6,10 @@ import { t as R } from "./chevron-down.js";
|
|
|
6
6
|
import { t as O } from "./chevron-right.js";
|
|
7
7
|
import { n as o } from "./utils.js";
|
|
8
8
|
import { c as P, s as h } from "./_shared.js";
|
|
9
|
+
import { t as V } from "./use-controllable-state.js";
|
|
10
|
+
import { t as B } from "./markdown-renderer.js";
|
|
9
11
|
import { t as c } from "./react.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as B } from "./use-controllable-state.js";
|
|
12
|
-
import { t as M } from "./markdown-renderer.js";
|
|
12
|
+
import { t as M } from "./AnimatePresence.js";
|
|
13
13
|
var D = [
|
|
14
14
|
["path", {
|
|
15
15
|
d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
|
|
@@ -125,7 +125,7 @@ b.displayName = "AIReasoningTrigger";
|
|
|
125
125
|
function x({ children: e, markdown: r = !0, className: t }) {
|
|
126
126
|
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
127
127
|
className: o("px-4 pb-4", t),
|
|
128
|
-
children: r && typeof e == "string" ? /* @__PURE__ */ (0, n.jsx)(
|
|
128
|
+
children: r && typeof e == "string" ? /* @__PURE__ */ (0, n.jsx)(B, {
|
|
129
129
|
className: "text-sm text-secondary-foreground",
|
|
130
130
|
children: e
|
|
131
131
|
}) : /* @__PURE__ */ (0, n.jsx)("div", {
|
|
@@ -136,7 +136,7 @@ function x({ children: e, markdown: r = !0, className: t }) {
|
|
|
136
136
|
}
|
|
137
137
|
x.displayName = "AIReasoningContent";
|
|
138
138
|
function y({ children: e, title: r = "Reasoning", open: t, defaultOpen: i = !1, onOpenChange: a, isStreaming: s = !1, markdown: u = !0, duration: v, variant: N, className: C }) {
|
|
139
|
-
const m = d.useId(), [p, j] =
|
|
139
|
+
const m = d.useId(), [p, j] = V({
|
|
140
140
|
value: t,
|
|
141
141
|
defaultValue: i,
|
|
142
142
|
onChange: a
|
|
@@ -156,7 +156,7 @@ function y({ children: e, title: r = "Reasoning", open: t, defaultOpen: i = !1,
|
|
|
156
156
|
isStreaming: s,
|
|
157
157
|
duration: v,
|
|
158
158
|
contentId: m
|
|
159
|
-
}), /* @__PURE__ */ (0, n.jsx)(
|
|
159
|
+
}), /* @__PURE__ */ (0, n.jsx)(M, { children: p && /* @__PURE__ */ (0, n.jsx)(c.section, {
|
|
160
160
|
id: m,
|
|
161
161
|
"aria-label": r,
|
|
162
162
|
initial: {
|
|
@@ -8,9 +8,9 @@ import { t as D } from "./triangle-alert.js";
|
|
|
8
8
|
import { t as y } from "./x.js";
|
|
9
9
|
import { n as l } from "./utils.js";
|
|
10
10
|
import { c as T, s as g } from "./_shared.js";
|
|
11
|
+
import { t as S } from "./button.js";
|
|
11
12
|
import { t as b } from "./react.js";
|
|
12
13
|
import { t as _ } from "./AnimatePresence.js";
|
|
13
|
-
import { t as S } from "./button.js";
|
|
14
14
|
var n = /* @__PURE__ */ z(A(), 1), i = M(), P = x("flex items-start gap-3 px-4 py-3 rounded-xl border", {
|
|
15
15
|
variants: {
|
|
16
16
|
variant: {
|
|
@@ -11,9 +11,9 @@ import { t as Ue } from "./AISource.js";
|
|
|
11
11
|
import { i as Ye, n as Fe } from "./workflow-step-renderer.js";
|
|
12
12
|
import { n as fe, t as J } from "./utils.js";
|
|
13
13
|
import { a as B, i as re, o as qe, t as Be, u as He } from "./_shared.js";
|
|
14
|
-
import { t as V } from "./Card.js";
|
|
15
14
|
import { t as oe } from "./button.js";
|
|
16
15
|
import { t as z } from "./Progress.js";
|
|
16
|
+
import { t as V } from "./Card.js";
|
|
17
17
|
var ze = [
|
|
18
18
|
["circle", {
|
|
19
19
|
cx: "12",
|
package/dist/wc/hf-area-chart.js
CHANGED
|
@@ -3,12 +3,12 @@ import { i as K, n as X, t as Z } from "./vendor/react.js";
|
|
|
3
3
|
import { S as Y, b as B, m as J, w as Q, y as U } from "./vendor/recharts.js";
|
|
4
4
|
import { t as tt } from "./dist.js";
|
|
5
5
|
import { n as et } from "./utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { c as
|
|
6
|
+
import { c as rt, s as C } from "./_shared.js";
|
|
7
|
+
import { n as v, o as it, s as ot } from "./chart.js";
|
|
8
|
+
import { t as at } from "./use-reduced-motion.js";
|
|
9
|
+
import { n as st } from "./chart-legend.js";
|
|
10
|
+
import { t as nt } from "./cartesian-chart-frame.js";
|
|
11
|
+
import { a as lt, c as u, l as ct, n as ht, t as dt } from "./chart-data.js";
|
|
12
12
|
var s = /* @__PURE__ */ G(K(), 1), o = Z(), pt = tt("relative w-full", {
|
|
13
13
|
variants: { size: {
|
|
14
14
|
sm: "h-40",
|
|
@@ -23,7 +23,7 @@ var s = /* @__PURE__ */ G(K(), 1), o = Z(), pt = tt("relative w-full", {
|
|
|
23
23
|
step: "step"
|
|
24
24
|
};
|
|
25
25
|
function y({ data: t, series: e, showYAxis: r = !1, showXAxis: h = !0, xAxisInterval: d = 0, showGrid: b = !0, legendPosition: k = "none", areaMode: c = "overlaid", fillStyle: p = "solid", curveType: j = "smooth", fillOpacity: A = 0.28, strokeWidth: T = 1.5, showDots: w = !1, yAxisTicks: f, yAxisFormat: m = (n) => n.toLocaleString(), showTooltip: E = !0, size: $, className: O, "aria-label": z, ...S }) {
|
|
26
|
-
const n =
|
|
26
|
+
const n = at(), g = s.useId().replace(/:/g, ""), { highlightedSeries: W, setHighlightedSeries: L, getOpacity: N, dimTransition: M } = st(n), P = s.useMemo(() => ct(t, e), [t, e]), _ = s.useMemo(() => e.map((a, i) => a.color || v[i % v.length]), [e]), D = s.useMemo(() => {
|
|
27
27
|
const a = {};
|
|
28
28
|
return e.forEach((i, F) => {
|
|
29
29
|
a[u(i.id)] = {
|
|
@@ -31,7 +31,7 @@ function y({ data: t, series: e, showYAxis: r = !1, showXAxis: h = !0, xAxisInte
|
|
|
31
31
|
color: _[F]
|
|
32
32
|
};
|
|
33
33
|
}), a;
|
|
34
|
-
}, [_, e]), V = s.useMemo(() =>
|
|
34
|
+
}, [_, e]), V = s.useMemo(() => ht({
|
|
35
35
|
data: t,
|
|
36
36
|
series: e,
|
|
37
37
|
ticks: f,
|
|
@@ -45,14 +45,14 @@ function y({ data: t, series: e, showYAxis: r = !1, showXAxis: h = !0, xAxisInte
|
|
|
45
45
|
e,
|
|
46
46
|
m,
|
|
47
47
|
f
|
|
48
|
-
]), H =
|
|
48
|
+
]), H = dt(A * 100) / 100, I = lt(T, 1.5), R = c === "overlaid" ? void 0 : "area-stack", q = c === "expanded" ? "expand" : "none";
|
|
49
49
|
return /* @__PURE__ */ (0, o.jsx)("div", {
|
|
50
50
|
"data-slot": "area-chart",
|
|
51
51
|
className: et(pt({ size: $ }), O),
|
|
52
52
|
role: "img",
|
|
53
53
|
"aria-label": z || "Area chart",
|
|
54
54
|
...S,
|
|
55
|
-
children: /* @__PURE__ */ (0, o.jsx)(
|
|
55
|
+
children: /* @__PURE__ */ (0, o.jsx)(nt, {
|
|
56
56
|
config: D,
|
|
57
57
|
series: e,
|
|
58
58
|
legendPosition: k,
|
|
@@ -115,8 +115,8 @@ function y({ data: t, series: e, showYAxis: r = !1, showXAxis: h = !0, xAxisInte
|
|
|
115
115
|
ticks: f,
|
|
116
116
|
width: V
|
|
117
117
|
}),
|
|
118
|
-
E && /* @__PURE__ */ (0, o.jsx)(
|
|
119
|
-
content: /* @__PURE__ */ (0, o.jsx)(
|
|
118
|
+
E && /* @__PURE__ */ (0, o.jsx)(it, {
|
|
119
|
+
content: /* @__PURE__ */ (0, o.jsx)(ot, {}),
|
|
120
120
|
cursor: n ? !1 : { stroke: "var(--border)" }
|
|
121
121
|
}),
|
|
122
122
|
e.map((a) => {
|
|
@@ -197,12 +197,12 @@ var mt = X(), l = {
|
|
|
197
197
|
}
|
|
198
198
|
_setProp(t, e) {
|
|
199
199
|
const r = l[t] || "string";
|
|
200
|
-
this._props[t] =
|
|
200
|
+
this._props[t] = rt(e, r), this._render();
|
|
201
201
|
}
|
|
202
202
|
_getProp(t) {
|
|
203
203
|
if (t in this._props) return this._props[t];
|
|
204
204
|
const e = t.replace(/([A-Z])/g, "-$1").toLowerCase(), r = l[t] || "string";
|
|
205
|
-
return
|
|
205
|
+
return C(this.getAttribute(e), r);
|
|
206
206
|
}
|
|
207
207
|
_render() {
|
|
208
208
|
if (!this._root || !this._childrenContainer) return;
|
|
@@ -210,7 +210,7 @@ var mt = X(), l = {
|
|
|
210
210
|
for (const [r, h] of Object.entries(l)) if (r in this._props) t[r] = this._props[r];
|
|
211
211
|
else {
|
|
212
212
|
const d = r.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
213
|
-
t[r] =
|
|
213
|
+
t[r] = C(this.getAttribute(d), h);
|
|
214
214
|
}
|
|
215
215
|
const e = s.createElement(y, t, s.createElement("span", {
|
|
216
216
|
ref: (r) => {
|
|
@@ -29,17 +29,17 @@ import { t as Nn } from "./useLabelableId.js";
|
|
|
29
29
|
import { t as gr } from "./FieldTooltip.js";
|
|
30
30
|
import { n as hr, t as br } from "./field-props.js";
|
|
31
31
|
import { a as xr, c as vr, i as Cr, l as Ir, n as yr, o as Er, r as Pr, s as Rr, t as wr } from "./form-field.js";
|
|
32
|
+
import { a as Ne, c as Vr, d as Sr, f as Tr, l as Ar, m as Mr, n as Or, o as mt, p as jr, s as bt, t as Nr, u as Ut } from "./resolveValueLabel.js";
|
|
33
|
+
import { n as Fn } from "./useTimeout.js";
|
|
34
|
+
import { a as Ln, n as Fr, o as Lr, r as _r } from "./useScrollLock.js";
|
|
35
|
+
import { a as kr, n as Dr, r as _n } from "./stateAttributesMapping.js";
|
|
36
|
+
import { n as Hr, r as qr, t as Br } from "./usePositioner.js";
|
|
37
|
+
import { n as zr, t as Gr } from "./useTypeahead.js";
|
|
32
38
|
import { t as Xt } from "./useButton.js";
|
|
33
|
-
import {
|
|
34
|
-
import { t as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { a as _n, n as kr, o as Dr, r as Hr } from "./useScrollLock.js";
|
|
38
|
-
import { n as qr, r as Br, t as zr } from "./usePositioner.js";
|
|
39
|
-
import { n as Gr, t as Kr } from "./useTypeahead.js";
|
|
40
|
-
import { t as Ur } from "./getPseudoElementBounds.js";
|
|
41
|
-
import { t as Wr } from "./inertValue.js";
|
|
42
|
-
import { t as $r } from "./useAnchoredPopupScrollLock.js";
|
|
39
|
+
import { t as Kr } from "./getPseudoElementBounds.js";
|
|
40
|
+
import { t as Ur } from "./inertValue.js";
|
|
41
|
+
import { t as Wr } from "./useAnchoredPopupScrollLock.js";
|
|
42
|
+
import { t as $r } from "./Badge.js";
|
|
43
43
|
function Qr(e, t, n, c, b, C, y, m, x, s = 2) {
|
|
44
44
|
const d = Qo(n.current, {
|
|
45
45
|
event: e,
|
|
@@ -90,7 +90,7 @@ var u = {
|
|
|
90
90
|
const { selectedValue: t, selectionMode: n } = e;
|
|
91
91
|
return t == null ? !1 : n === "multiple" && Array.isArray(t) ? t.length > 0 : !0;
|
|
92
92
|
},
|
|
93
|
-
hasNullItemLabel: (e, t) => t ?
|
|
93
|
+
hasNullItemLabel: (e, t) => t ? Nr(e.items) : !1,
|
|
94
94
|
open: (e) => e.open,
|
|
95
95
|
mounted: (e) => e.mounted,
|
|
96
96
|
forceMounted: (e) => e.forceMounted,
|
|
@@ -176,7 +176,7 @@ var Un = /* @__PURE__ */ Symbol("none"), Wt = {
|
|
|
176
176
|
index: -1
|
|
177
177
|
}, i = Ao();
|
|
178
178
|
function es(e) {
|
|
179
|
-
const { id: t, onOpenChangeComplete: n, defaultSelectedValue: c = null, selectedValue: b, onSelectedValueChange: C, defaultInputValue: y, inputValue: m, open: x, defaultOpen: s = !1, selectionMode: d, onItemHighlighted: k, name: D, form: N, disabled: W = !1, readOnly: v = !1, required: F = !1, inputRef: h, grid: M = !1, items: r, filteredItems: H, filter: $, openOnInputClick: V = !0, autoHighlight: q = !1, keepHighlight: S = !1, highlightItemOnHover: z = !0, loopFocus: P = !0, itemToStringLabel: g, itemToStringValue: R, isItemEqualToValue: O =
|
|
179
|
+
const { id: t, onOpenChangeComplete: n, defaultSelectedValue: c = null, selectedValue: b, onSelectedValueChange: C, defaultInputValue: y, inputValue: m, open: x, defaultOpen: s = !1, selectionMode: d, onItemHighlighted: k, name: D, form: N, disabled: W = !1, readOnly: v = !1, required: F = !1, inputRef: h, grid: M = !1, items: r, filteredItems: H, filter: $, openOnInputClick: V = !0, autoHighlight: q = !1, keepHighlight: S = !1, highlightItemOnHover: z = !0, loopFocus: P = !0, itemToStringLabel: g, itemToStringValue: R, isItemEqualToValue: O = Vr, virtualized: ne = !1, inline: Q = !1, fillInputOnItemPress: J = !0, modal: j = !1, limit: Y = -1, autoComplete: ue = "list", formAutoComplete: Ee, locale: oe, submitOnItemClick: Te = !1 } = e, { clearErrors: fe } = cr(), { setDirty: T, validityData: re, setFilled: se, name: Ae, disabled: Me, setTouched: Ze, setFocused: _e, validationMode: ke, validation: be } = Yt(), De = Vn(), ae = Nn({ id: t }), B = Kn({ locale: oe }), [ce, de] = o.useState(!1), [Pe, E] = o.useState(null), w = o.useRef([]), le = o.useRef([]), He = o.useRef(null), f = o.useRef(null), A = o.useRef(null), me = o.useRef(null), Re = o.useRef(null), $e = o.useRef(!0), Oe = o.useRef(!1), ee = o.useRef(null), xe = o.useRef(null), qe = o.useRef(null), we = o.useRef(Wt), Be = o.useRef(null), je = o.useRef([]), Jt = o.useRef(null), Ve = Me || W, Qe = Ae ?? D, ge = d === "multiple", Ye = d === "single", nt = m !== void 0 || y !== void 0, ve = r !== void 0, vt = H !== void 0;
|
|
180
180
|
let pe;
|
|
181
181
|
q === "always" ? pe = "always" : pe = q ? "input-change" : !1;
|
|
182
182
|
const [L, ro] = zt({
|
|
@@ -198,7 +198,7 @@ function es(e) {
|
|
|
198
198
|
default: s,
|
|
199
199
|
name: "Combobox",
|
|
200
200
|
state: "open"
|
|
201
|
-
}), ot =
|
|
201
|
+
}), ot = Or(r), Se = Pe ?? String(Ce).trim(), tn = Ye ? Ne(L, g) : "", nn = Ye && !ce && Se !== "" && tn.length === Se.length && B.contains(tn, Se), rt = nn ? "" : Se, on = ve && vt && nn, st = o.useMemo(() => r ? ot ? r.flatMap((a) => a.items) : r : Tt, [r, ot]), dt = o.useMemo(() => {
|
|
202
202
|
if (H && !on) return H;
|
|
203
203
|
if (!r) return Tt;
|
|
204
204
|
if (ot) {
|
|
@@ -309,7 +309,7 @@ function es(e) {
|
|
|
309
309
|
R,
|
|
310
310
|
d,
|
|
311
311
|
L
|
|
312
|
-
]), lo = ie(k), rn = ie(n), sn = l(I, u.activeIndex), uo = l(I, u.selectedIndex), Ct = l(I, u.positionerElement), an = l(I, u.listElement), pt = l(I, u.triggerElement), It = l(I, u.inputElement), co = l(I, u.inputGroupElement), he = l(I, u.inline), ze = l(I, u.inputInsidePopup), po = l(I, u.inputOwnsFormValue), fo = fr(pt), { mounted: ln, setMounted: mo, transitionStatus: Ft } =
|
|
312
|
+
]), lo = ie(k), rn = ie(n), sn = l(I, u.activeIndex), uo = l(I, u.selectedIndex), Ct = l(I, u.positionerElement), an = l(I, u.listElement), pt = l(I, u.triggerElement), It = l(I, u.inputElement), co = l(I, u.inputGroupElement), he = l(I, u.inline), ze = l(I, u.inputInsidePopup), po = l(I, u.inputOwnsFormValue), fo = fr(pt), { mounted: ln, setMounted: mo, transitionStatus: Ft } = kr(Z), { openMethod: un, triggerProps: Lt } = _r(Z), go = ie(() => ao);
|
|
313
313
|
lr(ze ? fo : f, ae, it, go, !Ve, D);
|
|
314
314
|
const cn = ie(() => {
|
|
315
315
|
r ? le.current = Ie.map((a) => Ne(a, g)) : I.set("forceMounted", !0);
|
|
@@ -371,7 +371,7 @@ function es(e) {
|
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
if (ge) {
|
|
374
|
-
const K = Array.isArray(L) ? L : [], te =
|
|
374
|
+
const K = Array.isArray(L) ? L : [], te = Tr(K, p, O) ? Sr(K, p, O) : [...K, p];
|
|
375
375
|
if (yt(te, X), X.isCanceled || !(f.current && f.current.value.trim() !== "")) return;
|
|
376
376
|
I.state.inputInsidePopup ? Ke("", U(Xe, X.event)) : ft(!1, X);
|
|
377
377
|
} else {
|
|
@@ -393,7 +393,7 @@ function es(e) {
|
|
|
393
393
|
f.current && f.current.value !== a && Ke(a, U(a === "" ? Xe : Ue));
|
|
394
394
|
}
|
|
395
395
|
}), xo = o.useMemo(() => he && Ct ? { current: Ct.closest('[role="dialog"]') } : He, [he, Ct]);
|
|
396
|
-
|
|
396
|
+
_n({
|
|
397
397
|
enabled: !e.actionsRef,
|
|
398
398
|
open: Z,
|
|
399
399
|
ref: xo,
|
|
@@ -498,7 +498,7 @@ function es(e) {
|
|
|
498
498
|
}), At(r, () => {
|
|
499
499
|
!Ye || nt || ze || ce || dn();
|
|
500
500
|
});
|
|
501
|
-
const Et =
|
|
501
|
+
const Et = jr({
|
|
502
502
|
open: he ? !0 : Z,
|
|
503
503
|
onOpenChange: ft,
|
|
504
504
|
elements: {
|
|
@@ -523,7 +523,7 @@ function es(e) {
|
|
|
523
523
|
pn,
|
|
524
524
|
an?.id,
|
|
525
525
|
ue
|
|
526
|
-
]), mn =
|
|
526
|
+
]), mn = Ln(Et, {
|
|
527
527
|
enabled: !v && !Ve && V,
|
|
528
528
|
event: "mousedown-only",
|
|
529
529
|
toggle: !1,
|
|
@@ -540,7 +540,7 @@ function es(e) {
|
|
|
540
540
|
const p = Mt(a);
|
|
541
541
|
return !We(pt, p) && !We(xe.current, p) && !We(ee.current, p) && !We(co, p);
|
|
542
542
|
}
|
|
543
|
-
}), lt =
|
|
543
|
+
}), lt = zr(Et, {
|
|
544
544
|
enabled: !v && !Ve,
|
|
545
545
|
id: ae,
|
|
546
546
|
listRef: w,
|
|
@@ -578,7 +578,7 @@ function es(e) {
|
|
|
578
578
|
onFocus: void 0
|
|
579
579
|
} : vn;
|
|
580
580
|
}, [lt.item]);
|
|
581
|
-
|
|
581
|
+
Mr(() => {
|
|
582
582
|
I.update({
|
|
583
583
|
inline: Q,
|
|
584
584
|
popupProps: Dt,
|
|
@@ -806,7 +806,7 @@ function Qn(e, t, n) {
|
|
|
806
806
|
c && (e.state.selectionEventRef.current = n, c.click(), e.state.selectionEventRef.current = null);
|
|
807
807
|
}
|
|
808
808
|
var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
809
|
-
const { render: c, className: b, nativeButton: C = !0, disabled: y = !1, id: m, style: x, ...s } = t, { state: d, disabled: k, setTouched: D, setFocused: N, validationMode: W, validation: v } = Yt(), { labelId: F } = On(), h = Le(), M = l(h, u.selectionMode), r = l(h, u.disabled), H = l(h, u.readOnly), $ = l(h, u.required), V = l(h, u.positionerElement), q = l(h, u.listElement), S = l(h, u.popupId), z = l(h, u.triggerProps), P = l(h, u.inputInsidePopup), g = l(h, u.id), R = l(h, u.labelId), O = l(h, u.open), ne = l(h, u.selectedValue), Q = l(h, u.activeIndex), J = l(h, u.selectedIndex), j = l(h, u.hasSelectedValue), Y = Ot(), ue = zn(), Ee =
|
|
809
|
+
const { render: c, className: b, nativeButton: C = !0, disabled: y = !1, id: m, style: x, ...s } = t, { state: d, disabled: k, setTouched: D, setFocused: N, validationMode: W, validation: v } = Yt(), { labelId: F } = On(), h = Le(), M = l(h, u.selectionMode), r = l(h, u.disabled), H = l(h, u.readOnly), $ = l(h, u.required), V = l(h, u.positionerElement), q = l(h, u.listElement), S = l(h, u.popupId), z = l(h, u.triggerProps), P = l(h, u.inputInsidePopup), g = l(h, u.id), R = l(h, u.labelId), O = l(h, u.open), ne = l(h, u.selectedValue), Q = l(h, u.activeIndex), J = l(h, u.selectedIndex), j = l(h, u.hasSelectedValue), Y = Ot(), ue = zn(), Ee = Fn(), oe = k || r || y, Te = jt(), fe = $n(h);
|
|
810
810
|
Nn({ id: P ? m : void 0 });
|
|
811
811
|
const T = P ? m ?? g : m, re = Ko(F, R);
|
|
812
812
|
let se;
|
|
@@ -815,7 +815,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
815
815
|
function Me(B) {
|
|
816
816
|
Ae.current = B.pointerType;
|
|
817
817
|
}
|
|
818
|
-
const { reference: Ze } =
|
|
818
|
+
const { reference: Ze } = Gr(Y, {
|
|
819
819
|
enabled: !O && !H && !r && M === "single",
|
|
820
820
|
listRef: h.state.labelsRef,
|
|
821
821
|
activeIndex: Q,
|
|
@@ -824,7 +824,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
824
824
|
const ce = h.state.valuesRef.current[B];
|
|
825
825
|
ce !== void 0 && h.state.setSelectedValue(ce, U(Ue));
|
|
826
826
|
}
|
|
827
|
-
}), { reference: _e } =
|
|
827
|
+
}), { reference: _e } = Ln(Y, {
|
|
828
828
|
enabled: !H && !r,
|
|
829
829
|
event: "mousedown"
|
|
830
830
|
}), { buttonRef: ke, getButtonProps: be } = Xt({
|
|
@@ -878,7 +878,7 @@ var rs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
878
878
|
const E = h.state.triggerElement;
|
|
879
879
|
if (!E) return;
|
|
880
880
|
const w = Mt(Pe), le = h.state.positionerElement, He = h.state.listElement;
|
|
881
|
-
We(E, w) || We(le, w) || We(He, w) ||
|
|
881
|
+
We(E, w) || We(le, w) || We(He, w) || Kr(Pe, E) || h.state.setOpen(!1, U(zo, Pe));
|
|
882
882
|
}
|
|
883
883
|
P && ce.addEventListener("mouseup", de, { once: !0 });
|
|
884
884
|
},
|
|
@@ -1126,7 +1126,7 @@ function ds(e) {
|
|
|
1126
1126
|
return n;
|
|
1127
1127
|
}
|
|
1128
1128
|
function ps() {
|
|
1129
|
-
const e =
|
|
1129
|
+
const e = Fn(), t = o.useRef(null);
|
|
1130
1130
|
return o.useEffect(() => {
|
|
1131
1131
|
if (Wo) return;
|
|
1132
1132
|
const n = t.current;
|
|
@@ -1157,7 +1157,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1157
1157
|
})
|
|
1158
1158
|
}) : null;
|
|
1159
1159
|
}), gs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
1160
|
-
const { render: c, className: b, anchor: C, positionMethod: y, side: m, align: x, sideOffset: s, alignOffset: d, collisionBoundary: k = "clipping-ancestors", collisionPadding: D, arrowPadding: N, sticky: W, disableAnchorTracking: v = !1, collisionAvoidance: F = Xo, style: h, ...M } = t, r = Le(), H = Ot(), $ = fs(), V = l(r, u.modal), q = l(r, u.open), S = l(r, u.mounted), z = l(r, u.openMethod), P = l(r, u.positionerElement), g = l(r, u.triggerElement), R = l(r, u.inputElement), O = l(r, u.inputGroupElement), ne = l(r, u.inputInsidePopup), Q = l(r, u.transitionStatus), J = jt(), j =
|
|
1160
|
+
const { render: c, className: b, anchor: C, positionMethod: y, side: m, align: x, sideOffset: s, alignOffset: d, collisionBoundary: k = "clipping-ancestors", collisionPadding: D, arrowPadding: N, sticky: W, disableAnchorTracking: v = !1, collisionAvoidance: F = Xo, style: h, ...M } = t, r = Le(), H = Ot(), $ = fs(), V = l(r, u.modal), q = l(r, u.open), S = l(r, u.mounted), z = l(r, u.openMethod), P = l(r, u.positionerElement), g = l(r, u.triggerElement), R = l(r, u.inputElement), O = l(r, u.inputGroupElement), ne = l(r, u.inputInsidePopup), Q = l(r, u.transitionStatus), J = jt(), j = qr({
|
|
1161
1161
|
anchor: C ?? (ne ? g : O ?? R),
|
|
1162
1162
|
floatingRootContext: H,
|
|
1163
1163
|
positionMethod: y,
|
|
@@ -1175,7 +1175,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1175
1175
|
collisionAvoidance: F,
|
|
1176
1176
|
lazyFlip: !0
|
|
1177
1177
|
});
|
|
1178
|
-
|
|
1178
|
+
Wr(q && V, z === "touch", P, g);
|
|
1179
1179
|
const Y = {
|
|
1180
1180
|
open: q,
|
|
1181
1181
|
side: j.side,
|
|
@@ -1188,7 +1188,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1188
1188
|
}, [r, j.side]);
|
|
1189
1189
|
const ue = ie((oe) => {
|
|
1190
1190
|
r.set("positionerElement", oe);
|
|
1191
|
-
}), Ee =
|
|
1191
|
+
}), Ee = Br(t, Y, {
|
|
1192
1192
|
styles: j.positionerStyles,
|
|
1193
1193
|
transitionStatus: Q,
|
|
1194
1194
|
props: M,
|
|
@@ -1198,19 +1198,19 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
return /* @__PURE__ */ (0, i.jsxs)(Yn.Provider, {
|
|
1200
1200
|
value: j,
|
|
1201
|
-
children: [S && V && /* @__PURE__ */ (0, i.jsx)(
|
|
1202
|
-
inert:
|
|
1201
|
+
children: [S && V && /* @__PURE__ */ (0, i.jsx)(Fr, {
|
|
1202
|
+
inert: Ur(!q),
|
|
1203
1203
|
cutout: O ?? R ?? g
|
|
1204
1204
|
}), Ee]
|
|
1205
1205
|
});
|
|
1206
1206
|
}), hs = {
|
|
1207
1207
|
...tr,
|
|
1208
|
-
...
|
|
1208
|
+
...Dr
|
|
1209
1209
|
}, bs = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
1210
1210
|
const { render: c, className: b, style: C, initialFocus: y, finalFocus: m, ...x } = t, s = Le(), d = Zt(), k = Ot(), D = l(s, u.mounted), N = l(s, u.open), W = l(s, u.openMethod), v = l(s, u.popupProps), F = l(s, u.transitionStatus), h = l(s, u.inputInsidePopup), M = l(s, u.inputElement), r = l(s, u.modal), H = l(s, u.id), $ = jt(), V = x.id ?? (h ? Gn(H) : void 0);
|
|
1211
1211
|
Fe(() => (s.set("popupId", s.state.popupRef.current?.id || V), () => {
|
|
1212
1212
|
s.set("popupId", void 0);
|
|
1213
|
-
}), [s, V]),
|
|
1213
|
+
}), [s, V]), _n({
|
|
1214
1214
|
open: N,
|
|
1215
1215
|
ref: s.state.popupRef,
|
|
1216
1216
|
onComplete() {
|
|
@@ -1237,7 +1237,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1237
1237
|
W !== "touch" && (We(s.state.listElement, O) || O === R.currentTarget) && s.state.inputRef.current?.focus();
|
|
1238
1238
|
}
|
|
1239
1239
|
},
|
|
1240
|
-
|
|
1240
|
+
Hr(F),
|
|
1241
1241
|
x
|
|
1242
1242
|
],
|
|
1243
1243
|
stateAttributesMapping: hs
|
|
@@ -1245,7 +1245,7 @@ var ms = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1245
1245
|
let P;
|
|
1246
1246
|
m != null ? P = m : P = h ? void 0 : !1;
|
|
1247
1247
|
const g = !h || r;
|
|
1248
|
-
return /* @__PURE__ */ (0, i.jsx)(
|
|
1248
|
+
return /* @__PURE__ */ (0, i.jsx)(Lr, {
|
|
1249
1249
|
context: k,
|
|
1250
1250
|
disabled: !D,
|
|
1251
1251
|
modal: g,
|
|
@@ -1397,7 +1397,7 @@ function to(e) {
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}
|
|
1399
1399
|
function Rs(e) {
|
|
1400
|
-
const { componentProps: t, forwardedRef: n } = e, c = Le(), b = l(c, u.isItemEqualToValue), { flatFilteredItems: C } = xt(), y =
|
|
1400
|
+
const { componentProps: t, forwardedRef: n } = e, c = Le(), b = l(c, u.isItemEqualToValue), { flatFilteredItems: C } = xt(), y = Ar(C, t.value ?? null, b);
|
|
1401
1401
|
return /* @__PURE__ */ (0, i.jsx)(to, {
|
|
1402
1402
|
componentProps: t,
|
|
1403
1403
|
forwardedRef: n,
|
|
@@ -1433,7 +1433,7 @@ var ws = /* @__PURE__ */ o.memo(/* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
1435
|
function Ts({ item: e, size: t, disabled: n, customRender: c, onRemove: b }) {
|
|
1436
|
-
return c ? /* @__PURE__ */ (0, i.jsx)(i.Fragment, { children: c(e, b) }) : /* @__PURE__ */ (0, i.jsx)(
|
|
1436
|
+
return c ? /* @__PURE__ */ (0, i.jsx)(i.Fragment, { children: c(e, b) }) : /* @__PURE__ */ (0, i.jsx)($r, {
|
|
1437
1437
|
size: As[t],
|
|
1438
1438
|
variant: "outline",
|
|
1439
1439
|
shape: "rounded",
|
package/dist/wc/hf-bar-chart.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as p } from "./rolldown-runtime.js";
|
|
2
2
|
import { i as h, n as c } from "./vendor/react.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { c as d, s as o } from "./_shared.js";
|
|
4
|
+
import { t as u } from "./BarChart.js";
|
|
5
5
|
var s = /* @__PURE__ */ p(h(), 1), _ = c(), i = {
|
|
6
6
|
size: "string",
|
|
7
7
|
data: "json",
|
|
@@ -53,7 +53,7 @@ var s = /* @__PURE__ */ p(h(), 1), _ = c(), i = {
|
|
|
53
53
|
}
|
|
54
54
|
_setProp(e, r) {
|
|
55
55
|
const t = i[e] || "string";
|
|
56
|
-
this._props[e] =
|
|
56
|
+
this._props[e] = d(r, t), this._render();
|
|
57
57
|
}
|
|
58
58
|
_getProp(e) {
|
|
59
59
|
if (e in this._props) return this._props[e];
|
|
@@ -68,7 +68,7 @@ var s = /* @__PURE__ */ p(h(), 1), _ = c(), i = {
|
|
|
68
68
|
const l = t.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
69
69
|
e[t] = o(this.getAttribute(l), a);
|
|
70
70
|
}
|
|
71
|
-
const r = s.createElement(
|
|
71
|
+
const r = s.createElement(u, e, s.createElement("span", {
|
|
72
72
|
ref: (t) => {
|
|
73
73
|
t && this._childrenContainer && t.replaceWith(this._childrenContainer);
|
|
74
74
|
},
|
package/dist/wc/hf-calendar.js
CHANGED
|
@@ -15,9 +15,9 @@ import { t as kt } from "./search.js";
|
|
|
15
15
|
import { t as Dt } from "./trash-2.js";
|
|
16
16
|
import { n as Tt, t as _t } from "./Avatar.js";
|
|
17
17
|
import { t as St } from "./x.js";
|
|
18
|
-
import { t as zt } from "./create-safe-context.js";
|
|
19
18
|
import { n as M } from "./utils.js";
|
|
20
|
-
import { c as
|
|
19
|
+
import { c as zt, s as we } from "./_shared.js";
|
|
20
|
+
import { t as Et } from "./create-safe-context.js";
|
|
21
21
|
import { t as O } from "./button.js";
|
|
22
22
|
import { t as Ot } from "./Input2.js";
|
|
23
23
|
import { a as $t, i as Pt, n as It, o as At, r as Yt } from "./Select.js";
|
|
@@ -302,7 +302,7 @@ function ae({ onAddEvent: e, onExpand: t, onClose: n, className: s }) {
|
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
304
|
ae.displayName = "CalendarActions";
|
|
305
|
-
var [mn, V] =
|
|
305
|
+
var [mn, V] = Et("Calendar"), pn = [];
|
|
306
306
|
function Ve(e) {
|
|
307
307
|
return `${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`;
|
|
308
308
|
}
|
|
@@ -1660,7 +1660,7 @@ var zn = bt(), H = {}, mt = class extends HTMLElement {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
_setProp(e, t) {
|
|
1662
1662
|
const n = H[e] || "string";
|
|
1663
|
-
this._props[e] =
|
|
1663
|
+
this._props[e] = zt(t, n), this._render();
|
|
1664
1664
|
}
|
|
1665
1665
|
_getProp(e) {
|
|
1666
1666
|
if (e in this._props) return this._props[e];
|
package/dist/wc/hf-carousel.js
CHANGED
|
@@ -6,8 +6,8 @@ import { t as Ce } from "./chevron-right.js";
|
|
|
6
6
|
import { t as ye } from "./chevron-up.js";
|
|
7
7
|
import { n as m } from "./utils.js";
|
|
8
8
|
import { c as _e, s as F } from "./_shared.js";
|
|
9
|
-
import { t as Ne } from "./use-controllable-state.js";
|
|
10
9
|
import { t as Y } from "./button.js";
|
|
10
|
+
import { t as Ne } from "./use-controllable-state.js";
|
|
11
11
|
var l = /* @__PURE__ */ he(ge(), 1), a = be(), K = [
|
|
12
12
|
{
|
|
13
13
|
id: "slide-1",
|
|
@@ -2,13 +2,13 @@ import { a as L } from "./rolldown-runtime.js";
|
|
|
2
2
|
import { i as W, t as q } from "./vendor/react.js";
|
|
3
3
|
import { t as C } from "./check.js";
|
|
4
4
|
import { t as F } from "./chevron-right.js";
|
|
5
|
-
import { t as J } from "./create-safe-context.js";
|
|
6
5
|
import { n as i } from "./utils.js";
|
|
7
|
-
import { a as
|
|
6
|
+
import { a as J, i as V, l as b, o as X, t as Y, u as $ } from "./_shared.js";
|
|
7
|
+
import { t as H } from "./create-safe-context.js";
|
|
8
8
|
import { t as Q } from "./use-controllable-state.js";
|
|
9
9
|
import { t as U } from "./Separator.js";
|
|
10
10
|
import { a as Z, c as y, d as ee, f as te, h as oe, l as g, m as ne, n as ae, o as re, p as se, r as ie, s as ue, t as de, u as M } from "./MenuSubmenuTrigger.js";
|
|
11
|
-
var d = /* @__PURE__ */ L(W(), 1), o = q(), [ce, N] =
|
|
11
|
+
var d = /* @__PURE__ */ L(W(), 1), o = q(), [ce, N] = H("ContextMenu");
|
|
12
12
|
function x({ children: e, anchorPoint: t, open: n, defaultOpen: r = !1, onOpenChange: p }) {
|
|
13
13
|
const [a, u] = d.useState({
|
|
14
14
|
x: 0,
|
|
@@ -268,24 +268,24 @@ var pe = Object.assign(x, {
|
|
|
268
268
|
}), f = {
|
|
269
269
|
open: "boolean",
|
|
270
270
|
defaultOpen: "boolean"
|
|
271
|
-
}, B = class extends
|
|
271
|
+
}, B = class extends Y {
|
|
272
272
|
get propDefs() {
|
|
273
273
|
return f;
|
|
274
274
|
}
|
|
275
275
|
static get observedAttributes() {
|
|
276
|
-
return Object.keys(f).map(
|
|
276
|
+
return Object.keys(f).map(V);
|
|
277
277
|
}
|
|
278
278
|
_renderReact() {
|
|
279
279
|
const e = this._readAllProps(), t = this._getSlot("trigger"), n = this._getDefaultSlot();
|
|
280
280
|
return d.createElement(pe, {
|
|
281
281
|
open: e.open,
|
|
282
282
|
defaultOpen: e.defaultOpen || !1,
|
|
283
|
-
onOpenChange: (r) =>
|
|
283
|
+
onOpenChange: (r) => J(this, "open-change", r)
|
|
284
284
|
}, t ? d.createElement(v, null, b(t)) : null, n ? d.createElement(h, null, b(n)) : null);
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
X(B, f);
|
|
288
|
+
$("hf-context-menu", B);
|
|
289
289
|
export {
|
|
290
290
|
B as ContextMenuWC,
|
|
291
291
|
B as default
|