dawn-ui-react 1.0.0-alpha.7 → 1.0.0-alpha.8
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/{Input-BkHt7FC1.js → Input-kWMjBJ1G.js} +2 -2
- package/dist/{clamp-Bd-I2_Rk.js → clamp-adUQHSQX.js} +2 -2
- package/dist/components/popover/index.d.ts +2 -1
- package/dist/components/popover/popover-button.d.ts +2 -0
- package/dist/components/popover/popover.types.d.ts +2 -0
- package/dist/dawn-ui-react.js +133 -116
- package/dist/dawn-ui-react.umd.cjs +4 -4
- package/dist/{field-input-group-input-DnJFuMi4.js → field-input-group-input-CtDhhP9-.js} +2 -2
- package/dist/{field-input-group-BwMQAM6n.js → field-input-group-zaT2fZVE.js} +2 -2
- package/dist/{form-context-om_k3VKa.js → form-context-D_CUI37x.js} +2 -2
- package/dist/{input-group-CWH7SWRv.js → input-group-B9tCZ-1V.js} +1 -1
- package/dist/{input-group-input-DOxvfiMV.js → input-group-input-DJJYMhiE.js} +1 -1
- package/dist/{input.types-BeeCYL9x.js → input.types-Cv68_8o4.js} +1 -1
- package/dist/{useLabelableId-B_P81Wgy.js → useLabelableId-Cu8szM6L.js} +1 -1
- package/package.json +1 -1
package/dist/dawn-ui-react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as e, B as t, F as n, G as r, H as i, I as a, J as o, K as s, M as c, N as l, O as u, Q as d, T as f, U as p, V as m, W as h, X as g, Y as _, Z as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as ee, x as B, y as V } from "./form-context-
|
|
2
|
-
import { A as te, B as ne, C as H, D as U, E as re, F as W, G, H as ie, K as ae, M as oe, N as se, O as ce, P as le, R as ue, S as de, T as fe, U as pe, V as me, W as he, _ as ge, a as _e, b as ve, c as ye, d as be, f as xe, g as Se, h as Ce, i as we, j as Te, k as Ee, l as De, m as Oe, n as ke, o as Ae, p as K, r as je, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./useLabelableId-
|
|
3
|
-
import { $ as Be, $t as Ve, A as He, At as Ue, B as We, Bt as Ge, C as Ke, Ct as qe, D as Je, Dt as Ye, E as Xe, Et as Ze, F as Qe, Ft as $e, G as et, Gt as tt, H as nt, Ht as rt, I as it, It as at, J as ot, Jt as st, K as ct, Kt as lt, L as ut, Lt as dt, M as ft, Mt as pt, N as mt, Nt as ht, O as gt, Ot as _t, P as vt, Pt as yt, Q as bt, Qt as xt, R as St, Rt as Ct, S as q, St as wt, T as J, Tt, U as Et, Ut as Dt, V as Ot, Vt as kt, W as At, Wt as jt, X as Mt, Xt as Nt, Y as Pt, Yt as Ft, Z as It, Zt as Lt, _ as Rt, _t as zt, a as Bt, an as Vt, at as Ht, b as Ut, bt as Wt, c as Gt, cn as Kt, ct as qt, d as Jt, dn as Yt, dt as Xt, en as Zt, et as Qt, f as $t, fn as en, ft as tn, g as nn, gn as rn, gt as an, h as on, hn as sn, ht as cn, i as ln, in as un, it as dn, j as fn, jt as pn, k as mn, kt as hn, l as gn, ln as _n, lt as vn, m as yn, mn as bn, mt as xn, n as Sn, nn as Cn, nt as wn, o as Tn, on as En, ot as Dn, p as On, pn as kn, pt as An, q as jn, qt as Mn, r as Nn, rn as Pn, rt as Fn, s as In, sn as Ln, st as Rn, t as zn, tn as Bn, tt as Vn, u as Hn, un as Un, ut as Wn, v as Gn, vt as Kn, w as qn, wt as Jn, x as Yn, xt as Xn, y as Zn, yt as Qn, z as $n, zt as er } from "./clamp-
|
|
1
|
+
import { $ as e, B as t, F as n, G as r, H as i, I as a, J as o, K as s, M as c, N as l, O as u, Q as d, T as f, U as p, V as m, W as h, X as g, Y as _, Z as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, q as F, r as I, s as L, t as R, u as z, v as ee, x as B, y as V } from "./form-context-D_CUI37x.js";
|
|
2
|
+
import { A as te, B as ne, C as H, D as U, E as re, F as W, G, H as ie, K as ae, M as oe, N as se, O as ce, P as le, R as ue, S as de, T as fe, U as pe, V as me, W as he, _ as ge, a as _e, b as ve, c as ye, d as be, f as xe, g as Se, h as Ce, i as we, j as Te, k as Ee, l as De, m as Oe, n as ke, o as Ae, p as K, r as je, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./useLabelableId-Cu8szM6L.js";
|
|
3
|
+
import { $ as Be, $t as Ve, A as He, At as Ue, B as We, Bt as Ge, C as Ke, Ct as qe, D as Je, Dt as Ye, E as Xe, Et as Ze, F as Qe, Ft as $e, G as et, Gt as tt, H as nt, Ht as rt, I as it, It as at, J as ot, Jt as st, K as ct, Kt as lt, L as ut, Lt as dt, M as ft, Mt as pt, N as mt, Nt as ht, O as gt, Ot as _t, P as vt, Pt as yt, Q as bt, Qt as xt, R as St, Rt as Ct, S as q, St as wt, T as J, Tt, U as Et, Ut as Dt, V as Ot, Vt as kt, W as At, Wt as jt, X as Mt, Xt as Nt, Y as Pt, Yt as Ft, Z as It, Zt as Lt, _ as Rt, _t as zt, a as Bt, an as Vt, at as Ht, b as Ut, bt as Wt, c as Gt, cn as Kt, ct as qt, d as Jt, dn as Yt, dt as Xt, en as Zt, et as Qt, f as $t, fn as en, ft as tn, g as nn, gn as rn, gt as an, h as on, hn as sn, ht as cn, i as ln, in as un, it as dn, j as fn, jt as pn, k as mn, kt as hn, l as gn, ln as _n, lt as vn, m as yn, mn as bn, mt as xn, n as Sn, nn as Cn, nt as wn, o as Tn, on as En, ot as Dn, p as On, pn as kn, pt as An, q as jn, qt as Mn, r as Nn, rn as Pn, rt as Fn, s as In, sn as Ln, st as Rn, t as zn, tn as Bn, tt as Vn, u as Hn, un as Un, ut as Wn, v as Gn, vt as Kn, w as qn, wt as Jn, x as Yn, xt as Xn, y as Zn, yt as Qn, z as $n, zt as er } from "./clamp-adUQHSQX.js";
|
|
4
4
|
import { t as Y } from "./cn-DWnOBdrm.js";
|
|
5
|
-
import { t as tr } from "./Input-
|
|
6
|
-
import { t as nr } from "./input.types-
|
|
7
|
-
import { t as rr } from "./input-group-
|
|
8
|
-
import { t as ir } from "./input-group-input-
|
|
5
|
+
import { t as tr } from "./Input-kWMjBJ1G.js";
|
|
6
|
+
import { t as nr } from "./input.types-Cv68_8o4.js";
|
|
7
|
+
import { t as rr } from "./input-group-B9tCZ-1V.js";
|
|
8
|
+
import { t as ir } from "./input-group-input-DJJYMhiE.js";
|
|
9
9
|
import * as X from "react";
|
|
10
10
|
import ar, { createContext as or, createElement as sr, forwardRef as cr, memo as lr, startTransition as ur, useCallback as dr, useContext as fr, useEffect as pr, useId as mr, useImperativeHandle as hr, useInsertionEffect as gr, useLayoutEffect as _r, useMemo as vr, useRef as yr, useState as br } from "react";
|
|
11
11
|
import { Fragment as xr, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
@@ -15876,7 +15876,7 @@ var G_ = ({ children: e, ...t }) => /* @__PURE__ */ Z(_o, {
|
|
|
15876
15876
|
ref: n,
|
|
15877
15877
|
...r,
|
|
15878
15878
|
render: () => /* @__PURE__ */ Z(xr, { children: t })
|
|
15879
|
-
}), vv = y("group/avatar relative inline-flex items-center justify-center rounded-full", {
|
|
15879
|
+
}), vv = y("group/avatar relative inline-flex shrink-0 items-center justify-center rounded-full", {
|
|
15880
15880
|
variants: { size: {
|
|
15881
15881
|
small: "size-lg style-text-default--1",
|
|
15882
15882
|
medium: "size-xl style-text-default-0",
|
|
@@ -17171,7 +17171,10 @@ var Dy = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
17171
17171
|
children: t
|
|
17172
17172
|
}), gb = ({ children: e, ...t }) => /* @__PURE__ */ Q(Mu, {
|
|
17173
17173
|
...t,
|
|
17174
|
-
children: [/* @__PURE__ */ Z(vu, {}), /* @__PURE__ */ Z(gu, {
|
|
17174
|
+
children: [/* @__PURE__ */ Z(vu, {}), /* @__PURE__ */ Z(gu, {
|
|
17175
|
+
className: "size-full",
|
|
17176
|
+
children: e
|
|
17177
|
+
})]
|
|
17175
17178
|
}), _b = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z(rd, {
|
|
17176
17179
|
className: Y("", e),
|
|
17177
17180
|
ref: n,
|
|
@@ -17402,7 +17405,7 @@ var Dy = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
17402
17405
|
...r,
|
|
17403
17406
|
children: t
|
|
17404
17407
|
}), Bb = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z(sh, { children: /* @__PURE__ */ Z(ph, {
|
|
17405
|
-
className: Y("z-
|
|
17408
|
+
className: Y("z-99 outline-none select-none", e),
|
|
17406
17409
|
ref: n,
|
|
17407
17410
|
...r,
|
|
17408
17411
|
children: /* @__PURE__ */ Q(hh, {
|
|
@@ -17453,7 +17456,7 @@ var Dy = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
17453
17456
|
children: r
|
|
17454
17457
|
}), Ub = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z(ih, {
|
|
17455
17458
|
"data-value": !0,
|
|
17456
|
-
className: Y("flex items-center justify-start data-placeholder:opacity-70", e),
|
|
17459
|
+
className: Y("flex items-center justify-start gap-2xs data-placeholder:opacity-70", e),
|
|
17457
17460
|
ref: n,
|
|
17458
17461
|
...r,
|
|
17459
17462
|
children: t
|
|
@@ -17620,7 +17623,7 @@ var Dy = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
17620
17623
|
tone: {
|
|
17621
17624
|
brand: "hover:not-disabled:bg-brand-container hover:not-disabled:text-brand-on-container data-pressed:text-brand-default",
|
|
17622
17625
|
accent: "hover:not-disabled:bg-accent-container hover:not-disabled:text-accent-on-container data-pressed:text-accent-default",
|
|
17623
|
-
neutral: "hover:not-disabled:bg-
|
|
17626
|
+
neutral: "hover:not-disabled:bg-surface-low hover:not-disabled:text-neutral-on-container data-pressed:text-neutral-default",
|
|
17624
17627
|
error: "hover:not-disabled:bg-error-container hover:not-disabled:text-error-on-container data-pressed:text-error-default",
|
|
17625
17628
|
info: "hover:not-disabled:bg-info-container hover:not-disabled:text-info-on-container data-pressed:text-info-default",
|
|
17626
17629
|
success: "hover:not-disabled:bg-success-container hover:not-disabled:text-success-on-container data-pressed:text-success-default",
|
|
@@ -22024,32 +22027,46 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22024
22027
|
ref: n,
|
|
22025
22028
|
...r,
|
|
22026
22029
|
children: t
|
|
22027
|
-
}), oN =
|
|
22030
|
+
}), oN = ({ variant: e, tone: t, className: n, children: r, ref: i, ...a }) => e === "ghost" && t === "neutral" ? /* @__PURE__ */ Z(P, {
|
|
22031
|
+
variant: e,
|
|
22032
|
+
tone: t,
|
|
22033
|
+
className: Y("hover:bg-neutral-container-high!", n),
|
|
22034
|
+
ref: i,
|
|
22035
|
+
...a,
|
|
22036
|
+
children: r
|
|
22037
|
+
}) : /* @__PURE__ */ Z(P, {
|
|
22038
|
+
variant: e,
|
|
22039
|
+
tone: t,
|
|
22040
|
+
className: Y("", n),
|
|
22041
|
+
ref: i,
|
|
22042
|
+
...a,
|
|
22043
|
+
children: r
|
|
22044
|
+
}), sN = im(), cN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22028
22045
|
className: Y("flex w-full items-center gap-sm rounded-full", e),
|
|
22029
22046
|
ref: n,
|
|
22030
22047
|
...r,
|
|
22031
22048
|
children: t
|
|
22032
|
-
}),
|
|
22049
|
+
}), lN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("span", {
|
|
22033
22050
|
className: Y("flex items-center gap-xs style-text-default-0 [&>svg]:size-md", e),
|
|
22034
22051
|
ref: n,
|
|
22035
22052
|
...r,
|
|
22036
22053
|
children: t
|
|
22037
|
-
}),
|
|
22054
|
+
}), uN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("span", {
|
|
22038
22055
|
className: Y("style-text-default--2 text-on-surface-variant", e),
|
|
22039
22056
|
ref: n,
|
|
22040
22057
|
...r,
|
|
22041
22058
|
children: t
|
|
22042
|
-
}),
|
|
22059
|
+
}), dN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22043
22060
|
className: Y("ml-auto text-on-surface-variant [&>svg]:size-sm", e),
|
|
22044
22061
|
ref: n,
|
|
22045
22062
|
...r,
|
|
22046
22063
|
children: t
|
|
22047
|
-
}),
|
|
22064
|
+
}), fN = ({ compact: e, className: t, children: n, ref: r, ...i }) => /* @__PURE__ */ Z("div", {
|
|
22048
22065
|
className: Y("flex flex-col items-start justify-start gap-3xs", e && "hidden", t),
|
|
22049
22066
|
ref: r,
|
|
22050
22067
|
...i,
|
|
22051
22068
|
children: n
|
|
22052
|
-
}),
|
|
22069
|
+
}), pN = ({ currentIndex: e, className: t, children: n, ref: r, ...i }) => {
|
|
22053
22070
|
let a = `progress-${mr().replace(/:/g, "")}`, o = e;
|
|
22054
22071
|
return /* @__PURE__ */ Q(xr, { children: [/* @__PURE__ */ Z("style", { children: `
|
|
22055
22072
|
.${a} > :nth-child(${o}) [data-slot='progress-indicator'] {
|
|
@@ -22072,7 +22089,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22072
22089
|
...i,
|
|
22073
22090
|
children: n
|
|
22074
22091
|
})] });
|
|
22075
|
-
},
|
|
22092
|
+
}, mN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22076
22093
|
className: "w-full",
|
|
22077
22094
|
children: /* @__PURE__ */ Z("div", {
|
|
22078
22095
|
className: Y("h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out", e),
|
|
@@ -22081,7 +22098,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22081
22098
|
...r,
|
|
22082
22099
|
children: t
|
|
22083
22100
|
})
|
|
22084
|
-
}),
|
|
22101
|
+
}), hN = ({ title: e, description: t, className: n, children: r, ref: i, ...a }) => /* @__PURE__ */ Q("div", {
|
|
22085
22102
|
className: "relative",
|
|
22086
22103
|
children: [/* @__PURE__ */ Z("div", {
|
|
22087
22104
|
className: Y("flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center style-text-default--2 text-accent-default transition-colors ease-in-out [&>svg]:size-xs", n),
|
|
@@ -22099,7 +22116,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22099
22116
|
children: t
|
|
22100
22117
|
})]
|
|
22101
22118
|
})]
|
|
22102
|
-
}),
|
|
22119
|
+
}), gN = y("absolute top-[0px] right-[0px] flex", {
|
|
22103
22120
|
variants: {
|
|
22104
22121
|
tone: {
|
|
22105
22122
|
brand: "[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default",
|
|
@@ -22120,8 +22137,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22120
22137
|
tone: "brand",
|
|
22121
22138
|
size: "medium"
|
|
22122
22139
|
}
|
|
22123
|
-
}),
|
|
22124
|
-
className: Y(
|
|
22140
|
+
}), _N = ({ hidePing: e = !1, tone: t = "brand", size: n = "medium", className: r, children: i, ref: a, ...o }) => /* @__PURE__ */ Q("div", {
|
|
22141
|
+
className: Y(gN({
|
|
22125
22142
|
tone: t,
|
|
22126
22143
|
size: n,
|
|
22127
22144
|
className: r
|
|
@@ -22136,20 +22153,20 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22136
22153
|
"data-dot": !0,
|
|
22137
22154
|
children: i
|
|
22138
22155
|
})]
|
|
22139
|
-
}),
|
|
22156
|
+
}), vN = ({ withHandle: e = !1, className: t, ...n }) => /* @__PURE__ */ Z(Tr.Separator, {
|
|
22140
22157
|
className: Y("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", t),
|
|
22141
22158
|
"data-slot": "resizable-handle",
|
|
22142
22159
|
...n,
|
|
22143
22160
|
children: e && /* @__PURE__ */ Z("div", { className: "z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border" })
|
|
22144
|
-
}),
|
|
22161
|
+
}), yN = ({ className: e, ...t }) => /* @__PURE__ */ Z(Tr.Panel, {
|
|
22145
22162
|
className: Y("", e),
|
|
22146
22163
|
"data-slot": "resizable-panel",
|
|
22147
22164
|
...t
|
|
22148
|
-
}),
|
|
22165
|
+
}), bN = ({ className: e, ...t }) => /* @__PURE__ */ Z(Tr.Group, {
|
|
22149
22166
|
className: Y("flex h-full aria-[orientation=vertical]:flex-col", e),
|
|
22150
22167
|
"data-slot": "resizable-panel-group",
|
|
22151
22168
|
...t
|
|
22152
|
-
}),
|
|
22169
|
+
}), xN = ({ orientation: e = "vertical", defaultHeight: t = 200, className: n, children: r, ref: i, ...a }) => /* @__PURE__ */ Q(km, {
|
|
22153
22170
|
className: Y(n, "overflow-hidden rounded-xl bg-surface-low", e === "horizontal" && "h-full"),
|
|
22154
22171
|
ref: i,
|
|
22155
22172
|
style: { height: e === "vertical" ? `${t}px` : "100%" },
|
|
@@ -22166,7 +22183,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22166
22183
|
}),
|
|
22167
22184
|
/* @__PURE__ */ Z(Gm, {})
|
|
22168
22185
|
]
|
|
22169
|
-
}),
|
|
22186
|
+
}), SN = ar.createContext(null), CN = ({ defaultOpen: e = !0, side: t = "left", collapsible: n = "icon", className: r, children: i, ref: a, ...o }) => {
|
|
22170
22187
|
let [s, c] = ar.useState(e), [l, u] = ar.useState(!1);
|
|
22171
22188
|
return ar.useEffect(() => {
|
|
22172
22189
|
let t = () => {
|
|
@@ -22174,7 +22191,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22174
22191
|
u(t), t && e && n !== "none" && c(!1);
|
|
22175
22192
|
};
|
|
22176
22193
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
22177
|
-
}, [e, n]), /* @__PURE__ */ Z(
|
|
22194
|
+
}, [e, n]), /* @__PURE__ */ Z(SN.Provider, {
|
|
22178
22195
|
value: {
|
|
22179
22196
|
defaultOpen: e,
|
|
22180
22197
|
open: s,
|
|
@@ -22192,12 +22209,12 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22192
22209
|
children: i
|
|
22193
22210
|
})
|
|
22194
22211
|
});
|
|
22195
|
-
},
|
|
22196
|
-
let e = ar.useContext(
|
|
22212
|
+
}, wN = () => {
|
|
22213
|
+
let e = ar.useContext(SN);
|
|
22197
22214
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider");
|
|
22198
22215
|
return e;
|
|
22199
|
-
},
|
|
22200
|
-
let { open: a, setOpen: o, isMobile: s, collapsible: c, side: l } =
|
|
22216
|
+
}, TN = ({ tone: e = "default", width: t = 400, className: n, children: r, ...i }) => {
|
|
22217
|
+
let { open: a, setOpen: o, isMobile: s, collapsible: c, side: l } = wN(), u = ar.useRef(null);
|
|
22201
22218
|
return ar.useEffect(() => {
|
|
22202
22219
|
let e = (e) => {
|
|
22203
22220
|
u.current && !u.current.contains(e.target) && s && a && o && o(!1);
|
|
@@ -22216,8 +22233,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22216
22233
|
...i,
|
|
22217
22234
|
children: r
|
|
22218
22235
|
});
|
|
22219
|
-
},
|
|
22220
|
-
let { trigger: i, collapsible: a } =
|
|
22236
|
+
}, EN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22237
|
+
let { trigger: i, collapsible: a } = wN();
|
|
22221
22238
|
return a === "none" ? null : /* @__PURE__ */ Q(P, {
|
|
22222
22239
|
className: Y("shrink-0 border-none", e),
|
|
22223
22240
|
ref: n,
|
|
@@ -22229,45 +22246,45 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22229
22246
|
...r,
|
|
22230
22247
|
children: [t, /* @__PURE__ */ Z(xy, { weight: "bold" })]
|
|
22231
22248
|
});
|
|
22232
|
-
},
|
|
22233
|
-
let { open: i } =
|
|
22249
|
+
}, DN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22250
|
+
let { open: i } = wN();
|
|
22234
22251
|
return /* @__PURE__ */ Z(km, {
|
|
22235
22252
|
className: Y("mb-auto min-h-0 flex-1 overflow-hidden rounded-xl transition-all duration-300 ease-in-out", i ? "" : "w-fit self-center", e),
|
|
22236
22253
|
ref: n,
|
|
22237
22254
|
...r,
|
|
22238
22255
|
children: /* @__PURE__ */ Q(Lm, {
|
|
22239
22256
|
className: Y("flex h-full scrollbar-none flex-col items-center divide-y divide-border overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden", "before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow/35 before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[\"\"] before:[--scroll-area-overflow-y-start:inherit]", "after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow/35 after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[\"\"] after:[--scroll-area-overflow-y-end:inherit]", i ? "gap-md" : "gap-xs px-3xs pt-3xs"),
|
|
22240
|
-
children: [!i && /* @__PURE__ */ Z(
|
|
22257
|
+
children: [!i && /* @__PURE__ */ Z(EN, {}), t]
|
|
22241
22258
|
})
|
|
22242
22259
|
});
|
|
22243
|
-
},
|
|
22244
|
-
let { open: i, collapsible: a } =
|
|
22260
|
+
}, ON = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22261
|
+
let { open: i, collapsible: a } = wN(), o = a === "none" || i;
|
|
22245
22262
|
return /* @__PURE__ */ Z("div", {
|
|
22246
|
-
className: Y("flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out", i ? "justify-start fade-in-0" : "justify-center fade-out-0", e),
|
|
22263
|
+
className: Y("flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out", i ? "justify-start fade-in-0" : "justify-center self-center fade-out-0", e),
|
|
22247
22264
|
ref: n,
|
|
22248
22265
|
...r,
|
|
22249
22266
|
children: typeof t == "function" ? t(o) : t
|
|
22250
22267
|
});
|
|
22251
|
-
},
|
|
22268
|
+
}, kN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22252
22269
|
className: Y("flex w-full flex-col items-start gap-3xs not-last-of-type:pb-md", e),
|
|
22253
22270
|
ref: n,
|
|
22254
22271
|
...r,
|
|
22255
22272
|
children: t
|
|
22256
|
-
}),
|
|
22273
|
+
}), AN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22257
22274
|
className: Y("flex w-full flex-col gap-3xs", e),
|
|
22258
22275
|
ref: n,
|
|
22259
22276
|
...r,
|
|
22260
22277
|
children: t
|
|
22261
|
-
}),
|
|
22262
|
-
let { open: i, collapsible: a } =
|
|
22278
|
+
}), jN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22279
|
+
let { open: i, collapsible: a } = wN();
|
|
22263
22280
|
return a === "none" || i ? /* @__PURE__ */ Z("span", {
|
|
22264
22281
|
className: Y("inline-flex h-md w-full items-center justify-between truncate pr-3xs pl-sm style-text-default--1 text-on-surface-variant transition-all duration-200 ease-out", a !== "none" && i && "animate-in fade-in-0 slide-in-from-left-2", e),
|
|
22265
22282
|
ref: n,
|
|
22266
22283
|
...r,
|
|
22267
22284
|
children: t
|
|
22268
22285
|
}) : null;
|
|
22269
|
-
},
|
|
22270
|
-
let { open: i, collapsible: a } =
|
|
22286
|
+
}, MN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22287
|
+
let { open: i, collapsible: a } = wN(), o = a === "none" || i;
|
|
22271
22288
|
return /* @__PURE__ */ Q("div", {
|
|
22272
22289
|
className: Y("flex shrink-0 items-center justify-between truncate style-text-strong-1 transition-all duration-300 ease-in-out", i ? "h-2xl pr-3xs pl-xs" : "self-center", e),
|
|
22273
22290
|
ref: n,
|
|
@@ -22275,39 +22292,39 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22275
22292
|
children: [/* @__PURE__ */ Z("div", {
|
|
22276
22293
|
className: Y("flex items-center justify-center gap-xs transition-all duration-200 ease-out", i && "justify-start", a !== "none" && "animate-in", o ? "fade-in-0" : "fade-out-0"),
|
|
22277
22294
|
children: typeof t == "function" ? t(o) : t
|
|
22278
|
-
}), i && /* @__PURE__ */ Z(
|
|
22295
|
+
}), i && /* @__PURE__ */ Z(EN, {})]
|
|
22279
22296
|
});
|
|
22280
|
-
},
|
|
22297
|
+
}, NN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22281
22298
|
className: Y("flex w-full flex-col items-start gap-3xs p-3xs", e),
|
|
22282
22299
|
ref: n,
|
|
22283
22300
|
...r,
|
|
22284
22301
|
children: t
|
|
22285
|
-
}),
|
|
22286
|
-
let { open: i } =
|
|
22302
|
+
}), PN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22303
|
+
let { open: i } = wN();
|
|
22287
22304
|
return /* @__PURE__ */ Z(Tv, {
|
|
22288
22305
|
className: Y(!i && "hidden", e),
|
|
22289
22306
|
ref: n,
|
|
22290
22307
|
...r,
|
|
22291
22308
|
children: t
|
|
22292
22309
|
});
|
|
22293
|
-
},
|
|
22294
|
-
let { open: a, collapsible: o } =
|
|
22310
|
+
}, FN = ({ isActive: e, className: t, children: n, ref: r, ...i }) => {
|
|
22311
|
+
let { open: a, collapsible: o } = wN();
|
|
22295
22312
|
return /* @__PURE__ */ Z("button", {
|
|
22296
22313
|
className: Y("inline-flex cursor-pointer items-center gap-2xs rounded-full border border-transparent style-text-default-0 whitespace-nowrap transition-all duration-200 ease-out select-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0", e ? "pointer-events-none bg-surface text-on-surface shadow-2xs" : "text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container", !(o === "none" || a) && "mx-auto", a ? "h-xl w-full pl-sm" : "size-xl justify-center *:hidden [&>svg]:block", o !== "none" && a && "animate-in fade-in-0 slide-in-from-left-2", t),
|
|
22297
22314
|
ref: r,
|
|
22298
22315
|
...i,
|
|
22299
22316
|
children: n
|
|
22300
22317
|
});
|
|
22301
|
-
},
|
|
22302
|
-
let { open: i } =
|
|
22318
|
+
}, IN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22319
|
+
let { open: i } = wN();
|
|
22303
22320
|
return i ? /* @__PURE__ */ Z(zy, {
|
|
22304
22321
|
className: Y("", e),
|
|
22305
22322
|
ref: n,
|
|
22306
22323
|
...r,
|
|
22307
22324
|
children: t
|
|
22308
22325
|
}) : /* @__PURE__ */ Z($M, { children: t });
|
|
22309
|
-
},
|
|
22310
|
-
let { open: i } =
|
|
22326
|
+
}, LN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22327
|
+
let { open: i } = wN();
|
|
22311
22328
|
return i ? /* @__PURE__ */ Z(Ly, {
|
|
22312
22329
|
className: Y("", e),
|
|
22313
22330
|
ref: n,
|
|
@@ -22321,8 +22338,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22321
22338
|
children: t
|
|
22322
22339
|
})
|
|
22323
22340
|
});
|
|
22324
|
-
},
|
|
22325
|
-
let { open: i } =
|
|
22341
|
+
}, RN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22342
|
+
let { open: i } = wN();
|
|
22326
22343
|
return i ? /* @__PURE__ */ Z(Ry, {
|
|
22327
22344
|
className: Y("gap-2xs! whitespace-nowrap shadow-none! transition-all duration-200 ease-out select-none hover:bg-neutral-container hover:text-neutral-on-container data-panel-open:bg-neutral-container! [&>svg]:shrink-0!", e),
|
|
22328
22345
|
ref: n,
|
|
@@ -22335,19 +22352,19 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22335
22352
|
className: "absolute right-2xs size-xs text-on-surface-variant"
|
|
22336
22353
|
})]
|
|
22337
22354
|
}) });
|
|
22338
|
-
},
|
|
22355
|
+
}, zN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22339
22356
|
className: Y("flex h-xl w-full items-center justify-between gap-2xs", e),
|
|
22340
22357
|
ref: n,
|
|
22341
22358
|
...r,
|
|
22342
22359
|
children: t
|
|
22343
|
-
}),
|
|
22360
|
+
}), BN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
22344
22361
|
className: Y("animate-pulse rounded-lg bg-surface-2 shadow-sm", e),
|
|
22345
22362
|
ref: n,
|
|
22346
22363
|
...r,
|
|
22347
22364
|
children: t
|
|
22348
|
-
}),
|
|
22365
|
+
}), VN = X.createContext(null), HN = ({ defaultView: e = "list", table: t, className: n, children: r, ref: i, ...a }) => {
|
|
22349
22366
|
let [o, s] = X.useState(e);
|
|
22350
|
-
return /* @__PURE__ */ Z(
|
|
22367
|
+
return /* @__PURE__ */ Z(VN.Provider, {
|
|
22351
22368
|
value: {
|
|
22352
22369
|
view: o,
|
|
22353
22370
|
setView: s,
|
|
@@ -22362,25 +22379,25 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22362
22379
|
children: r
|
|
22363
22380
|
})
|
|
22364
22381
|
});
|
|
22365
|
-
},
|
|
22366
|
-
let e = X.useContext(
|
|
22382
|
+
}, UN = () => {
|
|
22383
|
+
let e = X.useContext(VN);
|
|
22367
22384
|
if (!e) throw Error("useTable must be used within a TableProvider");
|
|
22368
22385
|
return e;
|
|
22369
|
-
},
|
|
22370
|
-
let { view: o, table: s } =
|
|
22386
|
+
}, WN = ({ rowGridOverride: e, rowListOverride: t, className: n, children: r, ref: i, ...a }) => {
|
|
22387
|
+
let { view: o, table: s } = UN(), c = s.getRowModel().rows;
|
|
22371
22388
|
return /* @__PURE__ */ Z("tbody", {
|
|
22372
22389
|
className: Y("divide-y divide-border", o === "grid" && "grid grid-cols-5 gap-sm", n),
|
|
22373
22390
|
ref: i,
|
|
22374
22391
|
...a,
|
|
22375
|
-
children: c.map((n) => r ? r(n) : o === "grid" ? Z(e ||
|
|
22392
|
+
children: c.map((n) => r ? r(n) : o === "grid" ? Z(e || eP, { row: n }, n.id) : o === "list" ? Z(t || tP, { row: n }, n.id) : null)
|
|
22376
22393
|
});
|
|
22377
|
-
},
|
|
22394
|
+
}, GN = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(P, {
|
|
22378
22395
|
className: Y("", e),
|
|
22379
22396
|
ref: n,
|
|
22380
22397
|
...r,
|
|
22381
22398
|
children: [t, /* @__PURE__ */ Z(hy, { weight: "bold" })]
|
|
22382
|
-
}),
|
|
22383
|
-
let { table: i } =
|
|
22399
|
+
}), KN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22400
|
+
let { table: i } = UN();
|
|
22384
22401
|
return /* @__PURE__ */ Q(P, {
|
|
22385
22402
|
className: Y("shrink-0", e),
|
|
22386
22403
|
disabled: !i.getCanPreviousPage(),
|
|
@@ -22394,8 +22411,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22394
22411
|
...r,
|
|
22395
22412
|
children: [t, /* @__PURE__ */ Z(iy, { weight: "bold" })]
|
|
22396
22413
|
});
|
|
22397
|
-
},
|
|
22398
|
-
let { table: i } =
|
|
22414
|
+
}, qN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22415
|
+
let { table: i } = UN();
|
|
22399
22416
|
return /* @__PURE__ */ Q("tfoot", {
|
|
22400
22417
|
className: Y("", e),
|
|
22401
22418
|
ref: n,
|
|
@@ -22405,8 +22422,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22405
22422
|
children: e.isPlaceholder ? null : mM(e.column.columnDef.footer, e.getContext())
|
|
22406
22423
|
}, e.id)) }, e.id))]
|
|
22407
22424
|
});
|
|
22408
|
-
},
|
|
22409
|
-
let { table: i } =
|
|
22425
|
+
}, JN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22426
|
+
let { table: i } = UN();
|
|
22410
22427
|
return /* @__PURE__ */ Q("thead", {
|
|
22411
22428
|
className: Y(""),
|
|
22412
22429
|
ref: n,
|
|
@@ -22432,8 +22449,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22432
22449
|
}, t.id))
|
|
22433
22450
|
}, t.id))]
|
|
22434
22451
|
});
|
|
22435
|
-
},
|
|
22436
|
-
let { table: i } =
|
|
22452
|
+
}, YN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22453
|
+
let { table: i } = UN();
|
|
22437
22454
|
return /* @__PURE__ */ Q(P, {
|
|
22438
22455
|
className: Y("shrink-0", e),
|
|
22439
22456
|
disabled: !i.getCanNextPage(),
|
|
@@ -22447,8 +22464,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22447
22464
|
...r,
|
|
22448
22465
|
children: [t, /* @__PURE__ */ Z(ay, { weight: "bold" })]
|
|
22449
22466
|
});
|
|
22450
|
-
},
|
|
22451
|
-
let { table: i } =
|
|
22467
|
+
}, XN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22468
|
+
let { table: i } = UN();
|
|
22452
22469
|
return /* @__PURE__ */ Q(P, {
|
|
22453
22470
|
className: Y("shrink-0", e),
|
|
22454
22471
|
disabled: !i.getCanNextPage(),
|
|
@@ -22462,8 +22479,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22462
22479
|
...r,
|
|
22463
22480
|
children: [t, /* @__PURE__ */ Z(oy, { weight: "bold" })]
|
|
22464
22481
|
});
|
|
22465
|
-
},
|
|
22466
|
-
let { table: i } =
|
|
22482
|
+
}, ZN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22483
|
+
let { table: i } = UN();
|
|
22467
22484
|
return /* @__PURE__ */ Q(P, {
|
|
22468
22485
|
className: Y("shrink-0", e),
|
|
22469
22486
|
disabled: !i.getCanPreviousPage(),
|
|
@@ -22477,7 +22494,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22477
22494
|
...r,
|
|
22478
22495
|
children: [t, /* @__PURE__ */ Z(ry, { weight: "bold" })]
|
|
22479
22496
|
});
|
|
22480
|
-
},
|
|
22497
|
+
}, QN = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22481
22498
|
let i = X.useReducer(() => ({}), {})[1];
|
|
22482
22499
|
return /* @__PURE__ */ Q(P, {
|
|
22483
22500
|
className: Y("", e),
|
|
@@ -22489,15 +22506,15 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22489
22506
|
...r,
|
|
22490
22507
|
children: [t, /* @__PURE__ */ Z(ey, { weight: "bold" })]
|
|
22491
22508
|
});
|
|
22492
|
-
},
|
|
22493
|
-
let { table: t } =
|
|
22509
|
+
}, $N = ({ children: e }) => {
|
|
22510
|
+
let { table: t } = UN(), n = t.getState().pagination.pageIndex, r = t.getState().pagination.pageSize, i = t.getFilteredRowModel().rows.length, a = i === 0 ? 0 : n * r + 1;
|
|
22494
22511
|
return e(a, i === 0 ? 0 : Math.min(a + r - 1, i), i);
|
|
22495
|
-
},
|
|
22512
|
+
}, eP = ({ row: e, className: t, children: n, ref: r, ...i }) => /* @__PURE__ */ Z("tr", {
|
|
22496
22513
|
className: Y("aspect-video min-h-2xl rounded-md bg-neutral-container p-xs", t),
|
|
22497
22514
|
ref: r,
|
|
22498
22515
|
...i,
|
|
22499
22516
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ Q("td", { children: [n, mM(e.column.columnDef.cell, e.getContext())] }, e.id))
|
|
22500
|
-
}),
|
|
22517
|
+
}), tP = ({ row: e, className: t, children: n, ref: r, ...i }) => /* @__PURE__ */ Z("tr", {
|
|
22501
22518
|
className: Y("", t),
|
|
22502
22519
|
ref: r,
|
|
22503
22520
|
...i,
|
|
@@ -22510,8 +22527,8 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22510
22527
|
},
|
|
22511
22528
|
children: [n, mM(e.column.columnDef.cell, e.getContext())]
|
|
22512
22529
|
}, e.id))
|
|
22513
|
-
}),
|
|
22514
|
-
let { table: i } =
|
|
22530
|
+
}), nP = ({ className: e, children: t, ref: n, ...r }) => {
|
|
22531
|
+
let { table: i } = UN();
|
|
22515
22532
|
return /* @__PURE__ */ Z(Db, {
|
|
22516
22533
|
className: Y("", e),
|
|
22517
22534
|
onChange: (e) => {
|
|
@@ -22523,15 +22540,15 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22523
22540
|
...r,
|
|
22524
22541
|
children: t
|
|
22525
22542
|
});
|
|
22526
|
-
},
|
|
22543
|
+
}, rP = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(P, {
|
|
22527
22544
|
className: Y("", e),
|
|
22528
22545
|
ref: n,
|
|
22529
22546
|
...r,
|
|
22530
22547
|
children: [t, /* @__PURE__ */ Z(ty, { weight: "bold" })]
|
|
22531
|
-
}),
|
|
22548
|
+
}), iP = y("", {
|
|
22532
22549
|
variants: {
|
|
22533
22550
|
variant: {
|
|
22534
|
-
default: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-lg [&_[role=presentation]]:bg-brand-default [&_[role=tab]]:h-lg [&_[role=tab]]:rounded-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default-0 [&_[role=tab]]:data-active:text-brand-on-default [&_[role=tablist]]:gap-xs [&_[role=tablist]]:rounded-lg [&_[role=tablist]]:bg-
|
|
22551
|
+
default: "space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-lg [&_[role=presentation]]:bg-brand-default [&_[role=tab]]:h-lg [&_[role=tab]]:rounded-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default-0 [&_[role=tab]]:data-active:text-brand-on-default [&_[role=tablist]]:gap-xs [&_[role=tablist]]:rounded-lg [&_[role=tablist]]:bg-surface-low [&_[role=tablist]]:p-3xs [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default",
|
|
22535
22552
|
underline: "space-y-2xs [&_[role=presentation]]:bg-brand-default [&_[role=tab]]:px-md [&_[role=tab]]:style-text-default-0 [&_[role=tab]]:data-active:text-brand-default [&_[role=tablist]]:gap-lg [&_[role=tablist]]:border-b-3 [&_[role=tablist]]:border-border [&_[role=tablist]]:pb-2xs **:[[role=presentation]]:bottom-[-4px] **:[[role=presentation]]:h-[3px] [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default"
|
|
22536
22553
|
},
|
|
22537
22554
|
fill: {
|
|
@@ -22543,26 +22560,26 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22543
22560
|
variant: "default",
|
|
22544
22561
|
fill: !0
|
|
22545
22562
|
}
|
|
22546
|
-
}),
|
|
22547
|
-
className: Y(
|
|
22563
|
+
}), aP = ({ variant: e, fill: t, className: n, ref: r, ...i }) => /* @__PURE__ */ Z(Dg, {
|
|
22564
|
+
className: Y(iP({
|
|
22548
22565
|
variant: e,
|
|
22549
22566
|
fill: t
|
|
22550
22567
|
}), n),
|
|
22551
22568
|
ref: r,
|
|
22552
22569
|
...i
|
|
22553
|
-
}),
|
|
22570
|
+
}), oP = ({ className: e, ...t }) => /* @__PURE__ */ Z(Pg, {
|
|
22554
22571
|
className: Y("absolute left-[0px] z-[-1] h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) -translate-y-1/2 transition-all duration-300", e),
|
|
22555
22572
|
...t
|
|
22556
|
-
}),
|
|
22573
|
+
}), sP = ({ className: e, ...t }) => /* @__PURE__ */ Z(Rg, {
|
|
22557
22574
|
className: Y("relative z-0 flex", e),
|
|
22558
22575
|
...t
|
|
22559
|
-
}),
|
|
22576
|
+
}), cP = ({ className: e, ...t }) => /* @__PURE__ */ Z(Lg, {
|
|
22560
22577
|
className: Y("relative flex grow items-center justify-start overflow-auto", e),
|
|
22561
22578
|
...t
|
|
22562
|
-
}),
|
|
22579
|
+
}), lP = ({ className: e, ...t }) => /* @__PURE__ */ Z(jg, {
|
|
22563
22580
|
className: Y("inline-flex items-center justify-center gap-xs text-center break-keep whitespace-nowrap text-on-surface transition-colors duration-300 outline-none select-none hover:cursor-pointer focus-visible:relative focus-visible:before:absolute focus-visible:before:outline", e),
|
|
22564
22581
|
...t
|
|
22565
|
-
}),
|
|
22582
|
+
}), uP = () => {
|
|
22566
22583
|
let e = y_(), t = (t) => e.add({
|
|
22567
22584
|
...t,
|
|
22568
22585
|
data: {
|
|
@@ -22575,7 +22592,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22575
22592
|
...e,
|
|
22576
22593
|
add: t
|
|
22577
22594
|
};
|
|
22578
|
-
},
|
|
22595
|
+
}, dP = () => {
|
|
22579
22596
|
let e = v_();
|
|
22580
22597
|
return {
|
|
22581
22598
|
add: (t) => e.add({
|
|
@@ -22588,7 +22605,7 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22588
22605
|
}),
|
|
22589
22606
|
toasts: e.toasts
|
|
22590
22607
|
};
|
|
22591
|
-
},
|
|
22608
|
+
}, fP = ({ className: e, ref: t, toast: n, ...r }) => {
|
|
22592
22609
|
let i = n.timeout ?? 1e4, a = 2 * Math.PI * 14;
|
|
22593
22610
|
ar.useEffect(() => {
|
|
22594
22611
|
let e, t = performance.now(), n = (r) => {
|
|
@@ -22694,22 +22711,22 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22694
22711
|
})]
|
|
22695
22712
|
})]
|
|
22696
22713
|
}, n.id);
|
|
22697
|
-
},
|
|
22698
|
-
let { toasts: r } =
|
|
22714
|
+
}, pP = ({ className: e, ref: t, ...n }) => {
|
|
22715
|
+
let { toasts: r } = dP();
|
|
22699
22716
|
return /* @__PURE__ */ Z(p_, { children: /* @__PURE__ */ Z(Yg, {
|
|
22700
22717
|
className: Y("fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]", e),
|
|
22701
22718
|
ref: t,
|
|
22702
22719
|
...n,
|
|
22703
|
-
children: r.map((e) => /* @__PURE__ */ Z(
|
|
22720
|
+
children: r.map((e) => /* @__PURE__ */ Z(fP, { toast: e }, e.id))
|
|
22704
22721
|
}) });
|
|
22705
|
-
},
|
|
22722
|
+
}, mP = ({ className: e, ref: t, toast: n, ...r }) => /* @__PURE__ */ Q(s_, {
|
|
22706
22723
|
className: Y("group flex w-max origin-(--transform-origin) flex-col rounded-2xl bg-surface px-sm py-2xs shadow-lg transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0", e),
|
|
22707
22724
|
ref: t,
|
|
22708
22725
|
toast: n,
|
|
22709
22726
|
...r,
|
|
22710
22727
|
children: [/* @__PURE__ */ Z(__, { className: "data-[side=bottom]:-top-3xs data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-3xs data-[side=top]:rotate-180" }), /* @__PURE__ */ Z(c_, { children: /* @__PURE__ */ Z(l_, { className: "style-text-default--1" }) })]
|
|
22711
|
-
}),
|
|
22712
|
-
let { toasts: r } =
|
|
22728
|
+
}), hP = ({ className: e, ref: t, ...n }) => {
|
|
22729
|
+
let { toasts: r } = dP();
|
|
22713
22730
|
return /* @__PURE__ */ Z(p_, { children: /* @__PURE__ */ Z(Yg, {
|
|
22714
22731
|
className: Y("fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]", e),
|
|
22715
22732
|
ref: t,
|
|
@@ -22717,39 +22734,39 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22717
22734
|
children: r.map((e) => /* @__PURE__ */ Z(g_, {
|
|
22718
22735
|
className: "z-[calc(1000-var(--toast-index))]",
|
|
22719
22736
|
toast: e,
|
|
22720
|
-
children: /* @__PURE__ */ Z(
|
|
22737
|
+
children: /* @__PURE__ */ Z(mP, { toast: e })
|
|
22721
22738
|
}, e.id))
|
|
22722
22739
|
}) });
|
|
22723
|
-
},
|
|
22740
|
+
}, gP = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div", {
|
|
22724
22741
|
className: Y("", e),
|
|
22725
22742
|
ref: n,
|
|
22726
22743
|
...r,
|
|
22727
22744
|
children: [
|
|
22728
22745
|
/* @__PURE__ */ Z(qg, {
|
|
22729
22746
|
timeout: 1e4,
|
|
22730
|
-
toastManager:
|
|
22731
|
-
children: /* @__PURE__ */ Z(
|
|
22747
|
+
toastManager: _P,
|
|
22748
|
+
children: /* @__PURE__ */ Z(hP, {})
|
|
22732
22749
|
}),
|
|
22733
22750
|
/* @__PURE__ */ Z(qg, {
|
|
22734
22751
|
timeout: 1e4,
|
|
22735
|
-
toastManager:
|
|
22736
|
-
children: /* @__PURE__ */ Z(
|
|
22752
|
+
toastManager: vP,
|
|
22753
|
+
children: /* @__PURE__ */ Z(pP, {})
|
|
22737
22754
|
}),
|
|
22738
22755
|
t
|
|
22739
22756
|
]
|
|
22740
|
-
}),
|
|
22757
|
+
}), _P = uP(), vP = uP(), yP = y("group flex w-fit items-center justify-center gap-3xs bg-neutral-container", {
|
|
22741
22758
|
variants: { size: {
|
|
22742
22759
|
small: "h-lg rounded-lg px-3xs",
|
|
22743
22760
|
medium: "h-xl rounded-xl px-2xs",
|
|
22744
22761
|
large: "h-2xl rounded-2xl px-xs"
|
|
22745
22762
|
} },
|
|
22746
22763
|
defaultVariants: { size: "medium" }
|
|
22747
|
-
}),
|
|
22764
|
+
}), bP = ({ size: e = "medium", className: t, children: n, ref: r, ...i }) => {
|
|
22748
22765
|
let a = e ?? "medium";
|
|
22749
22766
|
return /* @__PURE__ */ Z(ax.Provider, {
|
|
22750
22767
|
value: { size: a },
|
|
22751
22768
|
children: /* @__PURE__ */ Z(T_, {
|
|
22752
|
-
className: Y(
|
|
22769
|
+
className: Y(yP({
|
|
22753
22770
|
size: a,
|
|
22754
22771
|
className: t
|
|
22755
22772
|
})),
|
|
@@ -22761,4 +22778,4 @@ var $M = ({ children: e, ...t }) => /* @__PURE__ */ Z(Rp, {
|
|
|
22761
22778
|
});
|
|
22762
22779
|
};
|
|
22763
22780
|
//#endregion
|
|
22764
|
-
export { ei as Accordion, ti as AccordionHeader, ni as AccordionItem, ri as AccordionPanel, ii as AccordionSubtitle, ai as AccordionTitle, T as Alert, si as AlertActions, j as AlertContent, E as AlertDescription, G_ as AlertDialog, Q_ as AlertDialogActions, K_ as AlertDialogClose, Y_ as AlertDialogConfirm, X_ as AlertDialogContent, Z_ as AlertDialogDescription, $_ as AlertDialogHeader, tv as AlertDialogPopup, nv as AlertDialogTitle, rv as AlertDialogTrigger, oi as AlertTitle,
|
|
22781
|
+
export { ei as Accordion, ti as AccordionHeader, ni as AccordionItem, ri as AccordionPanel, ii as AccordionSubtitle, ai as AccordionTitle, T as Alert, si as AlertActions, j as AlertContent, E as AlertDescription, G_ as AlertDialog, Q_ as AlertDialogActions, K_ as AlertDialogClose, Y_ as AlertDialogConfirm, X_ as AlertDialogContent, Z_ as AlertDialogDescription, $_ as AlertDialogHeader, tv as AlertDialogPopup, nv as AlertDialogTitle, rv as AlertDialogTrigger, oi as AlertTitle, mP as AnchoredToastItem, hP as AnchoredToasts, iv as Autocomplete, av as AutocompleteCollection, ov as AutocompleteContent, lv as AutocompleteGridContent, uv as AutocompleteGridItem, dv as AutocompleteGroup, fv as AutocompleteGroupLabel, sv as AutocompleteInputGroup, pv as AutocompleteInputGroupAddon, cv as AutocompleteInputGroupInput, mv as AutocompleteItem, hv as AutocompleteRow, gv as AutocompleteStatus, _v as AutocompleteTrigger, bv as Avatar, Cv as AvatarBadge, xv as AvatarFallback, Sv as AvatarImage, Tv as Badge, Ev as Breadcrumb, Dy as BreadcrumbEllipsis, Oy as BreadcrumbItem, ky as BreadcrumbLink, Ay as BreadcrumbSeparator, P as Button, My as ButtonGroup, Fy as Checkbox, Iy as CheckboxGroup, Ny as CheckboxIndicator, zy as Collapsible, Ly as CollapsiblePanel, Ry as CollapsibleTrigger, By as Combobox, Vy as ComboboxChip, Hy as ComboboxChips, Uy as ComboboxCollection, Wy as ComboboxEmpty, Gy as ComboboxGroup, Ky as ComboboxGroupLabel, Xy as ComboboxInput, Zy as ComboboxItem, Qy as ComboboxList, $y as ComboboxPopup, eb as ComboboxStatus, tb as ComboboxTrigger, nb as ComboboxValue, rb as Dialog, ib as DialogClose, ab as DialogContent, ob as DialogDescription, sb as DialogFooter, cb as DialogHeader, lb as DialogPopup, ub as DialogTitle, db as DialogTrigger, fb as Drawer, pb as DrawerClose, mb as DrawerContent, hb as DrawerDescription, Cb as DrawerHeader, xb as DrawerPopup, gb as DrawerProvider, Sb as DrawerTitle, _b as DrawerTrigger, wb as Field, Qb as FieldCheckbox, Tb as FieldDescription, Eb as FieldErrors, Ob as FieldInput, kb as FieldLabel, nx as FieldRadioGroup, Kb as FieldSelect, Fb as FieldSlider, ix as FieldSwitch, Yb as FieldTextArea, cx as FieldToggle, lx as Form, C as FormErrors, z as FormReset, A as FormSubmit, Db as Input, rr as InputGroup, qy as InputGroupAddon, ir as InputGroupInput, ux as InputOTP, dx as InputOTPSlot, fx as InputOtpSeparator, px as Kbd, Zb as Label, fM as LayerTree, yM as LayerTreeBody, bM as LayerTreeExpandAll, wM as LayerTreeFooter, xM as LayerTreeNode, SM as LayerTreeNodeToggle, vM as LayerTreeRow, CM as LayerTreeSearch, BM as LayerTreeSort, TM as Menu, EM as MenuCheckboxItem, DM as MenuGroup, OM as MenuGroupLabel, jM as MenuItem, MM as MenuPopup, NM as MenuRadioGroup, PM as MenuRadioItem, FM as MenuSeparator, IM as MenuShortcut, LM as MenuSubmenu, RM as MenuSubmenuTrigger, zM as MenuTrigger, HM as Meter, JM as MeterFooter, UM as MeterHeader, WM as MeterIndicator, GM as MeterLabel, YM as MeterSubtitle, KM as MeterTrack, qM as MeterValue, ZM as NumberField, $M as Popover, oN as PopoverButton, aN as PopoverContent, eN as PopoverDescription, iN as PopoverHeader, tN as PopoverPanel, nN as PopoverTitle, rN as PopoverTrigger, cN as Profile, dN as ProfileAction, fN as ProfileContent, lN as ProfileName, uN as ProfileSubname, pN as Progress, mN as ProgressBar, hN as ProgressIndicator, _N as RadarPing, ex as Radio, tx as RadioGroup, vN as ResizeableHandle, yN as ResizeablePanel, bN as ResizeablePanelGroup, xN as ScrollArea, Ib as Select, Wb as SelectGroup, Gb as SelectGroupLabel, zb as SelectIcon, Lb as SelectItem, Rb as SelectList, Bb as SelectPopup, Hb as SelectTrigger, Ub as SelectValue, Yy as Separator, TN as Sidebar, DN as SidebarContent, ON as SidebarFooter, kN as SidebarGroup, AN as SidebarGroupContent, jN as SidebarGroupLabel, MN as SidebarHeader, NN as SidebarMenu, PN as SidebarMenuBadge, FN as SidebarMenuButton, IN as SidebarMenuCollapsible, LN as SidebarMenuCollapsiblePanel, RN as SidebarMenuCollapsibleTrigger, zN as SidebarMenuItem, CN as SidebarProvider, EN as SidebarToggle, BN as Skeleton, Pb as Slider, Nb as SliderThumb, fP as StackToastItem, pP as StackToasts, rx as Switch, HN as Table, WN as TableBody, GN as TableFilter, KN as TableFirstPage, qN as TableFooter, JN as TableHeader, YN as TableLastPage, XN as TableNextPage, $N as TablePagination, ZN as TablePreviousPage, QN as TableRefresh, eP as TableRowGrid, tP as TableRowList, nP as TableSearch, rP as TableSort, aP as Tabs, oP as TabsIndicator, sP as TabsList, cP as TabsPanel, lP as TabsTab, Jb as TextArea, gP as ToastProvider, sx as Toggle, bP as ToggleGroup, Ab as Tooltip, jb as TooltipContent, Mb as TooltipTrigger, _P as anchoredToastManager, Y as cn, R as fieldContext, mx as findLayerTreeNode, M as formContext, gx as insertLayerTreeNode, _x as moveLayerTreeNode, vx as moveLayerTreeNodeToRoot, sN as popoverHandle, hx as removeLayerTreeNode, vP as stackToastManager, I as useAppForm, D as useFieldContext, b as useFormContext, wN as useSidebar, UN as useTable, dP as useToastManager, N as useTypedAppFormContext, L as withFieldGroup, S as withForm };
|