@cloudflare/kumo 1.15.0 → 1.16.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/CHANGELOG.md +34 -0
- package/ai/component-registry.json +317 -13
- package/ai/component-registry.md +507 -26
- package/ai/schemas.ts +18 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +57 -2
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +366 -341
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{Legend-mkh1v83sz972e29d.js → Legend-bov5dqf08wemc2qj.js} +112 -100
- package/dist/chunks/Legend-bov5dqf08wemc2qj.js.map +1 -0
- package/dist/chunks/{checkbox-bvzuggmadtqawis4.js → checkbox-lawmt1894wr6rpgi.js} +3 -3
- package/dist/chunks/{checkbox-bvzuggmadtqawis4.js.map → checkbox-lawmt1894wr6rpgi.js.map} +1 -1
- package/dist/chunks/{clipboard-text-mwcknzn75qdvigrd.js → clipboard-text-ohx8kkpxisz382rj.js} +3 -3
- package/dist/chunks/{clipboard-text-mwcknzn75qdvigrd.js.map → clipboard-text-ohx8kkpxisz382rj.js.map} +1 -1
- package/dist/chunks/{combobox-ndbaroqh1c0u49ye.js → combobox-ft0u7rfaxawk0r0c.js} +4 -4
- package/dist/chunks/{combobox-ndbaroqh1c0u49ye.js.map → combobox-ft0u7rfaxawk0r0c.js.map} +1 -1
- package/dist/chunks/{command-palette-ejoszjfivybu9yi5.js → command-palette-b31nq4wk7o7gx4sa.js} +2 -2
- package/dist/chunks/{command-palette-ejoszjfivybu9yi5.js.map → command-palette-b31nq4wk7o7gx4sa.js.map} +1 -1
- package/dist/chunks/{dialog-gkmecnx48ge38jrr.js → dialog-l5tmwxrzp9g83jmw.js} +2 -2
- package/dist/chunks/{dialog-gkmecnx48ge38jrr.js.map → dialog-l5tmwxrzp9g83jmw.js.map} +1 -1
- package/dist/chunks/{dropdown-i8n7nv3cvkvb1x3e.js → dropdown-icy3xatdwhzr4une.js} +2 -2
- package/dist/chunks/{dropdown-i8n7nv3cvkvb1x3e.js.map → dropdown-icy3xatdwhzr4une.js.map} +1 -1
- package/dist/chunks/{field-lweivfadxgpqhuqi.js → field-csje72m7j9403fj5.js} +3 -3
- package/dist/chunks/{field-lweivfadxgpqhuqi.js.map → field-csje72m7j9403fj5.js.map} +1 -1
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +8 -0
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +1 -0
- package/dist/chunks/{input-area-obli4ufvu40bfpgp.js → input-area-jko15sbc6zeage3l.js} +4 -4
- package/dist/chunks/{input-area-obli4ufvu40bfpgp.js.map → input-area-jko15sbc6zeage3l.js.map} +1 -1
- package/dist/chunks/{input-ko2dne1givlxq7sz.js → input-c8jmidy7gdqfiky1.js} +3 -3
- package/dist/chunks/{input-ko2dne1givlxq7sz.js.map → input-c8jmidy7gdqfiky1.js.map} +1 -1
- package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js → input-group-cjsy8kh4vf9312xl.js} +2 -2
- package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js.map → input-group-cjsy8kh4vf9312xl.js.map} +1 -1
- package/dist/chunks/{label-kjahhybc191quieo.js → label-i46xnnzdh9bsxk6a.js} +2 -2
- package/dist/chunks/{label-kjahhybc191quieo.js.map → label-i46xnnzdh9bsxk6a.js.map} +1 -1
- package/dist/chunks/{link-lpzl5s47pmobk361.js → link-o7yfj4kwgl19fklp.js} +2 -2
- package/dist/chunks/{link-lpzl5s47pmobk361.js.map → link-o7yfj4kwgl19fklp.js.map} +1 -1
- package/dist/chunks/{menubar-ifxxdoa35zz79z1q.js → menubar-g1wqqjuyyfvsim83.js} +2 -2
- package/dist/chunks/{menubar-ifxxdoa35zz79z1q.js.map → menubar-g1wqqjuyyfvsim83.js.map} +1 -1
- package/dist/chunks/{meter-fbtqfg0okpwmaiju.js → meter-cqkrg5axjenbsuue.js} +2 -2
- package/dist/chunks/{meter-fbtqfg0okpwmaiju.js.map → meter-cqkrg5axjenbsuue.js.map} +1 -1
- package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js → pagination-e3dp8bd80s35f7sd.js} +3 -3
- package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js.map → pagination-e3dp8bd80s35f7sd.js.map} +1 -1
- package/dist/chunks/{popover-dd7hi5ajeoq9od1i.js → popover-jurf834u2uywluux.js} +2 -2
- package/dist/chunks/{popover-dd7hi5ajeoq9od1i.js.map → popover-jurf834u2uywluux.js.map} +1 -1
- package/dist/chunks/{radio-oi9iw7ls1t04j377.js → radio-l9dzm6sohcvvrsdc.js} +2 -2
- package/dist/chunks/{radio-oi9iw7ls1t04j377.js.map → radio-l9dzm6sohcvvrsdc.js.map} +1 -1
- package/dist/chunks/{select-0m0xklfwdlx8dwba.js → select-hnt87e3cfos48qql.js} +3 -3
- package/dist/chunks/{select-0m0xklfwdlx8dwba.js.map → select-hnt87e3cfos48qql.js.map} +1 -1
- package/dist/chunks/{sensitive-input-rjpykxn2llh0thx1.js → sensitive-input-lvtccf3iqc06lj7b.js} +4 -4
- package/dist/chunks/{sensitive-input-rjpykxn2llh0thx1.js.map → sensitive-input-lvtccf3iqc06lj7b.js.map} +1 -1
- package/dist/chunks/sidebar-l6rk9o5qf8k5vth1.js +875 -0
- package/dist/chunks/sidebar-l6rk9o5qf8k5vth1.js.map +1 -0
- package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js → switch-fukrbip86khvqjn7.js} +3 -3
- package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js.map → switch-fukrbip86khvqjn7.js.map} +1 -1
- package/dist/chunks/{table-fh7jmfip27vdapxm.js → table-orfgzwvxh8yr90dk.js} +2 -2
- package/dist/chunks/{table-fh7jmfip27vdapxm.js.map → table-orfgzwvxh8yr90dk.js.map} +1 -1
- package/dist/chunks/{tabs-hy6oa7xtf96d9mxt.js → tabs-n0t7iro7wr0pzgk2.js} +2 -2
- package/dist/chunks/{tabs-hy6oa7xtf96d9mxt.js.map → tabs-n0t7iro7wr0pzgk2.js.map} +1 -1
- package/dist/chunks/{toast-kswfqmjysxcrwij3.js → toast-r9ajsces7xp8l85w.js} +8 -8
- package/dist/chunks/{toast-kswfqmjysxcrwij3.js.map → toast-r9ajsces7xp8l85w.js.map} +1 -1
- package/dist/chunks/{tooltip-k68wcv9mrigb7rcb.js → tooltip-hnc71tg4gz2gpcvc.js} +2 -2
- package/dist/chunks/{tooltip-k68wcv9mrigb7rcb.js.map → tooltip-hnc71tg4gz2gpcvc.js.map} +1 -1
- package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js → vendor-base-ui-ccr5l0ynrievzzv3.js} +564 -563
- package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js.map → vendor-base-ui-ccr5l0ynrievzzv3.js.map} +1 -1
- package/dist/code/server.js +2 -1
- package/dist/code/server.js.map +1 -1
- package/dist/code.js +14 -13
- package/dist/code.js.map +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +2138 -2087
- package/dist/components/flow.js.map +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +35 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +194 -163
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/src/code/provider.d.ts.map +1 -1
- package/dist/src/code/server.d.ts.map +1 -1
- package/dist/src/code/types.d.ts +1 -1
- package/dist/src/code/types.d.ts.map +1 -1
- package/dist/src/components/chart/EChart.d.ts.map +1 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts +11 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/flow/node.d.ts.map +1 -1
- package/dist/src/components/flow/parallel.d.ts.map +1 -1
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/sidebar/index.d.ts.map +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts +556 -0
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/package.json +6 -2
- package/scripts/component-registry/index.ts +12 -0
- package/dist/chunks/Legend-mkh1v83sz972e29d.js.map +0 -1
package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js → vendor-base-ui-ccr5l0ynrievzzv3.js}
RENAMED
|
@@ -15218,6 +15218,161 @@ const QS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15218
15218
|
function eC(e) {
|
|
15219
15219
|
return re(e.defaultTagName ?? "div", e, e);
|
|
15220
15220
|
}
|
|
15221
|
+
function $m(e) {
|
|
15222
|
+
const {
|
|
15223
|
+
open: t,
|
|
15224
|
+
defaultOpen: n,
|
|
15225
|
+
onOpenChange: r,
|
|
15226
|
+
disabled: i
|
|
15227
|
+
} = e, s = t !== void 0, [c, a] = wt({
|
|
15228
|
+
controlled: t,
|
|
15229
|
+
default: n,
|
|
15230
|
+
name: "Collapsible",
|
|
15231
|
+
state: "open"
|
|
15232
|
+
}), {
|
|
15233
|
+
mounted: l,
|
|
15234
|
+
setMounted: u,
|
|
15235
|
+
transitionStatus: d
|
|
15236
|
+
} = Mt(c, !0, !0), [f, g] = o.useState(c), [{
|
|
15237
|
+
height: h,
|
|
15238
|
+
width: p
|
|
15239
|
+
}, m] = o.useState({
|
|
15240
|
+
height: void 0,
|
|
15241
|
+
width: void 0
|
|
15242
|
+
}), v = qe(), [y, b] = o.useState(), x = y ?? v, [R, E] = o.useState(!1), [S, w] = o.useState(!1), T = o.useRef(null), O = o.useRef(null), D = o.useRef(null), A = o.useRef(null), C = Mr(A, !1), P = te((N) => {
|
|
15243
|
+
const I = !c, k = pe(an, N.nativeEvent);
|
|
15244
|
+
if (r(I, k), k.isCanceled)
|
|
15245
|
+
return;
|
|
15246
|
+
const M = A.current;
|
|
15247
|
+
O.current === "css-animation" && M != null && M.style.removeProperty("animation-name"), !R && !S && (O.current != null && O.current !== "css-animation" && !l && I && u(!0), O.current === "css-animation" && (!f && I && g(!0), !l && I && u(!0))), a(I), O.current === "none" && l && !I && u(!1);
|
|
15248
|
+
});
|
|
15249
|
+
return de(() => {
|
|
15250
|
+
s && O.current === "none" && !S && !c && u(!1);
|
|
15251
|
+
}, [s, S, c, t, u]), o.useMemo(() => ({
|
|
15252
|
+
abortControllerRef: T,
|
|
15253
|
+
animationTypeRef: O,
|
|
15254
|
+
disabled: i,
|
|
15255
|
+
handleTrigger: P,
|
|
15256
|
+
height: h,
|
|
15257
|
+
mounted: l,
|
|
15258
|
+
open: c,
|
|
15259
|
+
panelId: x,
|
|
15260
|
+
panelRef: A,
|
|
15261
|
+
runOnceAnimationsFinish: C,
|
|
15262
|
+
setDimensions: m,
|
|
15263
|
+
setHiddenUntilFound: E,
|
|
15264
|
+
setKeepMounted: w,
|
|
15265
|
+
setMounted: u,
|
|
15266
|
+
setOpen: a,
|
|
15267
|
+
setPanelIdState: b,
|
|
15268
|
+
setVisible: g,
|
|
15269
|
+
transitionDimensionRef: D,
|
|
15270
|
+
transitionStatus: d,
|
|
15271
|
+
visible: f,
|
|
15272
|
+
width: p
|
|
15273
|
+
}), [T, O, i, P, h, l, c, x, A, C, m, E, w, u, a, g, D, d, f, p]);
|
|
15274
|
+
}
|
|
15275
|
+
const fi = /* @__PURE__ */ o.createContext(void 0);
|
|
15276
|
+
process.env.NODE_ENV !== "production" && (fi.displayName = "CollapsibleRootContext");
|
|
15277
|
+
function pi() {
|
|
15278
|
+
const e = o.useContext(fi);
|
|
15279
|
+
if (e === void 0)
|
|
15280
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : De(15));
|
|
15281
|
+
return e;
|
|
15282
|
+
}
|
|
15283
|
+
let br = (function(e) {
|
|
15284
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = $n.startingStyle] = "startingStyle", e[e.endingStyle = $n.endingStyle] = "endingStyle", e;
|
|
15285
|
+
})({}), hR = /* @__PURE__ */ (function(e) {
|
|
15286
|
+
return e.panelOpen = "data-panel-open", e;
|
|
15287
|
+
})({});
|
|
15288
|
+
const bR = {
|
|
15289
|
+
[br.open]: ""
|
|
15290
|
+
}, vR = {
|
|
15291
|
+
[br.closed]: ""
|
|
15292
|
+
}, Wm = {
|
|
15293
|
+
open(e) {
|
|
15294
|
+
return e ? {
|
|
15295
|
+
[hR.panelOpen]: ""
|
|
15296
|
+
} : null;
|
|
15297
|
+
}
|
|
15298
|
+
}, Ym = {
|
|
15299
|
+
open(e) {
|
|
15300
|
+
return e ? bR : vR;
|
|
15301
|
+
}
|
|
15302
|
+
}, Gm = {
|
|
15303
|
+
...Ym,
|
|
15304
|
+
...it
|
|
15305
|
+
}, zm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15306
|
+
const {
|
|
15307
|
+
render: r,
|
|
15308
|
+
className: i,
|
|
15309
|
+
defaultOpen: s = !1,
|
|
15310
|
+
disabled: c = !1,
|
|
15311
|
+
onOpenChange: a,
|
|
15312
|
+
open: l,
|
|
15313
|
+
...u
|
|
15314
|
+
} = t, d = te(a), f = $m({
|
|
15315
|
+
open: l,
|
|
15316
|
+
defaultOpen: s,
|
|
15317
|
+
onOpenChange: d,
|
|
15318
|
+
disabled: c
|
|
15319
|
+
}), g = o.useMemo(() => ({
|
|
15320
|
+
open: f.open,
|
|
15321
|
+
disabled: f.disabled,
|
|
15322
|
+
transitionStatus: f.transitionStatus
|
|
15323
|
+
}), [f.open, f.disabled, f.transitionStatus]), h = o.useMemo(() => ({
|
|
15324
|
+
...f,
|
|
15325
|
+
onOpenChange: d,
|
|
15326
|
+
state: g
|
|
15327
|
+
}), [f, d, g]), p = re("div", t, {
|
|
15328
|
+
state: g,
|
|
15329
|
+
ref: n,
|
|
15330
|
+
props: u,
|
|
15331
|
+
stateAttributesMapping: Gm
|
|
15332
|
+
});
|
|
15333
|
+
return /* @__PURE__ */ Z(fi.Provider, {
|
|
15334
|
+
value: h,
|
|
15335
|
+
children: p
|
|
15336
|
+
});
|
|
15337
|
+
});
|
|
15338
|
+
process.env.NODE_ENV !== "production" && (zm.displayName = "CollapsibleRoot");
|
|
15339
|
+
const yR = {
|
|
15340
|
+
...Wm,
|
|
15341
|
+
...it
|
|
15342
|
+
}, Km = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15343
|
+
const {
|
|
15344
|
+
panelId: r,
|
|
15345
|
+
open: i,
|
|
15346
|
+
handleTrigger: s,
|
|
15347
|
+
state: c,
|
|
15348
|
+
disabled: a
|
|
15349
|
+
} = pi(), {
|
|
15350
|
+
className: l,
|
|
15351
|
+
disabled: u = a,
|
|
15352
|
+
id: d,
|
|
15353
|
+
render: f,
|
|
15354
|
+
nativeButton: g = !0,
|
|
15355
|
+
...h
|
|
15356
|
+
} = t, {
|
|
15357
|
+
getButtonProps: p,
|
|
15358
|
+
buttonRef: m
|
|
15359
|
+
} = yt({
|
|
15360
|
+
disabled: u,
|
|
15361
|
+
focusableWhenDisabled: !0,
|
|
15362
|
+
native: g
|
|
15363
|
+
}), v = o.useMemo(() => ({
|
|
15364
|
+
"aria-controls": i ? r : void 0,
|
|
15365
|
+
"aria-expanded": i,
|
|
15366
|
+
onClick: s
|
|
15367
|
+
}), [r, i, s]);
|
|
15368
|
+
return re("button", t, {
|
|
15369
|
+
state: c,
|
|
15370
|
+
ref: [n, m],
|
|
15371
|
+
props: [v, h, p],
|
|
15372
|
+
stateAttributesMapping: yR
|
|
15373
|
+
});
|
|
15374
|
+
});
|
|
15375
|
+
process.env.NODE_ENV !== "production" && (Km.displayName = "CollapsibleTrigger");
|
|
15221
15376
|
let la;
|
|
15222
15377
|
process.env.NODE_ENV !== "production" && (la = /* @__PURE__ */ new Set());
|
|
15223
15378
|
function Ur(...e) {
|
|
@@ -15226,7 +15381,266 @@ function Ur(...e) {
|
|
|
15226
15381
|
la.has(t) || (la.add(t), console.warn(`Base UI: ${t}`));
|
|
15227
15382
|
}
|
|
15228
15383
|
}
|
|
15229
|
-
|
|
15384
|
+
let ER = /* @__PURE__ */ (function(e) {
|
|
15385
|
+
return e.disabled = "data-disabled", e.orientation = "data-orientation", e;
|
|
15386
|
+
})({});
|
|
15387
|
+
function Xm(e) {
|
|
15388
|
+
const {
|
|
15389
|
+
abortControllerRef: t,
|
|
15390
|
+
animationTypeRef: n,
|
|
15391
|
+
externalRef: r,
|
|
15392
|
+
height: i,
|
|
15393
|
+
hiddenUntilFound: s,
|
|
15394
|
+
keepMounted: c,
|
|
15395
|
+
id: a,
|
|
15396
|
+
mounted: l,
|
|
15397
|
+
onOpenChange: u,
|
|
15398
|
+
open: d,
|
|
15399
|
+
panelRef: f,
|
|
15400
|
+
runOnceAnimationsFinish: g,
|
|
15401
|
+
setDimensions: h,
|
|
15402
|
+
setMounted: p,
|
|
15403
|
+
setOpen: m,
|
|
15404
|
+
setVisible: v,
|
|
15405
|
+
transitionDimensionRef: y,
|
|
15406
|
+
visible: b,
|
|
15407
|
+
width: x
|
|
15408
|
+
} = e, R = o.useRef(!1), E = o.useRef(null), S = o.useRef(d), w = o.useRef(d), T = Wn(), O = o.useMemo(() => n.current === "css-animation" ? !b : !d && !l, [d, l, b, n]), D = te((C) => {
|
|
15409
|
+
if (!C)
|
|
15410
|
+
return;
|
|
15411
|
+
if (n.current == null || y.current == null) {
|
|
15412
|
+
const I = getComputedStyle(C), k = I.animationName !== "none" && I.animationName !== "", M = I.transitionDuration !== "0s" && I.transitionDuration !== "";
|
|
15413
|
+
k && M ? process.env.NODE_ENV !== "production" && Ur("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : I.animationName === "none" && I.transitionDuration !== "0s" ? n.current = "css-transition" : I.animationName !== "none" && I.transitionDuration === "0s" ? n.current = "css-animation" : n.current = "none", C.getAttribute(ER.orientation) === "horizontal" || I.transitionProperty.indexOf("width") > -1 ? y.current = "width" : y.current = "height";
|
|
15414
|
+
}
|
|
15415
|
+
if (n.current !== "css-transition")
|
|
15416
|
+
return;
|
|
15417
|
+
(i === void 0 || x === void 0) && (h({
|
|
15418
|
+
height: C.scrollHeight,
|
|
15419
|
+
width: C.scrollWidth
|
|
15420
|
+
}), w.current && C.style.setProperty("transition-duration", "0s"));
|
|
15421
|
+
let P = -1, N = -1;
|
|
15422
|
+
return P = St.request(() => {
|
|
15423
|
+
w.current = !1, N = St.request(() => {
|
|
15424
|
+
setTimeout(() => {
|
|
15425
|
+
C.style.removeProperty("transition-duration");
|
|
15426
|
+
});
|
|
15427
|
+
});
|
|
15428
|
+
}), () => {
|
|
15429
|
+
St.cancel(P), St.cancel(N);
|
|
15430
|
+
};
|
|
15431
|
+
}), A = kt(r, f, D);
|
|
15432
|
+
return de(() => {
|
|
15433
|
+
if (n.current !== "css-transition")
|
|
15434
|
+
return;
|
|
15435
|
+
const C = f.current;
|
|
15436
|
+
if (!C)
|
|
15437
|
+
return;
|
|
15438
|
+
let P = -1;
|
|
15439
|
+
if (t.current != null && (t.current.abort(), t.current = null), d) {
|
|
15440
|
+
const N = {
|
|
15441
|
+
"justify-content": C.style.justifyContent,
|
|
15442
|
+
"align-items": C.style.alignItems,
|
|
15443
|
+
"align-content": C.style.alignContent,
|
|
15444
|
+
"justify-items": C.style.justifyItems
|
|
15445
|
+
};
|
|
15446
|
+
Object.keys(N).forEach((I) => {
|
|
15447
|
+
C.style.setProperty(I, "initial", "important");
|
|
15448
|
+
}), !w.current && !c && C.setAttribute(br.startingStyle, ""), h({
|
|
15449
|
+
height: C.scrollHeight,
|
|
15450
|
+
width: C.scrollWidth
|
|
15451
|
+
}), P = St.request(() => {
|
|
15452
|
+
Object.entries(N).forEach(([I, k]) => {
|
|
15453
|
+
k === "" ? C.style.removeProperty(I) : C.style.setProperty(I, k);
|
|
15454
|
+
});
|
|
15455
|
+
});
|
|
15456
|
+
} else {
|
|
15457
|
+
if (C.scrollHeight === 0 && C.scrollWidth === 0)
|
|
15458
|
+
return;
|
|
15459
|
+
h({
|
|
15460
|
+
height: C.scrollHeight,
|
|
15461
|
+
width: C.scrollWidth
|
|
15462
|
+
});
|
|
15463
|
+
const N = new AbortController();
|
|
15464
|
+
t.current = N;
|
|
15465
|
+
const I = N.signal;
|
|
15466
|
+
let k = null;
|
|
15467
|
+
const M = br.endingStyle;
|
|
15468
|
+
return k = new MutationObserver((V) => {
|
|
15469
|
+
V.some(($) => $.type === "attributes" && $.attributeName === M) && (k?.disconnect(), k = null, g(() => {
|
|
15470
|
+
h({
|
|
15471
|
+
height: 0,
|
|
15472
|
+
width: 0
|
|
15473
|
+
}), C.style.removeProperty("content-visibility"), p(!1), t.current === N && (t.current = null);
|
|
15474
|
+
}, I));
|
|
15475
|
+
}), k.observe(C, {
|
|
15476
|
+
attributes: !0,
|
|
15477
|
+
attributeFilter: [M]
|
|
15478
|
+
}), () => {
|
|
15479
|
+
k?.disconnect(), T.cancel(), t.current === N && (N.abort(), t.current = null);
|
|
15480
|
+
};
|
|
15481
|
+
}
|
|
15482
|
+
return () => {
|
|
15483
|
+
St.cancel(P);
|
|
15484
|
+
};
|
|
15485
|
+
}, [t, n, T, s, c, l, d, f, g, h, p]), de(() => {
|
|
15486
|
+
if (n.current !== "css-animation")
|
|
15487
|
+
return;
|
|
15488
|
+
const C = f.current;
|
|
15489
|
+
C && (E.current = C.style.animationName || E.current, C.style.setProperty("animation-name", "none"), h({
|
|
15490
|
+
height: C.scrollHeight,
|
|
15491
|
+
width: C.scrollWidth
|
|
15492
|
+
}), !S.current && !R.current && C.style.removeProperty("animation-name"), d ? (t.current != null && (t.current.abort(), t.current = null), p(!0), v(!0)) : (t.current = new AbortController(), g(() => {
|
|
15493
|
+
p(!1), v(!1), t.current = null;
|
|
15494
|
+
}, t.current.signal)));
|
|
15495
|
+
}, [t, n, d, f, g, h, p, v, b]), _n(() => {
|
|
15496
|
+
const C = St.request(() => {
|
|
15497
|
+
S.current = !1;
|
|
15498
|
+
});
|
|
15499
|
+
return () => St.cancel(C);
|
|
15500
|
+
}), de(() => {
|
|
15501
|
+
if (!s)
|
|
15502
|
+
return;
|
|
15503
|
+
const C = f.current;
|
|
15504
|
+
if (!C)
|
|
15505
|
+
return;
|
|
15506
|
+
let P = -1, N = -1;
|
|
15507
|
+
return d && R.current && (C.style.transitionDuration = "0s", h({
|
|
15508
|
+
height: C.scrollHeight,
|
|
15509
|
+
width: C.scrollWidth
|
|
15510
|
+
}), P = St.request(() => {
|
|
15511
|
+
R.current = !1, N = St.request(() => {
|
|
15512
|
+
setTimeout(() => {
|
|
15513
|
+
C.style.removeProperty("transition-duration");
|
|
15514
|
+
});
|
|
15515
|
+
});
|
|
15516
|
+
})), () => {
|
|
15517
|
+
St.cancel(P), St.cancel(N);
|
|
15518
|
+
};
|
|
15519
|
+
}, [s, d, f, h]), de(() => {
|
|
15520
|
+
const C = f.current;
|
|
15521
|
+
C && s && O && (C.setAttribute("hidden", "until-found"), n.current === "css-transition" && C.setAttribute(br.startingStyle, ""));
|
|
15522
|
+
}, [s, O, n, f]), o.useEffect(function() {
|
|
15523
|
+
const P = f.current;
|
|
15524
|
+
if (!P)
|
|
15525
|
+
return;
|
|
15526
|
+
function N(I) {
|
|
15527
|
+
R.current = !0, m(!0), u(!0, pe(ct, I));
|
|
15528
|
+
}
|
|
15529
|
+
return P.addEventListener("beforematch", N), () => {
|
|
15530
|
+
P.removeEventListener("beforematch", N);
|
|
15531
|
+
};
|
|
15532
|
+
}, [u, f, m]), o.useMemo(() => ({
|
|
15533
|
+
props: {
|
|
15534
|
+
hidden: O,
|
|
15535
|
+
id: a,
|
|
15536
|
+
ref: A
|
|
15537
|
+
}
|
|
15538
|
+
}), [O, a, A]);
|
|
15539
|
+
}
|
|
15540
|
+
let fd = /* @__PURE__ */ (function(e) {
|
|
15541
|
+
return e.collapsiblePanelHeight = "--collapsible-panel-height", e.collapsiblePanelWidth = "--collapsible-panel-width", e;
|
|
15542
|
+
})({});
|
|
15543
|
+
const jm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15544
|
+
const {
|
|
15545
|
+
className: r,
|
|
15546
|
+
hiddenUntilFound: i,
|
|
15547
|
+
keepMounted: s,
|
|
15548
|
+
render: c,
|
|
15549
|
+
id: a,
|
|
15550
|
+
...l
|
|
15551
|
+
} = t;
|
|
15552
|
+
process.env.NODE_ENV !== "production" && de(() => {
|
|
15553
|
+
i && s === !1 && Ur("The `keepMounted={false}` prop on a Collapsible will be ignored when using `hiddenUntilFound` since it requires the Panel to remain mounted even when closed.");
|
|
15554
|
+
}, [i, s]);
|
|
15555
|
+
const {
|
|
15556
|
+
abortControllerRef: u,
|
|
15557
|
+
animationTypeRef: d,
|
|
15558
|
+
height: f,
|
|
15559
|
+
mounted: g,
|
|
15560
|
+
onOpenChange: h,
|
|
15561
|
+
open: p,
|
|
15562
|
+
panelId: m,
|
|
15563
|
+
panelRef: v,
|
|
15564
|
+
runOnceAnimationsFinish: y,
|
|
15565
|
+
setDimensions: b,
|
|
15566
|
+
setHiddenUntilFound: x,
|
|
15567
|
+
setKeepMounted: R,
|
|
15568
|
+
setMounted: E,
|
|
15569
|
+
setPanelIdState: S,
|
|
15570
|
+
setOpen: w,
|
|
15571
|
+
setVisible: T,
|
|
15572
|
+
state: O,
|
|
15573
|
+
transitionDimensionRef: D,
|
|
15574
|
+
visible: A,
|
|
15575
|
+
width: C,
|
|
15576
|
+
transitionStatus: P
|
|
15577
|
+
} = pi(), N = i ?? !1, I = s ?? !1;
|
|
15578
|
+
de(() => {
|
|
15579
|
+
if (a)
|
|
15580
|
+
return S(a), () => {
|
|
15581
|
+
S(void 0);
|
|
15582
|
+
};
|
|
15583
|
+
}, [a, S]), de(() => {
|
|
15584
|
+
x(N);
|
|
15585
|
+
}, [x, N]), de(() => {
|
|
15586
|
+
R(I);
|
|
15587
|
+
}, [R, I]);
|
|
15588
|
+
const {
|
|
15589
|
+
props: k
|
|
15590
|
+
} = Xm({
|
|
15591
|
+
abortControllerRef: u,
|
|
15592
|
+
animationTypeRef: d,
|
|
15593
|
+
externalRef: n,
|
|
15594
|
+
height: f,
|
|
15595
|
+
hiddenUntilFound: N,
|
|
15596
|
+
id: m,
|
|
15597
|
+
keepMounted: I,
|
|
15598
|
+
mounted: g,
|
|
15599
|
+
onOpenChange: h,
|
|
15600
|
+
open: p,
|
|
15601
|
+
panelRef: v,
|
|
15602
|
+
runOnceAnimationsFinish: y,
|
|
15603
|
+
setDimensions: b,
|
|
15604
|
+
setMounted: E,
|
|
15605
|
+
setOpen: w,
|
|
15606
|
+
setVisible: T,
|
|
15607
|
+
transitionDimensionRef: D,
|
|
15608
|
+
visible: A,
|
|
15609
|
+
width: C
|
|
15610
|
+
});
|
|
15611
|
+
ht({
|
|
15612
|
+
open: p && P === "idle",
|
|
15613
|
+
ref: v,
|
|
15614
|
+
onComplete() {
|
|
15615
|
+
p && b({
|
|
15616
|
+
height: void 0,
|
|
15617
|
+
width: void 0
|
|
15618
|
+
});
|
|
15619
|
+
}
|
|
15620
|
+
});
|
|
15621
|
+
const M = o.useMemo(() => ({
|
|
15622
|
+
...O,
|
|
15623
|
+
transitionStatus: P
|
|
15624
|
+
}), [O, P]), V = re("div", t, {
|
|
15625
|
+
state: M,
|
|
15626
|
+
ref: [n, v],
|
|
15627
|
+
props: [k, {
|
|
15628
|
+
style: {
|
|
15629
|
+
[fd.collapsiblePanelHeight]: f === void 0 ? "auto" : `${f}px`,
|
|
15630
|
+
[fd.collapsiblePanelWidth]: C === void 0 ? "auto" : `${C}px`
|
|
15631
|
+
}
|
|
15632
|
+
}, l],
|
|
15633
|
+
stateAttributesMapping: Gm
|
|
15634
|
+
});
|
|
15635
|
+
return I || N || !I && g ? V : null;
|
|
15636
|
+
});
|
|
15637
|
+
process.env.NODE_ENV !== "production" && (jm.displayName = "CollapsiblePanel");
|
|
15638
|
+
const tC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15639
|
+
__proto__: null,
|
|
15640
|
+
Panel: jm,
|
|
15641
|
+
Root: zm,
|
|
15642
|
+
Trigger: Km
|
|
15643
|
+
}, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ o.createContext(void 0);
|
|
15230
15644
|
process.env.NODE_ENV !== "production" && (Bl.displayName = "AccordionRootContext");
|
|
15231
15645
|
function Ul() {
|
|
15232
15646
|
const e = o.useContext(Bl);
|
|
@@ -15234,9 +15648,9 @@ function Ul() {
|
|
|
15234
15648
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." : De(10));
|
|
15235
15649
|
return e;
|
|
15236
15650
|
}
|
|
15237
|
-
const
|
|
15651
|
+
const RR = {
|
|
15238
15652
|
value: () => null
|
|
15239
|
-
},
|
|
15653
|
+
}, qm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15240
15654
|
const {
|
|
15241
15655
|
render: r,
|
|
15242
15656
|
className: i,
|
|
@@ -15304,79 +15718,17 @@ const hR = {
|
|
|
15304
15718
|
dir: m,
|
|
15305
15719
|
role: "region"
|
|
15306
15720
|
}, p],
|
|
15307
|
-
stateAttributesMapping:
|
|
15721
|
+
stateAttributesMapping: RR
|
|
15308
15722
|
});
|
|
15309
15723
|
return /* @__PURE__ */ Z(Bl.Provider, {
|
|
15310
15724
|
value: w,
|
|
15311
15725
|
children: /* @__PURE__ */ Z(co, {
|
|
15312
15726
|
elementsRef: b,
|
|
15313
|
-
children: T
|
|
15314
|
-
})
|
|
15315
|
-
});
|
|
15316
|
-
});
|
|
15317
|
-
process.env.NODE_ENV !== "production" && (
|
|
15318
|
-
function Wm(e) {
|
|
15319
|
-
const {
|
|
15320
|
-
open: t,
|
|
15321
|
-
defaultOpen: n,
|
|
15322
|
-
onOpenChange: r,
|
|
15323
|
-
disabled: i
|
|
15324
|
-
} = e, s = t !== void 0, [c, a] = wt({
|
|
15325
|
-
controlled: t,
|
|
15326
|
-
default: n,
|
|
15327
|
-
name: "Collapsible",
|
|
15328
|
-
state: "open"
|
|
15329
|
-
}), {
|
|
15330
|
-
mounted: l,
|
|
15331
|
-
setMounted: u,
|
|
15332
|
-
transitionStatus: d
|
|
15333
|
-
} = Mt(c, !0, !0), [f, g] = o.useState(c), [{
|
|
15334
|
-
height: h,
|
|
15335
|
-
width: p
|
|
15336
|
-
}, m] = o.useState({
|
|
15337
|
-
height: void 0,
|
|
15338
|
-
width: void 0
|
|
15339
|
-
}), v = qe(), [y, b] = o.useState(), x = y ?? v, [R, E] = o.useState(!1), [S, w] = o.useState(!1), T = o.useRef(null), O = o.useRef(null), D = o.useRef(null), A = o.useRef(null), C = Mr(A, !1), P = te((N) => {
|
|
15340
|
-
const I = !c, k = pe(an, N.nativeEvent);
|
|
15341
|
-
if (r(I, k), k.isCanceled)
|
|
15342
|
-
return;
|
|
15343
|
-
const M = A.current;
|
|
15344
|
-
O.current === "css-animation" && M != null && M.style.removeProperty("animation-name"), !R && !S && (O.current != null && O.current !== "css-animation" && !l && I && u(!0), O.current === "css-animation" && (!f && I && g(!0), !l && I && u(!0))), a(I), O.current === "none" && l && !I && u(!1);
|
|
15345
|
-
});
|
|
15346
|
-
return de(() => {
|
|
15347
|
-
s && O.current === "none" && !S && !c && u(!1);
|
|
15348
|
-
}, [s, S, c, t, u]), o.useMemo(() => ({
|
|
15349
|
-
abortControllerRef: T,
|
|
15350
|
-
animationTypeRef: O,
|
|
15351
|
-
disabled: i,
|
|
15352
|
-
handleTrigger: P,
|
|
15353
|
-
height: h,
|
|
15354
|
-
mounted: l,
|
|
15355
|
-
open: c,
|
|
15356
|
-
panelId: x,
|
|
15357
|
-
panelRef: A,
|
|
15358
|
-
runOnceAnimationsFinish: C,
|
|
15359
|
-
setDimensions: m,
|
|
15360
|
-
setHiddenUntilFound: E,
|
|
15361
|
-
setKeepMounted: w,
|
|
15362
|
-
setMounted: u,
|
|
15363
|
-
setOpen: a,
|
|
15364
|
-
setPanelIdState: b,
|
|
15365
|
-
setVisible: g,
|
|
15366
|
-
transitionDimensionRef: D,
|
|
15367
|
-
transitionStatus: d,
|
|
15368
|
-
visible: f,
|
|
15369
|
-
width: p
|
|
15370
|
-
}), [T, O, i, P, h, l, c, x, A, C, m, E, w, u, a, g, D, d, f, p]);
|
|
15371
|
-
}
|
|
15372
|
-
const fi = /* @__PURE__ */ o.createContext(void 0);
|
|
15373
|
-
process.env.NODE_ENV !== "production" && (fi.displayName = "CollapsibleRootContext");
|
|
15374
|
-
function pi() {
|
|
15375
|
-
const e = o.useContext(fi);
|
|
15376
|
-
if (e === void 0)
|
|
15377
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : De(15));
|
|
15378
|
-
return e;
|
|
15379
|
-
}
|
|
15727
|
+
children: T
|
|
15728
|
+
})
|
|
15729
|
+
});
|
|
15730
|
+
});
|
|
15731
|
+
process.env.NODE_ENV !== "production" && (qm.displayName = "AccordionRoot");
|
|
15380
15732
|
const $l = /* @__PURE__ */ o.createContext(void 0);
|
|
15381
15733
|
process.env.NODE_ENV !== "production" && ($l.displayName = "AccordionItemContext");
|
|
15382
15734
|
function Wl() {
|
|
@@ -15385,37 +15737,17 @@ function Wl() {
|
|
|
15385
15737
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." : De(9));
|
|
15386
15738
|
return e;
|
|
15387
15739
|
}
|
|
15388
|
-
let
|
|
15389
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = $n.startingStyle] = "startingStyle", e[e.endingStyle = $n.endingStyle] = "endingStyle", e;
|
|
15390
|
-
})({}), bR = /* @__PURE__ */ (function(e) {
|
|
15391
|
-
return e.panelOpen = "data-panel-open", e;
|
|
15392
|
-
})({});
|
|
15393
|
-
const vR = {
|
|
15394
|
-
[br.open]: ""
|
|
15395
|
-
}, yR = {
|
|
15396
|
-
[br.closed]: ""
|
|
15397
|
-
}, Ym = {
|
|
15398
|
-
open(e) {
|
|
15399
|
-
return e ? {
|
|
15400
|
-
[bR.panelOpen]: ""
|
|
15401
|
-
} : null;
|
|
15402
|
-
}
|
|
15403
|
-
}, Gm = {
|
|
15404
|
-
open(e) {
|
|
15405
|
-
return e ? vR : yR;
|
|
15406
|
-
}
|
|
15407
|
-
};
|
|
15408
|
-
let ER = /* @__PURE__ */ (function(e) {
|
|
15740
|
+
let xR = /* @__PURE__ */ (function(e) {
|
|
15409
15741
|
return e.index = "data-index", e.disabled = "data-disabled", e.open = "data-open", e;
|
|
15410
15742
|
})({});
|
|
15411
15743
|
const Yl = {
|
|
15412
|
-
...
|
|
15744
|
+
...Ym,
|
|
15413
15745
|
index: (e) => Number.isInteger(e) ? {
|
|
15414
|
-
[
|
|
15746
|
+
[xR.index]: String(e)
|
|
15415
15747
|
} : null,
|
|
15416
15748
|
...it,
|
|
15417
15749
|
value: () => null
|
|
15418
|
-
},
|
|
15750
|
+
}, Zm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15419
15751
|
const {
|
|
15420
15752
|
className: r,
|
|
15421
15753
|
disabled: i = !1,
|
|
@@ -15440,7 +15772,7 @@ const Yl = {
|
|
|
15440
15772
|
return !1;
|
|
15441
15773
|
}, [m, y]), R = te((P, N) => {
|
|
15442
15774
|
s?.(P, N), !N.isCanceled && h(y, P);
|
|
15443
|
-
}), E =
|
|
15775
|
+
}), E = $m({
|
|
15444
15776
|
open: x,
|
|
15445
15777
|
onOpenChange: R,
|
|
15446
15778
|
disabled: b
|
|
@@ -15477,8 +15809,8 @@ const Yl = {
|
|
|
15477
15809
|
})
|
|
15478
15810
|
});
|
|
15479
15811
|
});
|
|
15480
|
-
process.env.NODE_ENV !== "production" && (
|
|
15481
|
-
const
|
|
15812
|
+
process.env.NODE_ENV !== "production" && (Zm.displayName = "AccordionItem");
|
|
15813
|
+
const Jm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15482
15814
|
const {
|
|
15483
15815
|
render: r,
|
|
15484
15816
|
className: i,
|
|
@@ -15493,263 +15825,107 @@ const Km = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
15493
15825
|
stateAttributesMapping: Yl
|
|
15494
15826
|
});
|
|
15495
15827
|
});
|
|
15496
|
-
process.env.NODE_ENV !== "production" && (
|
|
15497
|
-
const
|
|
15498
|
-
function
|
|
15828
|
+
process.env.NODE_ENV !== "production" && (Jm.displayName = "AccordionHeader");
|
|
15829
|
+
const SR = /* @__PURE__ */ new Set([Cn, Vn, wn, kn, lo, uo]);
|
|
15830
|
+
function CR(e) {
|
|
15499
15831
|
const {
|
|
15500
15832
|
current: t
|
|
15501
15833
|
} = e, n = [];
|
|
15502
15834
|
for (let r = 0; r < t.length; r += 1) {
|
|
15503
15835
|
const i = t[r];
|
|
15504
|
-
if (!aa(i)) {
|
|
15505
|
-
const s = i?.querySelector('[type="button"], [role="button"]');
|
|
15506
|
-
s && !aa(s) && n.push(s);
|
|
15507
|
-
}
|
|
15508
|
-
}
|
|
15509
|
-
return n;
|
|
15510
|
-
}
|
|
15511
|
-
const Xm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15512
|
-
const {
|
|
15513
|
-
disabled: r,
|
|
15514
|
-
className: i,
|
|
15515
|
-
id: s,
|
|
15516
|
-
render: c,
|
|
15517
|
-
nativeButton: a = !0,
|
|
15518
|
-
...l
|
|
15519
|
-
} = t, {
|
|
15520
|
-
panelId: u,
|
|
15521
|
-
open: d,
|
|
15522
|
-
handleTrigger: f,
|
|
15523
|
-
disabled: g
|
|
15524
|
-
} = pi(), h = r ?? g, {
|
|
15525
|
-
getButtonProps: p,
|
|
15526
|
-
buttonRef: m
|
|
15527
|
-
} = yt({
|
|
15528
|
-
disabled: h,
|
|
15529
|
-
focusableWhenDisabled: !0,
|
|
15530
|
-
native: a
|
|
15531
|
-
}), {
|
|
15532
|
-
accordionItemRefs: v,
|
|
15533
|
-
direction: y,
|
|
15534
|
-
loopFocus: b,
|
|
15535
|
-
orientation: x
|
|
15536
|
-
} = Ul(), R = y === "rtl", E = x === "horizontal", {
|
|
15537
|
-
state: S,
|
|
15538
|
-
setTriggerId: w,
|
|
15539
|
-
triggerId: T
|
|
15540
|
-
} = Wl();
|
|
15541
|
-
de(() => (s && w(s), () => {
|
|
15542
|
-
w(void 0);
|
|
15543
|
-
}), [s, w]);
|
|
15544
|
-
const O = o.useMemo(() => ({
|
|
15545
|
-
"aria-controls": d ? u : void 0,
|
|
15546
|
-
"aria-expanded": d,
|
|
15547
|
-
id: T,
|
|
15548
|
-
onClick: f,
|
|
15549
|
-
onKeyDown(A) {
|
|
15550
|
-
if (!RR.has(A.key))
|
|
15551
|
-
return;
|
|
15552
|
-
ft(A);
|
|
15553
|
-
const C = xR(v), N = C.length - 1;
|
|
15554
|
-
let I = -1;
|
|
15555
|
-
const k = C.indexOf(A.target);
|
|
15556
|
-
function M() {
|
|
15557
|
-
b ? I = k + 1 > N ? 0 : k + 1 : I = Math.min(k + 1, N);
|
|
15558
|
-
}
|
|
15559
|
-
function V() {
|
|
15560
|
-
b ? I = k === 0 ? N : k - 1 : I = k - 1;
|
|
15561
|
-
}
|
|
15562
|
-
switch (A.key) {
|
|
15563
|
-
case Cn:
|
|
15564
|
-
E || M();
|
|
15565
|
-
break;
|
|
15566
|
-
case Vn:
|
|
15567
|
-
E || V();
|
|
15568
|
-
break;
|
|
15569
|
-
case wn:
|
|
15570
|
-
E && (R ? V() : M());
|
|
15571
|
-
break;
|
|
15572
|
-
case kn:
|
|
15573
|
-
E && (R ? M() : V());
|
|
15574
|
-
break;
|
|
15575
|
-
case "Home":
|
|
15576
|
-
I = 0;
|
|
15577
|
-
break;
|
|
15578
|
-
case "End":
|
|
15579
|
-
I = N;
|
|
15580
|
-
break;
|
|
15581
|
-
}
|
|
15582
|
-
I > -1 && C[I].focus();
|
|
15583
|
-
}
|
|
15584
|
-
}), [v, f, T, E, R, b, d, u]);
|
|
15585
|
-
return re("button", t, {
|
|
15586
|
-
state: S,
|
|
15587
|
-
ref: [n, m],
|
|
15588
|
-
props: [O, l, p],
|
|
15589
|
-
stateAttributesMapping: Ym
|
|
15590
|
-
});
|
|
15591
|
-
});
|
|
15592
|
-
process.env.NODE_ENV !== "production" && (Xm.displayName = "AccordionTrigger");
|
|
15593
|
-
let SR = /* @__PURE__ */ (function(e) {
|
|
15594
|
-
return e.disabled = "data-disabled", e.orientation = "data-orientation", e;
|
|
15595
|
-
})({});
|
|
15596
|
-
function jm(e) {
|
|
15597
|
-
const {
|
|
15598
|
-
abortControllerRef: t,
|
|
15599
|
-
animationTypeRef: n,
|
|
15600
|
-
externalRef: r,
|
|
15601
|
-
height: i,
|
|
15602
|
-
hiddenUntilFound: s,
|
|
15603
|
-
keepMounted: c,
|
|
15604
|
-
id: a,
|
|
15605
|
-
mounted: l,
|
|
15606
|
-
onOpenChange: u,
|
|
15607
|
-
open: d,
|
|
15608
|
-
panelRef: f,
|
|
15609
|
-
runOnceAnimationsFinish: g,
|
|
15610
|
-
setDimensions: h,
|
|
15611
|
-
setMounted: p,
|
|
15612
|
-
setOpen: m,
|
|
15613
|
-
setVisible: v,
|
|
15614
|
-
transitionDimensionRef: y,
|
|
15615
|
-
visible: b,
|
|
15616
|
-
width: x
|
|
15617
|
-
} = e, R = o.useRef(!1), E = o.useRef(null), S = o.useRef(d), w = o.useRef(d), T = Wn(), O = o.useMemo(() => n.current === "css-animation" ? !b : !d && !l, [d, l, b, n]), D = te((C) => {
|
|
15618
|
-
if (!C)
|
|
15619
|
-
return;
|
|
15620
|
-
if (n.current == null || y.current == null) {
|
|
15621
|
-
const I = getComputedStyle(C), k = I.animationName !== "none" && I.animationName !== "", M = I.transitionDuration !== "0s" && I.transitionDuration !== "";
|
|
15622
|
-
k && M ? process.env.NODE_ENV !== "production" && Ur("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : I.animationName === "none" && I.transitionDuration !== "0s" ? n.current = "css-transition" : I.animationName !== "none" && I.transitionDuration === "0s" ? n.current = "css-animation" : n.current = "none", C.getAttribute(SR.orientation) === "horizontal" || I.transitionProperty.indexOf("width") > -1 ? y.current = "width" : y.current = "height";
|
|
15623
|
-
}
|
|
15624
|
-
if (n.current !== "css-transition")
|
|
15625
|
-
return;
|
|
15626
|
-
(i === void 0 || x === void 0) && (h({
|
|
15627
|
-
height: C.scrollHeight,
|
|
15628
|
-
width: C.scrollWidth
|
|
15629
|
-
}), w.current && C.style.setProperty("transition-duration", "0s"));
|
|
15630
|
-
let P = -1, N = -1;
|
|
15631
|
-
return P = St.request(() => {
|
|
15632
|
-
w.current = !1, N = St.request(() => {
|
|
15633
|
-
setTimeout(() => {
|
|
15634
|
-
C.style.removeProperty("transition-duration");
|
|
15635
|
-
});
|
|
15636
|
-
});
|
|
15637
|
-
}), () => {
|
|
15638
|
-
St.cancel(P), St.cancel(N);
|
|
15639
|
-
};
|
|
15640
|
-
}), A = kt(r, f, D);
|
|
15641
|
-
return de(() => {
|
|
15642
|
-
if (n.current !== "css-transition")
|
|
15643
|
-
return;
|
|
15644
|
-
const C = f.current;
|
|
15645
|
-
if (!C)
|
|
15646
|
-
return;
|
|
15647
|
-
let P = -1;
|
|
15648
|
-
if (t.current != null && (t.current.abort(), t.current = null), d) {
|
|
15649
|
-
const N = {
|
|
15650
|
-
"justify-content": C.style.justifyContent,
|
|
15651
|
-
"align-items": C.style.alignItems,
|
|
15652
|
-
"align-content": C.style.alignContent,
|
|
15653
|
-
"justify-items": C.style.justifyItems
|
|
15654
|
-
};
|
|
15655
|
-
Object.keys(N).forEach((I) => {
|
|
15656
|
-
C.style.setProperty(I, "initial", "important");
|
|
15657
|
-
}), !w.current && !c && C.setAttribute(br.startingStyle, ""), h({
|
|
15658
|
-
height: C.scrollHeight,
|
|
15659
|
-
width: C.scrollWidth
|
|
15660
|
-
}), P = St.request(() => {
|
|
15661
|
-
Object.entries(N).forEach(([I, k]) => {
|
|
15662
|
-
k === "" ? C.style.removeProperty(I) : C.style.setProperty(I, k);
|
|
15663
|
-
});
|
|
15664
|
-
});
|
|
15665
|
-
} else {
|
|
15666
|
-
if (C.scrollHeight === 0 && C.scrollWidth === 0)
|
|
15667
|
-
return;
|
|
15668
|
-
h({
|
|
15669
|
-
height: C.scrollHeight,
|
|
15670
|
-
width: C.scrollWidth
|
|
15671
|
-
});
|
|
15672
|
-
const N = new AbortController();
|
|
15673
|
-
t.current = N;
|
|
15674
|
-
const I = N.signal;
|
|
15675
|
-
let k = null;
|
|
15676
|
-
const M = br.endingStyle;
|
|
15677
|
-
return k = new MutationObserver((V) => {
|
|
15678
|
-
V.some(($) => $.type === "attributes" && $.attributeName === M) && (k?.disconnect(), k = null, g(() => {
|
|
15679
|
-
h({
|
|
15680
|
-
height: 0,
|
|
15681
|
-
width: 0
|
|
15682
|
-
}), C.style.removeProperty("content-visibility"), p(!1), t.current === N && (t.current = null);
|
|
15683
|
-
}, I));
|
|
15684
|
-
}), k.observe(C, {
|
|
15685
|
-
attributes: !0,
|
|
15686
|
-
attributeFilter: [M]
|
|
15687
|
-
}), () => {
|
|
15688
|
-
k?.disconnect(), T.cancel(), t.current === N && (N.abort(), t.current = null);
|
|
15689
|
-
};
|
|
15690
|
-
}
|
|
15691
|
-
return () => {
|
|
15692
|
-
St.cancel(P);
|
|
15693
|
-
};
|
|
15694
|
-
}, [t, n, T, s, c, l, d, f, g, h, p]), de(() => {
|
|
15695
|
-
if (n.current !== "css-animation")
|
|
15696
|
-
return;
|
|
15697
|
-
const C = f.current;
|
|
15698
|
-
C && (E.current = C.style.animationName || E.current, C.style.setProperty("animation-name", "none"), h({
|
|
15699
|
-
height: C.scrollHeight,
|
|
15700
|
-
width: C.scrollWidth
|
|
15701
|
-
}), !S.current && !R.current && C.style.removeProperty("animation-name"), d ? (t.current != null && (t.current.abort(), t.current = null), p(!0), v(!0)) : (t.current = new AbortController(), g(() => {
|
|
15702
|
-
p(!1), v(!1), t.current = null;
|
|
15703
|
-
}, t.current.signal)));
|
|
15704
|
-
}, [t, n, d, f, g, h, p, v, b]), _n(() => {
|
|
15705
|
-
const C = St.request(() => {
|
|
15706
|
-
S.current = !1;
|
|
15707
|
-
});
|
|
15708
|
-
return () => St.cancel(C);
|
|
15709
|
-
}), de(() => {
|
|
15710
|
-
if (!s)
|
|
15711
|
-
return;
|
|
15712
|
-
const C = f.current;
|
|
15713
|
-
if (!C)
|
|
15714
|
-
return;
|
|
15715
|
-
let P = -1, N = -1;
|
|
15716
|
-
return d && R.current && (C.style.transitionDuration = "0s", h({
|
|
15717
|
-
height: C.scrollHeight,
|
|
15718
|
-
width: C.scrollWidth
|
|
15719
|
-
}), P = St.request(() => {
|
|
15720
|
-
R.current = !1, N = St.request(() => {
|
|
15721
|
-
setTimeout(() => {
|
|
15722
|
-
C.style.removeProperty("transition-duration");
|
|
15723
|
-
});
|
|
15724
|
-
});
|
|
15725
|
-
})), () => {
|
|
15726
|
-
St.cancel(P), St.cancel(N);
|
|
15727
|
-
};
|
|
15728
|
-
}, [s, d, f, h]), de(() => {
|
|
15729
|
-
const C = f.current;
|
|
15730
|
-
C && s && O && (C.setAttribute("hidden", "until-found"), n.current === "css-transition" && C.setAttribute(br.startingStyle, ""));
|
|
15731
|
-
}, [s, O, n, f]), o.useEffect(function() {
|
|
15732
|
-
const P = f.current;
|
|
15733
|
-
if (!P)
|
|
15734
|
-
return;
|
|
15735
|
-
function N(I) {
|
|
15736
|
-
R.current = !0, m(!0), u(!0, pe(ct, I));
|
|
15737
|
-
}
|
|
15738
|
-
return P.addEventListener("beforematch", N), () => {
|
|
15739
|
-
P.removeEventListener("beforematch", N);
|
|
15740
|
-
};
|
|
15741
|
-
}, [u, f, m]), o.useMemo(() => ({
|
|
15742
|
-
props: {
|
|
15743
|
-
hidden: O,
|
|
15744
|
-
id: a,
|
|
15745
|
-
ref: A
|
|
15836
|
+
if (!aa(i)) {
|
|
15837
|
+
const s = i?.querySelector('[type="button"], [role="button"]');
|
|
15838
|
+
s && !aa(s) && n.push(s);
|
|
15746
15839
|
}
|
|
15747
|
-
}
|
|
15840
|
+
}
|
|
15841
|
+
return n;
|
|
15748
15842
|
}
|
|
15749
|
-
|
|
15843
|
+
const Qm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15844
|
+
const {
|
|
15845
|
+
disabled: r,
|
|
15846
|
+
className: i,
|
|
15847
|
+
id: s,
|
|
15848
|
+
render: c,
|
|
15849
|
+
nativeButton: a = !0,
|
|
15850
|
+
...l
|
|
15851
|
+
} = t, {
|
|
15852
|
+
panelId: u,
|
|
15853
|
+
open: d,
|
|
15854
|
+
handleTrigger: f,
|
|
15855
|
+
disabled: g
|
|
15856
|
+
} = pi(), h = r ?? g, {
|
|
15857
|
+
getButtonProps: p,
|
|
15858
|
+
buttonRef: m
|
|
15859
|
+
} = yt({
|
|
15860
|
+
disabled: h,
|
|
15861
|
+
focusableWhenDisabled: !0,
|
|
15862
|
+
native: a
|
|
15863
|
+
}), {
|
|
15864
|
+
accordionItemRefs: v,
|
|
15865
|
+
direction: y,
|
|
15866
|
+
loopFocus: b,
|
|
15867
|
+
orientation: x
|
|
15868
|
+
} = Ul(), R = y === "rtl", E = x === "horizontal", {
|
|
15869
|
+
state: S,
|
|
15870
|
+
setTriggerId: w,
|
|
15871
|
+
triggerId: T
|
|
15872
|
+
} = Wl();
|
|
15873
|
+
de(() => (s && w(s), () => {
|
|
15874
|
+
w(void 0);
|
|
15875
|
+
}), [s, w]);
|
|
15876
|
+
const O = o.useMemo(() => ({
|
|
15877
|
+
"aria-controls": d ? u : void 0,
|
|
15878
|
+
"aria-expanded": d,
|
|
15879
|
+
id: T,
|
|
15880
|
+
onClick: f,
|
|
15881
|
+
onKeyDown(A) {
|
|
15882
|
+
if (!SR.has(A.key))
|
|
15883
|
+
return;
|
|
15884
|
+
ft(A);
|
|
15885
|
+
const C = CR(v), N = C.length - 1;
|
|
15886
|
+
let I = -1;
|
|
15887
|
+
const k = C.indexOf(A.target);
|
|
15888
|
+
function M() {
|
|
15889
|
+
b ? I = k + 1 > N ? 0 : k + 1 : I = Math.min(k + 1, N);
|
|
15890
|
+
}
|
|
15891
|
+
function V() {
|
|
15892
|
+
b ? I = k === 0 ? N : k - 1 : I = k - 1;
|
|
15893
|
+
}
|
|
15894
|
+
switch (A.key) {
|
|
15895
|
+
case Cn:
|
|
15896
|
+
E || M();
|
|
15897
|
+
break;
|
|
15898
|
+
case Vn:
|
|
15899
|
+
E || V();
|
|
15900
|
+
break;
|
|
15901
|
+
case wn:
|
|
15902
|
+
E && (R ? V() : M());
|
|
15903
|
+
break;
|
|
15904
|
+
case kn:
|
|
15905
|
+
E && (R ? M() : V());
|
|
15906
|
+
break;
|
|
15907
|
+
case "Home":
|
|
15908
|
+
I = 0;
|
|
15909
|
+
break;
|
|
15910
|
+
case "End":
|
|
15911
|
+
I = N;
|
|
15912
|
+
break;
|
|
15913
|
+
}
|
|
15914
|
+
I > -1 && C[I].focus();
|
|
15915
|
+
}
|
|
15916
|
+
}), [v, f, T, E, R, b, d, u]);
|
|
15917
|
+
return re("button", t, {
|
|
15918
|
+
state: S,
|
|
15919
|
+
ref: [n, m],
|
|
15920
|
+
props: [O, l, p],
|
|
15921
|
+
stateAttributesMapping: Wm
|
|
15922
|
+
});
|
|
15923
|
+
});
|
|
15924
|
+
process.env.NODE_ENV !== "production" && (Qm.displayName = "AccordionTrigger");
|
|
15925
|
+
let pd = /* @__PURE__ */ (function(e) {
|
|
15750
15926
|
return e.accordionPanelHeight = "--accordion-panel-height", e.accordionPanelWidth = "--accordion-panel-width", e;
|
|
15751
15927
|
})({});
|
|
15752
|
-
const
|
|
15928
|
+
const eg = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15753
15929
|
const {
|
|
15754
15930
|
className: r,
|
|
15755
15931
|
hiddenUntilFound: i,
|
|
@@ -15805,7 +15981,7 @@ const qm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
15805
15981
|
});
|
|
15806
15982
|
const {
|
|
15807
15983
|
props: M
|
|
15808
|
-
} =
|
|
15984
|
+
} = Xm({
|
|
15809
15985
|
abortControllerRef: f,
|
|
15810
15986
|
animationTypeRef: g,
|
|
15811
15987
|
externalRef: n,
|
|
@@ -15838,25 +16014,25 @@ const qm = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
|
15838
16014
|
"aria-labelledby": _,
|
|
15839
16015
|
role: "region",
|
|
15840
16016
|
style: {
|
|
15841
|
-
[
|
|
15842
|
-
[
|
|
16017
|
+
[pd.accordionPanelHeight]: h === void 0 ? "auto" : `${h}px`,
|
|
16018
|
+
[pd.accordionPanelWidth]: C === void 0 ? "auto" : `${C}px`
|
|
15843
16019
|
}
|
|
15844
16020
|
}, l],
|
|
15845
16021
|
stateAttributesMapping: Yl
|
|
15846
16022
|
});
|
|
15847
16023
|
return k || I || !k && p ? X : null;
|
|
15848
16024
|
});
|
|
15849
|
-
process.env.NODE_ENV !== "production" && (
|
|
15850
|
-
const
|
|
16025
|
+
process.env.NODE_ENV !== "production" && (eg.displayName = "AccordionPanel");
|
|
16026
|
+
const nC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15851
16027
|
__proto__: null,
|
|
15852
|
-
Header:
|
|
15853
|
-
Item:
|
|
15854
|
-
Panel:
|
|
15855
|
-
Root:
|
|
15856
|
-
Trigger:
|
|
16028
|
+
Header: Jm,
|
|
16029
|
+
Item: Zm,
|
|
16030
|
+
Panel: eg,
|
|
16031
|
+
Root: qm,
|
|
16032
|
+
Trigger: Qm
|
|
15857
16033
|
}, Symbol.toStringTag, { value: "Module" })), Gl = /* @__PURE__ */ o.createContext(void 0);
|
|
15858
16034
|
process.env.NODE_ENV !== "production" && (Gl.displayName = "AvatarRootContext");
|
|
15859
|
-
function
|
|
16035
|
+
function tg() {
|
|
15860
16036
|
const e = o.useContext(Gl);
|
|
15861
16037
|
if (e === void 0)
|
|
15862
16038
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : De(13));
|
|
@@ -15864,7 +16040,7 @@ function Zm() {
|
|
|
15864
16040
|
}
|
|
15865
16041
|
const zl = {
|
|
15866
16042
|
imageLoadingStatus: () => null
|
|
15867
|
-
},
|
|
16043
|
+
}, ng = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15868
16044
|
const {
|
|
15869
16045
|
className: r,
|
|
15870
16046
|
render: i,
|
|
@@ -15885,8 +16061,8 @@ const zl = {
|
|
|
15885
16061
|
children: d
|
|
15886
16062
|
});
|
|
15887
16063
|
});
|
|
15888
|
-
process.env.NODE_ENV !== "production" && (
|
|
15889
|
-
function
|
|
16064
|
+
process.env.NODE_ENV !== "production" && (ng.displayName = "AvatarRoot");
|
|
16065
|
+
function wR(e, {
|
|
15890
16066
|
referrerPolicy: t,
|
|
15891
16067
|
crossOrigin: n
|
|
15892
16068
|
}) {
|
|
@@ -15903,10 +16079,10 @@ function CR(e, {
|
|
|
15903
16079
|
};
|
|
15904
16080
|
}, [e, n, t]), r;
|
|
15905
16081
|
}
|
|
15906
|
-
const
|
|
16082
|
+
const PR = {
|
|
15907
16083
|
...zl,
|
|
15908
16084
|
...it
|
|
15909
|
-
},
|
|
16085
|
+
}, og = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15910
16086
|
const {
|
|
15911
16087
|
className: r,
|
|
15912
16088
|
render: i,
|
|
@@ -15914,7 +16090,7 @@ const wR = {
|
|
|
15914
16090
|
referrerPolicy: c,
|
|
15915
16091
|
crossOrigin: a,
|
|
15916
16092
|
...l
|
|
15917
|
-
} = t, u =
|
|
16093
|
+
} = t, u = tg(), d = wR(t.src, {
|
|
15918
16094
|
referrerPolicy: c,
|
|
15919
16095
|
crossOrigin: a
|
|
15920
16096
|
}), f = d === "loading" || d === "loaded", {
|
|
@@ -15942,16 +16118,16 @@ const wR = {
|
|
|
15942
16118
|
state: b,
|
|
15943
16119
|
ref: [n, m],
|
|
15944
16120
|
props: l,
|
|
15945
|
-
stateAttributesMapping:
|
|
16121
|
+
stateAttributesMapping: PR,
|
|
15946
16122
|
enabled: g
|
|
15947
16123
|
});
|
|
15948
16124
|
return g ? x : null;
|
|
15949
16125
|
});
|
|
15950
|
-
process.env.NODE_ENV !== "production" && (
|
|
15951
|
-
const
|
|
16126
|
+
process.env.NODE_ENV !== "production" && (og.displayName = "AvatarImage");
|
|
16127
|
+
const NR = {
|
|
15952
16128
|
...zl,
|
|
15953
16129
|
...it
|
|
15954
|
-
},
|
|
16130
|
+
}, rg = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15955
16131
|
const {
|
|
15956
16132
|
className: r,
|
|
15957
16133
|
render: i,
|
|
@@ -15959,7 +16135,7 @@ const PR = {
|
|
|
15959
16135
|
...c
|
|
15960
16136
|
} = t, {
|
|
15961
16137
|
imageLoadingStatus: a
|
|
15962
|
-
} =
|
|
16138
|
+
} = tg(), [l, u] = o.useState(s === void 0), d = st(), f = a !== "loaded" && l, {
|
|
15963
16139
|
mounted: g,
|
|
15964
16140
|
transitionStatus: h,
|
|
15965
16141
|
setMounted: p
|
|
@@ -15980,18 +16156,18 @@ const PR = {
|
|
|
15980
16156
|
state: v,
|
|
15981
16157
|
ref: [n, m],
|
|
15982
16158
|
props: c,
|
|
15983
|
-
stateAttributesMapping:
|
|
16159
|
+
stateAttributesMapping: NR,
|
|
15984
16160
|
enabled: g
|
|
15985
16161
|
});
|
|
15986
16162
|
return g ? y : null;
|
|
15987
16163
|
});
|
|
15988
|
-
process.env.NODE_ENV !== "production" && (
|
|
15989
|
-
const
|
|
16164
|
+
process.env.NODE_ENV !== "production" && (rg.displayName = "AvatarFallback");
|
|
16165
|
+
const oC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15990
16166
|
__proto__: null,
|
|
15991
|
-
Fallback:
|
|
15992
|
-
Image:
|
|
15993
|
-
Root:
|
|
15994
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16167
|
+
Fallback: rg,
|
|
16168
|
+
Image: og,
|
|
16169
|
+
Root: ng
|
|
16170
|
+
}, Symbol.toStringTag, { value: "Module" })), TR = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
15995
16171
|
const {
|
|
15996
16172
|
render: r,
|
|
15997
16173
|
className: i,
|
|
@@ -16015,185 +16191,7 @@ const nC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16015
16191
|
props: [l, u]
|
|
16016
16192
|
});
|
|
16017
16193
|
});
|
|
16018
|
-
process.env.NODE_ENV !== "production" && (
|
|
16019
|
-
const tg = {
|
|
16020
|
-
...Gm,
|
|
16021
|
-
...it
|
|
16022
|
-
}, ng = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
16023
|
-
const {
|
|
16024
|
-
render: r,
|
|
16025
|
-
className: i,
|
|
16026
|
-
defaultOpen: s = !1,
|
|
16027
|
-
disabled: c = !1,
|
|
16028
|
-
onOpenChange: a,
|
|
16029
|
-
open: l,
|
|
16030
|
-
...u
|
|
16031
|
-
} = t, d = te(a), f = Wm({
|
|
16032
|
-
open: l,
|
|
16033
|
-
defaultOpen: s,
|
|
16034
|
-
onOpenChange: d,
|
|
16035
|
-
disabled: c
|
|
16036
|
-
}), g = o.useMemo(() => ({
|
|
16037
|
-
open: f.open,
|
|
16038
|
-
disabled: f.disabled,
|
|
16039
|
-
transitionStatus: f.transitionStatus
|
|
16040
|
-
}), [f.open, f.disabled, f.transitionStatus]), h = o.useMemo(() => ({
|
|
16041
|
-
...f,
|
|
16042
|
-
onOpenChange: d,
|
|
16043
|
-
state: g
|
|
16044
|
-
}), [f, d, g]), p = re("div", t, {
|
|
16045
|
-
state: g,
|
|
16046
|
-
ref: n,
|
|
16047
|
-
props: u,
|
|
16048
|
-
stateAttributesMapping: tg
|
|
16049
|
-
});
|
|
16050
|
-
return /* @__PURE__ */ Z(fi.Provider, {
|
|
16051
|
-
value: h,
|
|
16052
|
-
children: p
|
|
16053
|
-
});
|
|
16054
|
-
});
|
|
16055
|
-
process.env.NODE_ENV !== "production" && (ng.displayName = "CollapsibleRoot");
|
|
16056
|
-
const TR = {
|
|
16057
|
-
...Ym,
|
|
16058
|
-
...it
|
|
16059
|
-
}, og = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
16060
|
-
const {
|
|
16061
|
-
panelId: r,
|
|
16062
|
-
open: i,
|
|
16063
|
-
handleTrigger: s,
|
|
16064
|
-
state: c,
|
|
16065
|
-
disabled: a
|
|
16066
|
-
} = pi(), {
|
|
16067
|
-
className: l,
|
|
16068
|
-
disabled: u = a,
|
|
16069
|
-
id: d,
|
|
16070
|
-
render: f,
|
|
16071
|
-
nativeButton: g = !0,
|
|
16072
|
-
...h
|
|
16073
|
-
} = t, {
|
|
16074
|
-
getButtonProps: p,
|
|
16075
|
-
buttonRef: m
|
|
16076
|
-
} = yt({
|
|
16077
|
-
disabled: u,
|
|
16078
|
-
focusableWhenDisabled: !0,
|
|
16079
|
-
native: g
|
|
16080
|
-
}), v = o.useMemo(() => ({
|
|
16081
|
-
"aria-controls": i ? r : void 0,
|
|
16082
|
-
"aria-expanded": i,
|
|
16083
|
-
onClick: s
|
|
16084
|
-
}), [r, i, s]);
|
|
16085
|
-
return re("button", t, {
|
|
16086
|
-
state: c,
|
|
16087
|
-
ref: [n, m],
|
|
16088
|
-
props: [v, h, p],
|
|
16089
|
-
stateAttributesMapping: TR
|
|
16090
|
-
});
|
|
16091
|
-
});
|
|
16092
|
-
process.env.NODE_ENV !== "production" && (og.displayName = "CollapsibleTrigger");
|
|
16093
|
-
let pd = /* @__PURE__ */ (function(e) {
|
|
16094
|
-
return e.collapsiblePanelHeight = "--collapsible-panel-height", e.collapsiblePanelWidth = "--collapsible-panel-width", e;
|
|
16095
|
-
})({});
|
|
16096
|
-
const rg = /* @__PURE__ */ o.forwardRef(function(t, n) {
|
|
16097
|
-
const {
|
|
16098
|
-
className: r,
|
|
16099
|
-
hiddenUntilFound: i,
|
|
16100
|
-
keepMounted: s,
|
|
16101
|
-
render: c,
|
|
16102
|
-
id: a,
|
|
16103
|
-
...l
|
|
16104
|
-
} = t;
|
|
16105
|
-
process.env.NODE_ENV !== "production" && de(() => {
|
|
16106
|
-
i && s === !1 && Ur("The `keepMounted={false}` prop on a Collapsible will be ignored when using `hiddenUntilFound` since it requires the Panel to remain mounted even when closed.");
|
|
16107
|
-
}, [i, s]);
|
|
16108
|
-
const {
|
|
16109
|
-
abortControllerRef: u,
|
|
16110
|
-
animationTypeRef: d,
|
|
16111
|
-
height: f,
|
|
16112
|
-
mounted: g,
|
|
16113
|
-
onOpenChange: h,
|
|
16114
|
-
open: p,
|
|
16115
|
-
panelId: m,
|
|
16116
|
-
panelRef: v,
|
|
16117
|
-
runOnceAnimationsFinish: y,
|
|
16118
|
-
setDimensions: b,
|
|
16119
|
-
setHiddenUntilFound: x,
|
|
16120
|
-
setKeepMounted: R,
|
|
16121
|
-
setMounted: E,
|
|
16122
|
-
setPanelIdState: S,
|
|
16123
|
-
setOpen: w,
|
|
16124
|
-
setVisible: T,
|
|
16125
|
-
state: O,
|
|
16126
|
-
transitionDimensionRef: D,
|
|
16127
|
-
visible: A,
|
|
16128
|
-
width: C,
|
|
16129
|
-
transitionStatus: P
|
|
16130
|
-
} = pi(), N = i ?? !1, I = s ?? !1;
|
|
16131
|
-
de(() => {
|
|
16132
|
-
if (a)
|
|
16133
|
-
return S(a), () => {
|
|
16134
|
-
S(void 0);
|
|
16135
|
-
};
|
|
16136
|
-
}, [a, S]), de(() => {
|
|
16137
|
-
x(N);
|
|
16138
|
-
}, [x, N]), de(() => {
|
|
16139
|
-
R(I);
|
|
16140
|
-
}, [R, I]);
|
|
16141
|
-
const {
|
|
16142
|
-
props: k
|
|
16143
|
-
} = jm({
|
|
16144
|
-
abortControllerRef: u,
|
|
16145
|
-
animationTypeRef: d,
|
|
16146
|
-
externalRef: n,
|
|
16147
|
-
height: f,
|
|
16148
|
-
hiddenUntilFound: N,
|
|
16149
|
-
id: m,
|
|
16150
|
-
keepMounted: I,
|
|
16151
|
-
mounted: g,
|
|
16152
|
-
onOpenChange: h,
|
|
16153
|
-
open: p,
|
|
16154
|
-
panelRef: v,
|
|
16155
|
-
runOnceAnimationsFinish: y,
|
|
16156
|
-
setDimensions: b,
|
|
16157
|
-
setMounted: E,
|
|
16158
|
-
setOpen: w,
|
|
16159
|
-
setVisible: T,
|
|
16160
|
-
transitionDimensionRef: D,
|
|
16161
|
-
visible: A,
|
|
16162
|
-
width: C
|
|
16163
|
-
});
|
|
16164
|
-
ht({
|
|
16165
|
-
open: p && P === "idle",
|
|
16166
|
-
ref: v,
|
|
16167
|
-
onComplete() {
|
|
16168
|
-
p && b({
|
|
16169
|
-
height: void 0,
|
|
16170
|
-
width: void 0
|
|
16171
|
-
});
|
|
16172
|
-
}
|
|
16173
|
-
});
|
|
16174
|
-
const M = o.useMemo(() => ({
|
|
16175
|
-
...O,
|
|
16176
|
-
transitionStatus: P
|
|
16177
|
-
}), [O, P]), V = re("div", t, {
|
|
16178
|
-
state: M,
|
|
16179
|
-
ref: [n, v],
|
|
16180
|
-
props: [k, {
|
|
16181
|
-
style: {
|
|
16182
|
-
[pd.collapsiblePanelHeight]: f === void 0 ? "auto" : `${f}px`,
|
|
16183
|
-
[pd.collapsiblePanelWidth]: C === void 0 ? "auto" : `${C}px`
|
|
16184
|
-
}
|
|
16185
|
-
}, l],
|
|
16186
|
-
stateAttributesMapping: tg
|
|
16187
|
-
});
|
|
16188
|
-
return I || N || !I && g ? V : null;
|
|
16189
|
-
});
|
|
16190
|
-
process.env.NODE_ENV !== "production" && (rg.displayName = "CollapsiblePanel");
|
|
16191
|
-
const oC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16192
|
-
__proto__: null,
|
|
16193
|
-
Panel: rg,
|
|
16194
|
-
Root: ng,
|
|
16195
|
-
Trigger: og
|
|
16196
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
16194
|
+
process.env.NODE_ENV !== "production" && (TR.displayName = "Button");
|
|
16197
16195
|
function IR(e) {
|
|
16198
16196
|
const [t, n] = o.useState({
|
|
16199
16197
|
getBoundingClientRect() {
|
|
@@ -22661,7 +22659,7 @@ const pC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22661
22659
|
export {
|
|
22662
22660
|
op as $,
|
|
22663
22661
|
jS as A,
|
|
22664
|
-
|
|
22662
|
+
TR as B,
|
|
22665
22663
|
xy as C,
|
|
22666
22664
|
uy as D,
|
|
22667
22665
|
qS as E,
|
|
@@ -22687,7 +22685,7 @@ export {
|
|
|
22687
22685
|
Vf as Y,
|
|
22688
22686
|
Af as Z,
|
|
22689
22687
|
_f as _,
|
|
22690
|
-
|
|
22688
|
+
nC as a,
|
|
22691
22689
|
lm as a$,
|
|
22692
22690
|
Oy as a0,
|
|
22693
22691
|
rp as a1,
|
|
@@ -22776,14 +22774,17 @@ export {
|
|
|
22776
22774
|
mR as bk,
|
|
22777
22775
|
eC as bl,
|
|
22778
22776
|
en as bm,
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22777
|
+
zm as bn,
|
|
22778
|
+
Km as bo,
|
|
22779
|
+
jm as bp,
|
|
22780
|
+
Iy as bq,
|
|
22781
|
+
ip as br,
|
|
22782
|
+
cp as bs,
|
|
22783
|
+
lp as bt,
|
|
22783
22784
|
QS as c,
|
|
22784
|
-
|
|
22785
|
+
oC as d,
|
|
22785
22786
|
US as e,
|
|
22786
|
-
|
|
22787
|
+
tC as f,
|
|
22787
22788
|
WS as g,
|
|
22788
22789
|
rC as h,
|
|
22789
22790
|
$S as i,
|
|
@@ -22805,4 +22806,4 @@ export {
|
|
|
22805
22806
|
XS as y,
|
|
22806
22807
|
fC as z
|
|
22807
22808
|
};
|
|
22808
|
-
//# sourceMappingURL=vendor-base-ui-
|
|
22809
|
+
//# sourceMappingURL=vendor-base-ui-ccr5l0ynrievzzv3.js.map
|