@marimo-team/islands 0.25.1-dev44 → 0.25.1-dev46
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/{ConnectedDataExplorerComponent-CwMXfDQR.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +5 -6
- package/dist/{ErrorBoundary-VUuyxCWc.js → ErrorBoundary-Cymv4nwq.js} +1 -1
- package/dist/{chat-ui-DLSF8a04.js → chat-ui-fVyVOhYN.js} +4 -4
- package/dist/{code-visibility-A4d1wosh.js → code-visibility-DpYLwiSy.js} +1 -1
- package/dist/{common-p1O4ctAw.js → common-CWTdJ-TY.js} +6722 -6426
- package/dist/{data-grid-overlay-editor-CasvLZPZ.js → data-grid-overlay-editor-CYv9tAJn.js} +1 -1
- package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
- package/dist/{feedback-button-DrJQ0USU.js → feedback-button-cKjOOegs.js} +2 -2
- package/dist/{glide-data-editor-C55qOCCK.js → glide-data-editor-CO0Z7kHq.js} +5 -5
- package/dist/{globals-CUD2Xo__.js → globals-dNCxJiRB.js} +1 -1
- package/dist/{html-to-image-CGVgroef.js → html-to-image-CmkwfNkf.js} +1 -1
- package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
- package/dist/main.js +60 -54
- package/dist/{number-overlay-editor-CZb24BVz.js → number-overlay-editor-niCBCU1g.js} +1 -1
- package/dist/{process-output-CGfg-JmZ.js → process-output-CYN5E-iO.js} +1 -1
- package/dist/{reveal-component-_Fc3Tdml.js → reveal-component-Co_X7tOt.js} +3 -3
- package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +2 -2
- package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/export-actions.tsx +642 -176
- package/src/components/data-table/schemas.ts +25 -3
- package/dist/label-BJ49YTvk.js +0 -30
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { t } from "./react-ofJbxM4x.js";
|
|
3
3
|
import { t as n } from "./react-dom-BUgJ-ab_.js";
|
|
4
4
|
import { c as r, l as i, u as a } from "./data-grid-types-BucVmDDp.js";
|
|
5
|
-
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-
|
|
5
|
+
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-CO0Z7kHq.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
|
|
7
7
|
var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
|
|
8
8
|
name: "DataGridOverlayEditorStyle",
|
|
@@ -9,7 +9,7 @@ import { t as k } from "./clsx-CoeGtWvn.js";
|
|
|
9
9
|
import { t as A } from "./react-dom-BUgJ-ab_.js";
|
|
10
10
|
import { t as j } from "./jsx-runtime-DgDPJV9S.js";
|
|
11
11
|
import { Ct as M, Et as N, K as P, Q as F, Tt as I, X as L, Y as ee, bt as te, ft as ne, gt as re, lt as ie, mt as ae, pt as oe, ut as se, vt as R, wt as ce, xt as le, yt as ue } from "./use-restore-focus-D5D9xEjZ.js";
|
|
12
|
-
import {
|
|
12
|
+
import { i as de, n as fe, r as pe, s as me } from "./label-BslhXqL6.js";
|
|
13
13
|
import { t as he } from "./debounce-C3jyATpc.js";
|
|
14
14
|
import { A as ge } from "./useTheme-DzXmYZ5V.js";
|
|
15
15
|
import { t as _e } from "./once-BtE-wKRL.js";
|
|
@@ -945,7 +945,7 @@ typeof FinalizationRegistry < "u" && (Sr = new FinalizationRegistry((e) => {
|
|
|
945
945
|
xr.delete(e);
|
|
946
946
|
}));
|
|
947
947
|
function W(e) {
|
|
948
|
-
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(null), i =
|
|
948
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(null), i = me(t), a = (0, z.useRef)(null);
|
|
949
949
|
if (Sr && Sr.register(a, i), br) {
|
|
950
950
|
let e = xr.get(i);
|
|
951
951
|
e && !e.includes(r) ? e.push(r) : xr.set(i, [r]);
|
|
@@ -2220,7 +2220,7 @@ function io(e, t) {
|
|
|
2220
2220
|
return t && Xa.getGlobalDictionaryForPackage(t) || ro(e);
|
|
2221
2221
|
}
|
|
2222
2222
|
function ao(e, t) {
|
|
2223
|
-
let { locale: n } =
|
|
2223
|
+
let { locale: n } = de(), r = io(e, t);
|
|
2224
2224
|
return (0, z.useMemo)(() => new to(n, r), [n, r]);
|
|
2225
2225
|
}
|
|
2226
2226
|
//#endregion
|
|
@@ -2278,7 +2278,7 @@ var po = class {
|
|
|
2278
2278
|
minimumFractionDigits: Math.min((this.options.minimumFractionDigits ?? 0) + 2, 20),
|
|
2279
2279
|
maximumFractionDigits: Math.min((this.options.maximumFractionDigits ?? 0) + 2, 20)
|
|
2280
2280
|
};
|
|
2281
|
-
return new co(this.locale, e).parse(new
|
|
2281
|
+
return new co(this.locale, e).parse(new pe(this.locale, e).format(n));
|
|
2282
2282
|
}
|
|
2283
2283
|
return this.options.currencySign === "accounting" && oo.test(e) && (n = -1 * n), n;
|
|
2284
2284
|
}
|
|
@@ -2681,7 +2681,7 @@ function Uo(e) {
|
|
|
2681
2681
|
function Wo(e) {
|
|
2682
2682
|
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e;
|
|
2683
2683
|
a === null && (a = NaN), a !== void 0 && !isNaN(a) && (a = r !== void 0 && !isNaN(r) ? Q(a, t, n, r) : ki(a, t, n)), isNaN(o) || (o = r !== void 0 && !isNaN(r) ? Q(o, t, n, r) : ki(o, t, n));
|
|
2684
|
-
let [d, f] = Oi(a, isNaN(o) ? NaN : o, s), [p] = (0, z.useState)(d), [m, h] = (0, z.useState)(() => isNaN(d) ? "" : new
|
|
2684
|
+
let [d, f] = Oi(a, isNaN(o) ? NaN : o, s), [p] = (0, z.useState)(d), [m, h] = (0, z.useState)(() => isNaN(d) ? "" : new pe(c, i).format(d)), g = (0, z.useMemo)(() => new co(c, i), [c, i]), _ = (0, z.useMemo)(() => g.getNumberingSystem(m), [g, m]), v = (0, z.useMemo)(() => new pe(c, {
|
|
2685
2685
|
...i,
|
|
2686
2686
|
numberingSystem: _
|
|
2687
2687
|
}), [
|
|
@@ -3497,7 +3497,7 @@ function hc(e, t, n) {
|
|
|
3497
3497
|
}), n.current?.value !== e && Co(n.current?.value ?? "", "assertive");
|
|
3498
3498
|
}, [k, n]), N = W(r), { focusProps: P } = Na({ onBlur() {
|
|
3499
3499
|
M();
|
|
3500
|
-
} }), F =
|
|
3500
|
+
} }), F = fe(p), I = (0, z.useMemo)(() => F.resolvedOptions(), [F]), L = fe({
|
|
3501
3501
|
...p,
|
|
3502
3502
|
currencySign: void 0
|
|
3503
3503
|
}), { spinButtonProps: ee, incrementButtonProps: te, decrementButtonProps: ne } = Ms({
|
|
@@ -3536,7 +3536,7 @@ function hc(e, t, n) {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
}, ue = zr(e), de = (0, z.useCallback)((e) => {
|
|
3538
3538
|
e.nativeEvent.isComposing || (e.key === "Enter" ? (k(), A()) : e.continuePropagation());
|
|
3539
|
-
}, [k, A]), { isInvalid:
|
|
3539
|
+
}, [k, A]), { isInvalid: pe, validationErrors: me, validationDetails: he } = t.displayValidation, { labelProps: ge, inputProps: _e, descriptionProps: ve, errorMessageProps: ye } = Jo({
|
|
3540
3540
|
...S,
|
|
3541
3541
|
...ue,
|
|
3542
3542
|
name: void 0,
|
|
@@ -3609,7 +3609,7 @@ function hc(e, t, n) {
|
|
|
3609
3609
|
...ae,
|
|
3610
3610
|
role: "group",
|
|
3611
3611
|
"aria-disabled": o,
|
|
3612
|
-
"aria-invalid":
|
|
3612
|
+
"aria-invalid": pe ? "true" : void 0
|
|
3613
3613
|
},
|
|
3614
3614
|
labelProps: ge,
|
|
3615
3615
|
inputProps: be,
|
|
@@ -3617,8 +3617,8 @@ function hc(e, t, n) {
|
|
|
3617
3617
|
decrementButtonProps: Ee,
|
|
3618
3618
|
errorMessageProps: ye,
|
|
3619
3619
|
descriptionProps: ve,
|
|
3620
|
-
isInvalid:
|
|
3621
|
-
validationErrors:
|
|
3620
|
+
isInvalid: pe,
|
|
3621
|
+
validationErrors: me,
|
|
3622
3622
|
validationDetails: he
|
|
3623
3623
|
};
|
|
3624
3624
|
}
|
|
@@ -3964,7 +3964,7 @@ var Bc = /*#__PURE__*/ (0, z.createContext)({}), Vc = /*#__PURE__*/ (0, z.forwar
|
|
|
3964
3964
|
});
|
|
3965
3965
|
}), Zc = /*#__PURE__*/ (0, z.createContext)(null), Qc = /*#__PURE__*/ (0, z.createContext)(null), $c = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
3966
3966
|
[e, t] = wc(e, t, Zc);
|
|
3967
|
-
let { validationBehavior: n } = Cc(Gc) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } =
|
|
3967
|
+
let { validationBehavior: n } = Cc(Gc) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = de(), a = Wo({
|
|
3968
3968
|
...e,
|
|
3969
3969
|
locale: i,
|
|
3970
3970
|
validationBehavior: r
|
|
@@ -4106,7 +4106,7 @@ function cl(e, t) {
|
|
|
4106
4106
|
var ll = z.forwardRef((e, t) => {
|
|
4107
4107
|
let n = (0, $.c)(53), i, a, o, s, c;
|
|
4108
4108
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c);
|
|
4109
|
-
let l = c === void 0 ? "default" : c, { locale: u } =
|
|
4109
|
+
let l = c === void 0 ? "default" : c, { locale: u } = de(), d;
|
|
4110
4110
|
n[6] === u ? d = n[7] : (d = el(u), n[6] = u, n[7] = d);
|
|
4111
4111
|
let f;
|
|
4112
4112
|
n[8] !== i || n[9] !== d ? (f = {
|
|
@@ -5,12 +5,12 @@ import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
|
5
5
|
import { t as a } from "./copy-icon-CLdENY__.js";
|
|
6
6
|
import { Ct as o, Ft as s, H as c, L as l, Lt as u, V as d, d as f, un as p } from "./cells-Cv93oav_.js";
|
|
7
7
|
import { b as m } from "./select-C6plhmZr.js";
|
|
8
|
-
import { n as h, t as ee } from "./globals-
|
|
8
|
+
import { n as h, t as ee } from "./globals-dNCxJiRB.js";
|
|
9
9
|
import { t as g } from "./jsx-runtime-DgDPJV9S.js";
|
|
10
10
|
import { C as _, _ as te, i as v } from "./useTheme-DzXmYZ5V.js";
|
|
11
11
|
import { a as ne, i as re, n as ie, r as ae } from "./dialog-CgNq6y9-.js";
|
|
12
12
|
import { t as oe } from "./useAsyncData-BD6AStMt.js";
|
|
13
|
-
import { t as se } from "./code-visibility-
|
|
13
|
+
import { t as se } from "./code-visibility-DpYLwiSy.js";
|
|
14
14
|
import { i as ce, n as le } from "./error-entries-DLl0XqoW.js";
|
|
15
15
|
//#region src/components/ui/skeleton.tsx
|
|
16
16
|
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = g(), ue = (e) => {
|
|
@@ -4,12 +4,12 @@ import { t as a } from "./react-ofJbxM4x.js";
|
|
|
4
4
|
import { t as o } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
5
|
import { i as s, n as c, r as l } from "./copy-icon-CLdENY__.js";
|
|
6
6
|
import { C as u, c as d, i as f, n as p, s as m, t as h, x as g } from "./select-C6plhmZr.js";
|
|
7
|
-
import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-
|
|
7
|
+
import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-CZy06LAq.js";
|
|
8
8
|
import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-B3rUT5PI.js";
|
|
9
|
-
import { n as ne, t as re } from "./ErrorBoundary-
|
|
9
|
+
import { n as ne, t as re } from "./ErrorBoundary-Cymv4nwq.js";
|
|
10
10
|
import { t as M } from "./react-dom-BUgJ-ab_.js";
|
|
11
11
|
import { t as N } from "./jsx-runtime-DgDPJV9S.js";
|
|
12
|
-
import { t as ie } from "./label-
|
|
12
|
+
import { t as ie } from "./label-BslhXqL6.js";
|
|
13
13
|
import { c as P } from "./toast-DvY70eFX.js";
|
|
14
14
|
import { A as F, n as ae } from "./useTheme-DzXmYZ5V.js";
|
|
15
15
|
import { A as I, C as L, D as oe, E as se, F as ce, I as le, L as ue, M as de, N as fe, O as R, P as pe, R as me, S as he, T as z, _ as ge, a as _e, b as ve, c as ye, d as be, f as B, g as xe, h as V, i as Se, j as H, k as U, l as Ce, m as we, n as Te, o as Ee, p as De, r as W, s as Oe, t as G, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./data-grid-types-BucVmDDp.js";
|
|
@@ -7062,7 +7062,7 @@ function rs(e, t, n, r, i) {
|
|
|
7062
7062
|
}
|
|
7063
7063
|
//#endregion
|
|
7064
7064
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7065
|
-
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7065
|
+
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-CYv9tAJn.js")), ss = 0;
|
|
7066
7066
|
function cs(e) {
|
|
7067
7067
|
return (0, is.default)((0, as.default)((0, as.default)(e).filter((e) => e.span !== void 0).map((e) => (0, Za.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7068
7068
|
}
|
|
@@ -9293,7 +9293,7 @@ function Vs(e, t, n, r, i) {
|
|
|
9293
9293
|
}
|
|
9294
9294
|
//#endregion
|
|
9295
9295
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9296
|
-
var Hs = K.lazy(async () => await import("./number-overlay-editor-
|
|
9296
|
+
var Hs = K.lazy(async () => await import("./number-overlay-editor-niCBCU1g.js")), Us = {
|
|
9297
9297
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9298
9298
|
kind: W.Number,
|
|
9299
9299
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as e } from "./tooltip-qB8NlSqV.js";
|
|
2
2
|
import { _ as t } from "./useTheme-DzXmYZ5V.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-DpYLwiSy.js";
|
|
4
4
|
var r = e("triangle-alert", [
|
|
5
5
|
["path", {
|
|
6
6
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
@@ -7,7 +7,7 @@ import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DrWbKnx
|
|
|
7
7
|
import { c as _, d as v, g as y, l as b, s as x, t as ee, u as te } from "./tooltip-qB8NlSqV.js";
|
|
8
8
|
import { A as ne, E as re, G as ie, Nt as ae, O as oe, R as se, St as ce, Z as le, Zt as ue, _t as de, en as fe, et as pe, gt as me, h as he, ht as ge, lt as _e, s as ve, t as ye, vt as be, xt as xe, yt as Se, z as Ce } from "./cells-Cv93oav_.js";
|
|
9
9
|
import { M as we, O as Te, k as Ee } from "./select-C6plhmZr.js";
|
|
10
|
-
import { J as De, ht as Oe } from "./dropdown-menu-
|
|
10
|
+
import { J as De, ht as Oe } from "./dropdown-menu-CZy06LAq.js";
|
|
11
11
|
import { g as ke, x as Ae } from "./toDate-C67bxMWn.js";
|
|
12
12
|
import { t as je } from "./jsx-runtime-DgDPJV9S.js";
|
|
13
13
|
import { Ct as S, K as Me, Q as Ne, St as Pe, Tt as C, X as Fe, Y as Ie, bt as Le, ft as Re, gt as ze, lt as Be, mt as Ve, pt as He, ut as Ue, wt as We, xt as w, yt as Ge } from "./use-restore-focus-D5D9xEjZ.js";
|
|
@@ -1,51 +1,63 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { h as t, r as n } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { t as a } from "./jsx-runtime-DgDPJV9S.js";
|
|
6
|
+
import { Tt as o } from "./use-restore-focus-D5D9xEjZ.js";
|
|
7
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.7_@types+react-dom@19.2.5_@types+react@19.2.18__@types+react@_81412ca2c9e8ab48c66df9560ce8a98f/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
8
|
+
var s = /* @__PURE__ */ e(r(), 1), c = a(), l = "Label", u = s.forwardRef((e, t) => /* @__PURE__ */ (0, c.jsx)(o.label, {
|
|
9
|
+
...e,
|
|
10
|
+
ref: t,
|
|
11
|
+
onMouseDown: (t) => {
|
|
12
|
+
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
u.displayName = l;
|
|
16
|
+
var d = u, f = {
|
|
5
17
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
6
18
|
current: 0
|
|
7
|
-
},
|
|
19
|
+
}, p = /*#__PURE__*/ s.createContext(f), m = /*#__PURE__*/ s.createContext(!1);
|
|
8
20
|
typeof window < "u" && window.document && window.document.createElement;
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let t = (0,
|
|
12
|
-
if (
|
|
13
|
-
let e =
|
|
21
|
+
var h = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
function g(e = !1) {
|
|
23
|
+
let t = (0, s.useContext)(p), n = (0, s.useRef)(null);
|
|
24
|
+
if (n.current === null && !e) {
|
|
25
|
+
let e = s.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
14
26
|
if (e) {
|
|
15
|
-
let n =
|
|
16
|
-
n == null ?
|
|
27
|
+
let n = h.get(e);
|
|
28
|
+
n == null ? h.set(e, {
|
|
17
29
|
id: t.current,
|
|
18
30
|
state: e.memoizedState
|
|
19
|
-
}) : e.memoizedState !== n.state && (t.current = n.id,
|
|
31
|
+
}) : e.memoizedState !== n.state && (t.current = n.id, h.delete(e));
|
|
20
32
|
}
|
|
21
|
-
|
|
33
|
+
n.current = ++t.current;
|
|
22
34
|
}
|
|
23
|
-
return
|
|
35
|
+
return n.current;
|
|
24
36
|
}
|
|
25
|
-
function
|
|
26
|
-
let t = (0,
|
|
27
|
-
return e || `${
|
|
37
|
+
function _(e) {
|
|
38
|
+
let t = (0, s.useContext)(p), n = g(!!e), r = `react-aria${t.prefix}`;
|
|
39
|
+
return e || `${r}-${n}`;
|
|
28
40
|
}
|
|
29
|
-
function
|
|
30
|
-
let t =
|
|
31
|
-
return e || `${
|
|
41
|
+
function v(e) {
|
|
42
|
+
let t = s.useId(), [n] = (0, s.useState)(C()), r = n ? "react-aria" : `react-aria${f.prefix}`;
|
|
43
|
+
return e || `${r}-${t}`;
|
|
32
44
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
45
|
+
var y = typeof s.useId == "function" ? v : _;
|
|
46
|
+
function b() {
|
|
35
47
|
return !1;
|
|
36
48
|
}
|
|
37
|
-
function
|
|
49
|
+
function x() {
|
|
38
50
|
return !0;
|
|
39
51
|
}
|
|
40
|
-
function
|
|
52
|
+
function S(e) {
|
|
41
53
|
return () => {};
|
|
42
54
|
}
|
|
43
|
-
function
|
|
44
|
-
return typeof
|
|
55
|
+
function C() {
|
|
56
|
+
return typeof s.useSyncExternalStore == "function" ? s.useSyncExternalStore(S, b, x) : (0, s.useContext)(m);
|
|
45
57
|
}
|
|
46
58
|
//#endregion
|
|
47
59
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/utils.mjs
|
|
48
|
-
var
|
|
60
|
+
var w = /* @__PURE__ */ new Set([
|
|
49
61
|
"Arab",
|
|
50
62
|
"Syrc",
|
|
51
63
|
"Samr",
|
|
@@ -56,7 +68,7 @@ var h = /* @__PURE__ */ new Set([
|
|
|
56
68
|
"Adlm",
|
|
57
69
|
"Rohg",
|
|
58
70
|
"Hebr"
|
|
59
|
-
]),
|
|
71
|
+
]), T = /* @__PURE__ */ new Set([
|
|
60
72
|
"ae",
|
|
61
73
|
"ar",
|
|
62
74
|
"arc",
|
|
@@ -77,20 +89,20 @@ var h = /* @__PURE__ */ new Set([
|
|
|
77
89
|
"ur",
|
|
78
90
|
"yi"
|
|
79
91
|
]);
|
|
80
|
-
function
|
|
92
|
+
function E(e) {
|
|
81
93
|
if (Intl.Locale) {
|
|
82
94
|
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
|
|
83
95
|
if (n) return n.direction === "rtl";
|
|
84
|
-
if (t.script) return
|
|
96
|
+
if (t.script) return w.has(t.script);
|
|
85
97
|
}
|
|
86
98
|
let t = e.split("-")[0];
|
|
87
|
-
return
|
|
99
|
+
return T.has(t);
|
|
88
100
|
}
|
|
89
101
|
//#endregion
|
|
90
102
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs
|
|
91
|
-
var
|
|
92
|
-
function
|
|
93
|
-
let e = typeof window < "u" && window[
|
|
103
|
+
var D = Symbol.for("react-aria.i18n.locale");
|
|
104
|
+
function O() {
|
|
105
|
+
let e = typeof window < "u" && window[D] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
94
106
|
try {
|
|
95
107
|
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
96
108
|
} catch {
|
|
@@ -98,73 +110,73 @@ function y() {
|
|
|
98
110
|
}
|
|
99
111
|
return {
|
|
100
112
|
locale: e,
|
|
101
|
-
direction:
|
|
113
|
+
direction: E(e) ? "rtl" : "ltr"
|
|
102
114
|
};
|
|
103
115
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
for (let e of
|
|
116
|
+
var k = O(), A = /* @__PURE__ */ new Set();
|
|
117
|
+
function j() {
|
|
118
|
+
k = O();
|
|
119
|
+
for (let e of A) e(k);
|
|
108
120
|
}
|
|
109
|
-
function
|
|
110
|
-
let e =
|
|
111
|
-
return (0,
|
|
112
|
-
|
|
121
|
+
function M() {
|
|
122
|
+
let e = C(), [t, n] = (0, s.useState)(k);
|
|
123
|
+
return (0, s.useEffect)(() => (A.size === 0 && window.addEventListener("languagechange", j), A.add(n), () => {
|
|
124
|
+
A.delete(n), A.size === 0 && window.removeEventListener("languagechange", j);
|
|
113
125
|
}), []), e ? {
|
|
114
|
-
locale: typeof window < "u" && window[
|
|
126
|
+
locale: typeof window < "u" && window[D] || "en-US",
|
|
115
127
|
direction: "ltr"
|
|
116
128
|
} : t;
|
|
117
129
|
}
|
|
118
130
|
//#endregion
|
|
119
131
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/context.mjs
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
let { locale: t, children:
|
|
132
|
+
var N = /*#__PURE__*/ s.createContext(null);
|
|
133
|
+
function P(e) {
|
|
134
|
+
let { locale: t, children: n } = e, r = s.useMemo(() => ({
|
|
123
135
|
locale: t,
|
|
124
|
-
direction:
|
|
136
|
+
direction: E(t) ? "rtl" : "ltr"
|
|
125
137
|
}), [t]);
|
|
126
|
-
return /*#__PURE__*/
|
|
138
|
+
return /*#__PURE__*/ s.createElement(N.Provider, { value: r }, n);
|
|
127
139
|
}
|
|
128
|
-
function
|
|
129
|
-
let { children: t } = e,
|
|
130
|
-
return /*#__PURE__*/
|
|
140
|
+
function F(e) {
|
|
141
|
+
let { children: t } = e, n = M();
|
|
142
|
+
return /*#__PURE__*/ s.createElement(N.Provider, { value: n }, t);
|
|
131
143
|
}
|
|
132
|
-
function
|
|
133
|
-
let { locale: t, children:
|
|
134
|
-
return t ? /*#__PURE__*/
|
|
144
|
+
function I(e) {
|
|
145
|
+
let { locale: t, children: n } = e;
|
|
146
|
+
return t ? /*#__PURE__*/ s.createElement(P, {
|
|
135
147
|
locale: t,
|
|
136
|
-
children:
|
|
137
|
-
}) : /*#__PURE__*/
|
|
148
|
+
children: n
|
|
149
|
+
}) : /*#__PURE__*/ s.createElement(F, { children: n });
|
|
138
150
|
}
|
|
139
|
-
function
|
|
140
|
-
let e =
|
|
141
|
-
return (0,
|
|
151
|
+
function L() {
|
|
152
|
+
let e = M();
|
|
153
|
+
return (0, s.useContext)(N) || e;
|
|
142
154
|
}
|
|
143
155
|
//#endregion
|
|
144
156
|
//#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberFormatter.mjs
|
|
145
|
-
var
|
|
157
|
+
var R = /* @__PURE__ */ new Map(), z = !1;
|
|
146
158
|
try {
|
|
147
|
-
|
|
159
|
+
z = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
148
160
|
} catch {}
|
|
149
|
-
var
|
|
161
|
+
var B = !1;
|
|
150
162
|
try {
|
|
151
|
-
|
|
163
|
+
B = new Intl.NumberFormat("de-DE", {
|
|
152
164
|
style: "unit",
|
|
153
165
|
unit: "degree"
|
|
154
166
|
}).resolvedOptions().style === "unit";
|
|
155
167
|
} catch {}
|
|
156
|
-
var
|
|
168
|
+
var V = { degree: { narrow: {
|
|
157
169
|
default: "°",
|
|
158
170
|
"ja-JP": " 度",
|
|
159
171
|
"zh-TW": "度",
|
|
160
172
|
"sl-SI": " °"
|
|
161
|
-
} } },
|
|
173
|
+
} } }, H = class {
|
|
162
174
|
format(e) {
|
|
163
175
|
let t = "";
|
|
164
|
-
if (t = !
|
|
176
|
+
if (t = !z && this.options.signDisplay != null ? W(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !B) {
|
|
165
177
|
let { unit: e, unitDisplay: n = "short", locale: r } = this.resolvedOptions();
|
|
166
178
|
if (!e) return t;
|
|
167
|
-
let i =
|
|
179
|
+
let i = V[e]?.[n];
|
|
168
180
|
t += i[r] || i.default;
|
|
169
181
|
}
|
|
170
182
|
return t;
|
|
@@ -199,10 +211,10 @@ var M = { degree: { narrow: {
|
|
|
199
211
|
}
|
|
200
212
|
resolvedOptions() {
|
|
201
213
|
let e = this.numberFormatter.resolvedOptions();
|
|
202
|
-
return !
|
|
214
|
+
return !z && this.options.signDisplay != null && (e = {
|
|
203
215
|
...e,
|
|
204
216
|
signDisplay: this.options.signDisplay
|
|
205
|
-
}), !
|
|
217
|
+
}), !B && this.options.style === "unit" && (e = {
|
|
206
218
|
...e,
|
|
207
219
|
style: "unit",
|
|
208
220
|
unit: this.options.unit,
|
|
@@ -210,26 +222,26 @@ var M = { degree: { narrow: {
|
|
|
210
222
|
}), e;
|
|
211
223
|
}
|
|
212
224
|
constructor(e, t = {}) {
|
|
213
|
-
this.numberFormatter =
|
|
225
|
+
this.numberFormatter = U(e, t), this.options = t;
|
|
214
226
|
}
|
|
215
227
|
};
|
|
216
|
-
function
|
|
228
|
+
function U(e, t = {}) {
|
|
217
229
|
let { numberingSystem: n } = t;
|
|
218
|
-
if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !
|
|
230
|
+
if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !B) {
|
|
219
231
|
let { unit: e, unitDisplay: n = "short" } = t;
|
|
220
232
|
if (!e) throw Error("unit option must be provided with style: \"unit\"");
|
|
221
|
-
if (!
|
|
233
|
+
if (!V[e]?.[n]) throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);
|
|
222
234
|
t = {
|
|
223
235
|
...t,
|
|
224
236
|
style: "decimal"
|
|
225
237
|
};
|
|
226
238
|
}
|
|
227
239
|
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
|
|
228
|
-
if (
|
|
240
|
+
if (R.has(r)) return R.get(r);
|
|
229
241
|
let i = new Intl.NumberFormat(e, t);
|
|
230
|
-
return
|
|
242
|
+
return R.set(r, i), i;
|
|
231
243
|
}
|
|
232
|
-
function
|
|
244
|
+
function W(e, t, n) {
|
|
233
245
|
if (t === "auto") return e.format(n);
|
|
234
246
|
if (t === "never") return e.format(Math.abs(n));
|
|
235
247
|
{
|
|
@@ -243,9 +255,24 @@ function F(e, t, n) {
|
|
|
243
255
|
}
|
|
244
256
|
//#endregion
|
|
245
257
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
|
|
246
|
-
function
|
|
247
|
-
let { locale: t } =
|
|
248
|
-
return (0,
|
|
258
|
+
function G(e = {}) {
|
|
259
|
+
let { locale: t } = L();
|
|
260
|
+
return (0, s.useMemo)(() => new H(t, e), [t, e]);
|
|
249
261
|
}
|
|
250
262
|
//#endregion
|
|
251
|
-
|
|
263
|
+
//#region src/components/ui/label.tsx
|
|
264
|
+
var K = i(), q = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), J = s.forwardRef((e, n) => {
|
|
265
|
+
let r = (0, K.c)(9), i, a;
|
|
266
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
267
|
+
let o;
|
|
268
|
+
r[3] === i ? o = r[4] : (o = t(q(), i), r[3] = i, r[4] = o);
|
|
269
|
+
let s;
|
|
270
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, c.jsx)(d, {
|
|
271
|
+
ref: n,
|
|
272
|
+
className: o,
|
|
273
|
+
...a
|
|
274
|
+
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
275
|
+
});
|
|
276
|
+
J.displayName = d.displayName;
|
|
277
|
+
//#endregion
|
|
278
|
+
export { I as a, L as i, G as n, C as o, H as r, y as s, J as t };
|