react-semaphor 0.1.602 → 0.1.603
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/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
- package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
- package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
- package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
- package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
- package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
- package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
- package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
- package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
- package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
- package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2466 -2343
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +20 -20
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as v, jsxs as re, Fragment as xt } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import ke, { forwardRef as jn, createElement as In, useLayoutEffect as cs, useState as ro, useRef as vn, useMemo as us, useId as ds, useImperativeHandle as fs } from "react";
|
|
4
|
-
import { b as ps, c as
|
|
5
|
-
import "./validators-
|
|
6
|
-
import "./matrix-operation-contract
|
|
7
|
-
import "./analytics-base-schemas-
|
|
4
|
+
import { b as ps, c as J, d as me, g as hs } from "./pickers-DkqmtnTL.js";
|
|
5
|
+
import "./validators-Baf3VIf5.js";
|
|
6
|
+
import "./matrix-operation-contract-DPBj69D8.js";
|
|
7
|
+
import "./analytics-base-schemas-DsUh5Q3C.js";
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
9
|
import * as Gt from "react-dom";
|
|
10
10
|
import gs from "react-dom";
|
|
@@ -149,7 +149,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Cr = ps, U
|
|
|
149
149
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */ v(
|
|
150
150
|
r ? ao : "button",
|
|
151
151
|
{
|
|
152
|
-
className:
|
|
152
|
+
className: J(Rs({ variant: t, size: n, className: e })),
|
|
153
153
|
ref: a,
|
|
154
154
|
...o
|
|
155
155
|
}
|
|
@@ -2382,7 +2382,7 @@ var nr = "PopperContent", [wc, xc] = To(nr), _o = l.forwardRef(
|
|
|
2382
2382
|
le(() => {
|
|
2383
2383
|
F && (Z == null || Z());
|
|
2384
2384
|
}, [F, Z]);
|
|
2385
|
-
const Q = (L = N.arrow) == null ? void 0 : L.x, oe = (j = N.arrow) == null ? void 0 : j.y,
|
|
2385
|
+
const Q = (L = N.arrow) == null ? void 0 : L.x, oe = (j = N.arrow) == null ? void 0 : j.y, ee = ((ne = N.arrow) == null ? void 0 : ne.centerOffset) !== 0, [ie, ce] = l.useState();
|
|
2386
2386
|
return le(() => {
|
|
2387
2387
|
E && ce(window.getComputedStyle(E).zIndex);
|
|
2388
2388
|
}, [E]), /* @__PURE__ */ v(
|
|
@@ -2417,7 +2417,7 @@ var nr = "PopperContent", [wc, xc] = To(nr), _o = l.forwardRef(
|
|
|
2417
2417
|
onArrowChange: S,
|
|
2418
2418
|
arrowX: Q,
|
|
2419
2419
|
arrowY: oe,
|
|
2420
|
-
shouldHideArrow:
|
|
2420
|
+
shouldHideArrow: ee,
|
|
2421
2421
|
children: /* @__PURE__ */ v(
|
|
2422
2422
|
U.div,
|
|
2423
2423
|
{
|
|
@@ -3546,7 +3546,7 @@ const $p = Bu, Bp = Wu, Wp = Uu, Vu = l.forwardRef(({ className: e, align: t = "
|
|
|
3546
3546
|
ref: o,
|
|
3547
3547
|
align: t,
|
|
3548
3548
|
sideOffset: n,
|
|
3549
|
-
className:
|
|
3549
|
+
className: J(
|
|
3550
3550
|
// Mirror the app primitive; nested portals follow DOM stacking order.
|
|
3551
3551
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
3552
3552
|
e
|
|
@@ -3598,7 +3598,7 @@ const Gu = Ue(
|
|
|
3598
3598
|
da,
|
|
3599
3599
|
{
|
|
3600
3600
|
ref: n,
|
|
3601
|
-
className:
|
|
3601
|
+
className: J(Gu(), e),
|
|
3602
3602
|
...t
|
|
3603
3603
|
}
|
|
3604
3604
|
));
|
|
@@ -3627,7 +3627,7 @@ const Xu = Ue(
|
|
|
3627
3627
|
"input",
|
|
3628
3628
|
{
|
|
3629
3629
|
type: t,
|
|
3630
|
-
className:
|
|
3630
|
+
className: J(Xu({ size: n, className: e })),
|
|
3631
3631
|
ref: o,
|
|
3632
3632
|
...r
|
|
3633
3633
|
}
|
|
@@ -3846,7 +3846,7 @@ const Up = Qu, Ju = Ue("text-muted-foreground", {
|
|
|
3846
3846
|
Ea,
|
|
3847
3847
|
{
|
|
3848
3848
|
ref: o,
|
|
3849
|
-
className:
|
|
3849
|
+
className: J(
|
|
3850
3850
|
Ju({
|
|
3851
3851
|
variant: a,
|
|
3852
3852
|
size: s
|
|
@@ -3866,7 +3866,7 @@ const nd = l.forwardRef(({ className: e, variant: t, size: n, ...r }, o) => {
|
|
|
3866
3866
|
Ca,
|
|
3867
3867
|
{
|
|
3868
3868
|
ref: o,
|
|
3869
|
-
className:
|
|
3869
|
+
className: J(
|
|
3870
3870
|
ed({
|
|
3871
3871
|
variant: t ?? a.variant,
|
|
3872
3872
|
size: n ?? a.size
|
|
@@ -3888,7 +3888,7 @@ const rd = l.forwardRef(({ className: e, ...t }, n) => (
|
|
|
3888
3888
|
Ra,
|
|
3889
3889
|
{
|
|
3890
3890
|
ref: n,
|
|
3891
|
-
className:
|
|
3891
|
+
className: J(
|
|
3892
3892
|
"mt-2 focus:outline-none focus-visible:outline-none",
|
|
3893
3893
|
e
|
|
3894
3894
|
),
|
|
@@ -4221,7 +4221,7 @@ var be = 10, [Ma, ze] = ut(Ye), wd = "SelectContentImpl", xd = /* @__PURE__ */ o
|
|
|
4221
4221
|
(p.value !== void 0 && p.value === j || X) && (A(L), X && (Y.current = !0));
|
|
4222
4222
|
},
|
|
4223
4223
|
[p.value]
|
|
4224
|
-
), oe = l.useCallback(() => h == null ? void 0 : h.focus(), [h]),
|
|
4224
|
+
), oe = l.useCallback(() => h == null ? void 0 : h.focus(), [h]), ee = l.useCallback(
|
|
4225
4225
|
(L, j, ne) => {
|
|
4226
4226
|
const X = !Y.current && !ne;
|
|
4227
4227
|
(p.value !== void 0 && p.value === j || X) && _(L);
|
|
@@ -4249,7 +4249,7 @@ var be = 10, [Ma, ze] = ut(Ye), wd = "SelectContentImpl", xd = /* @__PURE__ */ o
|
|
|
4249
4249
|
itemRefCallback: Q,
|
|
4250
4250
|
selectedItem: T,
|
|
4251
4251
|
onItemLeave: oe,
|
|
4252
|
-
itemTextRefCallback:
|
|
4252
|
+
itemTextRefCallback: ee,
|
|
4253
4253
|
focusSelectedItem: F,
|
|
4254
4254
|
selectedItemText: I,
|
|
4255
4255
|
position: r,
|
|
@@ -4340,8 +4340,8 @@ var Sd = "SelectItemAlignedPosition", Ba = l.forwardRef((e, t) => {
|
|
|
4340
4340
|
]);
|
|
4341
4341
|
i.style.minWidth = V + "px", i.style.right = te + "px";
|
|
4342
4342
|
}
|
|
4343
|
-
const _ = g(), $ = window.innerHeight - be * 2, z = m.scrollHeight, H = window.getComputedStyle(u), Y = parseInt(H.borderTopWidth, 10), M = parseInt(H.paddingTop, 10), F = parseInt(H.borderBottomWidth, 10), N = parseInt(H.paddingBottom, 10), O = Y + M + z + N + F, D = Math.min(b.offsetHeight * 5, O), Z = window.getComputedStyle(m), Q = parseInt(Z.paddingTop, 10), oe = parseInt(Z.paddingBottom, 10),
|
|
4344
|
-
if (j <=
|
|
4343
|
+
const _ = g(), $ = window.innerHeight - be * 2, z = m.scrollHeight, H = window.getComputedStyle(u), Y = parseInt(H.borderTopWidth, 10), M = parseInt(H.paddingTop, 10), F = parseInt(H.borderBottomWidth, 10), N = parseInt(H.paddingBottom, 10), O = Y + M + z + N + F, D = Math.min(b.offsetHeight * 5, O), Z = window.getComputedStyle(m), Q = parseInt(Z.paddingTop, 10), oe = parseInt(Z.paddingBottom, 10), ee = R.top + R.height / 2 - be, ie = $ - ee, ce = b.offsetHeight / 2, L = b.offsetTop + ce, j = Y + M + L, ne = O - j;
|
|
4344
|
+
if (j <= ee) {
|
|
4345
4345
|
const K = _.length > 0 && b === _[_.length - 1].ref.current;
|
|
4346
4346
|
i.style.bottom = "0px";
|
|
4347
4347
|
const q = u.clientHeight - m.offsetTop - m.offsetHeight, P = Math.max(
|
|
@@ -4354,11 +4354,11 @@ var Sd = "SelectItemAlignedPosition", Ba = l.forwardRef((e, t) => {
|
|
|
4354
4354
|
const K = _.length > 0 && b === _[0].ref.current;
|
|
4355
4355
|
i.style.top = "0px";
|
|
4356
4356
|
const P = Math.max(
|
|
4357
|
-
|
|
4357
|
+
ee,
|
|
4358
4358
|
Y + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
4359
4359
|
(K ? Q : 0) + ce
|
|
4360
4360
|
) + ne;
|
|
4361
|
-
i.style.height = P + "px", m.scrollTop = j -
|
|
4361
|
+
i.style.height = P + "px", m.scrollTop = j - ee + m.offsetTop;
|
|
4362
4362
|
}
|
|
4363
4363
|
i.style.margin = `${be}px 0`, i.style.minHeight = D + "px", i.style.maxHeight = $ + "px", r == null || r(), requestAnimationFrame(() => y.current = !0);
|
|
4364
4364
|
}
|
|
@@ -4801,14 +4801,14 @@ const Hp = _d, Vp = Md, zp = Fd, Wd = Ue(
|
|
|
4801
4801
|
oi,
|
|
4802
4802
|
{
|
|
4803
4803
|
ref: o,
|
|
4804
|
-
className:
|
|
4804
|
+
className: J(Wd({ size: n, className: e })),
|
|
4805
4805
|
...r,
|
|
4806
4806
|
children: [
|
|
4807
4807
|
t,
|
|
4808
4808
|
/* @__PURE__ */ v(Ld, { asChild: !0, children: /* @__PURE__ */ v(
|
|
4809
4809
|
lo,
|
|
4810
4810
|
{
|
|
4811
|
-
className:
|
|
4811
|
+
className: J(
|
|
4812
4812
|
"opacity-50",
|
|
4813
4813
|
n === "xs" || n === "sm" ? "h-3.5 w-3.5" : "h-4 w-4"
|
|
4814
4814
|
)
|
|
@@ -4822,7 +4822,7 @@ const di = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
|
4822
4822
|
li,
|
|
4823
4823
|
{
|
|
4824
4824
|
ref: n,
|
|
4825
|
-
className:
|
|
4825
|
+
className: J(
|
|
4826
4826
|
"flex cursor-default items-center justify-center py-1",
|
|
4827
4827
|
e
|
|
4828
4828
|
),
|
|
@@ -4835,7 +4835,7 @@ const fi = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
|
4835
4835
|
ci,
|
|
4836
4836
|
{
|
|
4837
4837
|
ref: n,
|
|
4838
|
-
className:
|
|
4838
|
+
className: J(
|
|
4839
4839
|
"flex cursor-default items-center justify-center py-1",
|
|
4840
4840
|
e
|
|
4841
4841
|
),
|
|
@@ -4848,7 +4848,7 @@ const Hd = l.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
4848
4848
|
ai,
|
|
4849
4849
|
{
|
|
4850
4850
|
ref: o,
|
|
4851
|
-
className:
|
|
4851
|
+
className: J(
|
|
4852
4852
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-card border bg-popover text-popover-foreground shadow-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4853
4853
|
n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
4854
4854
|
e
|
|
@@ -4860,7 +4860,7 @@ const Hd = l.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
4860
4860
|
/* @__PURE__ */ v(
|
|
4861
4861
|
Dd,
|
|
4862
4862
|
{
|
|
4863
|
-
className:
|
|
4863
|
+
className: J(
|
|
4864
4864
|
"p-1",
|
|
4865
4865
|
n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
4866
4866
|
),
|
|
@@ -4879,7 +4879,7 @@ const Vd = l.forwardRef(({ className: e, ...t }, n) => (
|
|
|
4879
4879
|
ii,
|
|
4880
4880
|
{
|
|
4881
4881
|
ref: n,
|
|
4882
|
-
className:
|
|
4882
|
+
className: J(
|
|
4883
4883
|
"px-2 py-1.5 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground",
|
|
4884
4884
|
e
|
|
4885
4885
|
),
|
|
@@ -4892,7 +4892,7 @@ const zd = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
4892
4892
|
si,
|
|
4893
4893
|
{
|
|
4894
4894
|
ref: r,
|
|
4895
|
-
className:
|
|
4895
|
+
className: J(
|
|
4896
4896
|
"relative flex h-7 w-full cursor-default select-none items-center rounded-control pl-7 pr-2 text-[13px] outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4897
4897
|
e
|
|
4898
4898
|
),
|
|
@@ -4911,7 +4911,7 @@ const jd = l.forwardRef(({ className: e, ...t }, n) => (
|
|
|
4911
4911
|
ui,
|
|
4912
4912
|
{
|
|
4913
4913
|
ref: n,
|
|
4914
|
-
className:
|
|
4914
|
+
className: J("-mx-1 my-1 h-px bg-border", e),
|
|
4915
4915
|
...t
|
|
4916
4916
|
}
|
|
4917
4917
|
)
|
|
@@ -5182,7 +5182,7 @@ const sf = l.forwardRef(
|
|
|
5182
5182
|
ref: o,
|
|
5183
5183
|
decorative: n,
|
|
5184
5184
|
orientation: t,
|
|
5185
|
-
className:
|
|
5185
|
+
className: J(
|
|
5186
5186
|
"shrink-0 bg-border",
|
|
5187
5187
|
t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
5188
5188
|
e
|
|
@@ -5707,7 +5707,7 @@ const xf = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
5707
5707
|
Ui,
|
|
5708
5708
|
{
|
|
5709
5709
|
ref: r,
|
|
5710
|
-
className:
|
|
5710
|
+
className: J("relative overflow-hidden", e),
|
|
5711
5711
|
...n,
|
|
5712
5712
|
children: [
|
|
5713
5713
|
/* @__PURE__ */ v(bf, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
@@ -5722,7 +5722,7 @@ const Hi = l.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
|
|
|
5722
5722
|
{
|
|
5723
5723
|
ref: r,
|
|
5724
5724
|
orientation: t,
|
|
5725
|
-
className:
|
|
5725
|
+
className: J(
|
|
5726
5726
|
"flex touch-none select-none transition-colors",
|
|
5727
5727
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
5728
5728
|
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
@@ -6062,7 +6062,7 @@ const Kp = Bf, Gp = Wf, Yp = Uf, zf = l.forwardRef(({ className: e, sideOffset:
|
|
|
6062
6062
|
ref: o,
|
|
6063
6063
|
sideOffset: t,
|
|
6064
6064
|
forceMount: n,
|
|
6065
|
-
className:
|
|
6065
|
+
className: J(
|
|
6066
6066
|
// Inverted dark tooltip on light bg (and vice versa) — Linear-style.
|
|
6067
6067
|
// Small, tight, no border, subtle shadow. See src/components/ui/CHANGES.md.
|
|
6068
6068
|
"z-50 overflow-hidden rounded-control bg-foreground px-2 py-1 text-[12px] text-background shadow-sm animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -6079,32 +6079,194 @@ function qp({
|
|
|
6079
6079
|
label: t,
|
|
6080
6080
|
options: n,
|
|
6081
6081
|
onChange: r,
|
|
6082
|
-
style: o
|
|
6082
|
+
style: o,
|
|
6083
|
+
fill: a = !1
|
|
6083
6084
|
}) {
|
|
6084
6085
|
return /* @__PURE__ */ v(
|
|
6085
6086
|
Ri,
|
|
6086
6087
|
{
|
|
6087
6088
|
"aria-label": t,
|
|
6088
6089
|
value: e ?? "",
|
|
6089
|
-
onValueChange: (
|
|
6090
|
+
onValueChange: (s) => r(s),
|
|
6090
6091
|
orientation: "horizontal",
|
|
6091
6092
|
style: o,
|
|
6092
|
-
className:
|
|
6093
|
-
|
|
6093
|
+
className: J(
|
|
6094
|
+
"inline-flex h-[30px] items-center gap-0.5 overflow-hidden rounded-control border border-border/60 bg-muted/60 p-0.5",
|
|
6095
|
+
a && "flex w-full"
|
|
6096
|
+
),
|
|
6097
|
+
children: n.map((s) => /* @__PURE__ */ v(
|
|
6094
6098
|
Ai,
|
|
6095
6099
|
{
|
|
6096
|
-
value:
|
|
6097
|
-
title:
|
|
6098
|
-
disabled:
|
|
6099
|
-
className:
|
|
6100
|
-
|
|
6100
|
+
value: s.value,
|
|
6101
|
+
title: s.title,
|
|
6102
|
+
disabled: s.disabled,
|
|
6103
|
+
className: J(
|
|
6104
|
+
"h-6 min-w-0 rounded-control px-2.5 text-[12px] font-medium leading-none text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=checked]:bg-background data-[state=checked]:text-foreground data-[state=checked]:shadow-sm data-[state=checked]:ring-1 data-[state=checked]:ring-border",
|
|
6105
|
+
a && "flex-1 whitespace-nowrap px-1"
|
|
6106
|
+
),
|
|
6107
|
+
children: s.label
|
|
6101
6108
|
},
|
|
6102
|
-
|
|
6109
|
+
s.value
|
|
6103
6110
|
))
|
|
6104
6111
|
}
|
|
6105
6112
|
);
|
|
6106
6113
|
}
|
|
6107
|
-
var
|
|
6114
|
+
var gn = "Switch", [jf] = Se(gn), [Kf, Gf] = jf(gn), Ji = l.forwardRef(
|
|
6115
|
+
(e, t) => {
|
|
6116
|
+
const {
|
|
6117
|
+
__scopeSwitch: n,
|
|
6118
|
+
name: r,
|
|
6119
|
+
checked: o,
|
|
6120
|
+
defaultChecked: a,
|
|
6121
|
+
required: s,
|
|
6122
|
+
disabled: i,
|
|
6123
|
+
value: c = "on",
|
|
6124
|
+
onCheckedChange: u,
|
|
6125
|
+
form: d,
|
|
6126
|
+
...f
|
|
6127
|
+
} = e, [g, y] = l.useState(null), x = G(t, (h) => y(h)), m = l.useRef(!1), b = g ? d || !!g.closest("form") : !0, [E, p] = $e({
|
|
6128
|
+
prop: o,
|
|
6129
|
+
defaultProp: a ?? !1,
|
|
6130
|
+
onChange: u,
|
|
6131
|
+
caller: gn
|
|
6132
|
+
});
|
|
6133
|
+
return /* @__PURE__ */ re(Kf, { scope: n, checked: E, disabled: i, children: [
|
|
6134
|
+
/* @__PURE__ */ v(
|
|
6135
|
+
U.button,
|
|
6136
|
+
{
|
|
6137
|
+
type: "button",
|
|
6138
|
+
role: "switch",
|
|
6139
|
+
"aria-checked": E,
|
|
6140
|
+
"aria-required": s,
|
|
6141
|
+
"data-state": rs(E),
|
|
6142
|
+
"data-disabled": i ? "" : void 0,
|
|
6143
|
+
disabled: i,
|
|
6144
|
+
value: c,
|
|
6145
|
+
...f,
|
|
6146
|
+
ref: x,
|
|
6147
|
+
onClick: k(e.onClick, (h) => {
|
|
6148
|
+
p((w) => !w), b && (m.current = h.isPropagationStopped(), m.current || h.stopPropagation());
|
|
6149
|
+
})
|
|
6150
|
+
}
|
|
6151
|
+
),
|
|
6152
|
+
b && /* @__PURE__ */ v(
|
|
6153
|
+
ns,
|
|
6154
|
+
{
|
|
6155
|
+
control: g,
|
|
6156
|
+
bubbles: !m.current,
|
|
6157
|
+
name: r,
|
|
6158
|
+
value: c,
|
|
6159
|
+
checked: E,
|
|
6160
|
+
required: s,
|
|
6161
|
+
disabled: i,
|
|
6162
|
+
form: d,
|
|
6163
|
+
style: { transform: "translateX(-100%)" }
|
|
6164
|
+
}
|
|
6165
|
+
)
|
|
6166
|
+
] });
|
|
6167
|
+
}
|
|
6168
|
+
);
|
|
6169
|
+
Ji.displayName = gn;
|
|
6170
|
+
var es = "SwitchThumb", ts = l.forwardRef(
|
|
6171
|
+
(e, t) => {
|
|
6172
|
+
const { __scopeSwitch: n, ...r } = e, o = Gf(es, n);
|
|
6173
|
+
return /* @__PURE__ */ v(
|
|
6174
|
+
U.span,
|
|
6175
|
+
{
|
|
6176
|
+
"data-state": rs(o.checked),
|
|
6177
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
6178
|
+
...r,
|
|
6179
|
+
ref: t
|
|
6180
|
+
}
|
|
6181
|
+
);
|
|
6182
|
+
}
|
|
6183
|
+
);
|
|
6184
|
+
ts.displayName = es;
|
|
6185
|
+
var Yf = "SwitchBubbleInput", ns = l.forwardRef(
|
|
6186
|
+
({
|
|
6187
|
+
__scopeSwitch: e,
|
|
6188
|
+
control: t,
|
|
6189
|
+
checked: n,
|
|
6190
|
+
bubbles: r = !0,
|
|
6191
|
+
...o
|
|
6192
|
+
}, a) => {
|
|
6193
|
+
const s = l.useRef(null), i = G(s, a), c = cr(n), u = er(t);
|
|
6194
|
+
return l.useEffect(() => {
|
|
6195
|
+
const d = s.current;
|
|
6196
|
+
if (!d) return;
|
|
6197
|
+
const f = window.HTMLInputElement.prototype, y = Object.getOwnPropertyDescriptor(
|
|
6198
|
+
f,
|
|
6199
|
+
"checked"
|
|
6200
|
+
).set;
|
|
6201
|
+
if (c !== n && y) {
|
|
6202
|
+
const x = new Event("click", { bubbles: r });
|
|
6203
|
+
y.call(d, n), d.dispatchEvent(x);
|
|
6204
|
+
}
|
|
6205
|
+
}, [c, n, r]), /* @__PURE__ */ v(
|
|
6206
|
+
"input",
|
|
6207
|
+
{
|
|
6208
|
+
type: "checkbox",
|
|
6209
|
+
"aria-hidden": !0,
|
|
6210
|
+
defaultChecked: n,
|
|
6211
|
+
...o,
|
|
6212
|
+
tabIndex: -1,
|
|
6213
|
+
ref: i,
|
|
6214
|
+
style: {
|
|
6215
|
+
...o.style,
|
|
6216
|
+
...u,
|
|
6217
|
+
position: "absolute",
|
|
6218
|
+
pointerEvents: "none",
|
|
6219
|
+
opacity: 0,
|
|
6220
|
+
margin: 0
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
6223
|
+
);
|
|
6224
|
+
}
|
|
6225
|
+
);
|
|
6226
|
+
ns.displayName = Yf;
|
|
6227
|
+
function rs(e) {
|
|
6228
|
+
return e ? "checked" : "unchecked";
|
|
6229
|
+
}
|
|
6230
|
+
var os = Ji, Xf = ts;
|
|
6231
|
+
const qf = Ue(
|
|
6232
|
+
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
6233
|
+
{
|
|
6234
|
+
variants: {
|
|
6235
|
+
size: {
|
|
6236
|
+
default: "h-6 w-11",
|
|
6237
|
+
sm: "h-[22px] w-[36px]",
|
|
6238
|
+
xs: "h-4 w-7"
|
|
6239
|
+
}
|
|
6240
|
+
},
|
|
6241
|
+
defaultVariants: {
|
|
6242
|
+
size: "default"
|
|
6243
|
+
}
|
|
6244
|
+
}
|
|
6245
|
+
), Zf = Ue(
|
|
6246
|
+
"pointer-events-none block rounded-full bg-background shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0",
|
|
6247
|
+
{
|
|
6248
|
+
variants: {
|
|
6249
|
+
size: {
|
|
6250
|
+
default: "h-5 w-5 data-[state=checked]:translate-x-5",
|
|
6251
|
+
sm: "size-4 data-[state=checked]:translate-x-4",
|
|
6252
|
+
xs: "h-3 w-3 data-[state=checked]:translate-x-3"
|
|
6253
|
+
}
|
|
6254
|
+
},
|
|
6255
|
+
defaultVariants: {
|
|
6256
|
+
size: "default"
|
|
6257
|
+
}
|
|
6258
|
+
}
|
|
6259
|
+
), Qf = l.forwardRef(({ className: e, size: t, ...n }, r) => /* @__PURE__ */ v(
|
|
6260
|
+
os,
|
|
6261
|
+
{
|
|
6262
|
+
className: J(qf({ size: t, className: e })),
|
|
6263
|
+
...n,
|
|
6264
|
+
ref: r,
|
|
6265
|
+
children: /* @__PURE__ */ v(Xf, { className: J(Zf({ size: t })) })
|
|
6266
|
+
}
|
|
6267
|
+
));
|
|
6268
|
+
Qf.displayName = os.displayName;
|
|
6269
|
+
var as = {}, ae = me && me.__assign || function() {
|
|
6108
6270
|
return ae = Object.assign || function(e) {
|
|
6109
6271
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
6110
6272
|
t = arguments[n];
|
|
@@ -6112,7 +6274,7 @@ var Ji = {}, ae = me && me.__assign || function() {
|
|
|
6112
6274
|
}
|
|
6113
6275
|
return e;
|
|
6114
6276
|
}, ae.apply(this, arguments);
|
|
6115
|
-
},
|
|
6277
|
+
}, Jf = me && me.__createBinding || (Object.create ? function(e, t, n, r) {
|
|
6116
6278
|
r === void 0 && (r = n);
|
|
6117
6279
|
var o = Object.getOwnPropertyDescriptor(t, n);
|
|
6118
6280
|
(!o || ("get" in o ? !t.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
|
|
@@ -6120,16 +6282,16 @@ var Ji = {}, ae = me && me.__assign || function() {
|
|
|
6120
6282
|
} }), Object.defineProperty(e, r, o);
|
|
6121
6283
|
} : function(e, t, n, r) {
|
|
6122
6284
|
r === void 0 && (r = n), e[r] = t[n];
|
|
6123
|
-
}),
|
|
6285
|
+
}), ep = me && me.__setModuleDefault || (Object.create ? function(e, t) {
|
|
6124
6286
|
Object.defineProperty(e, "default", { enumerable: !0, value: t });
|
|
6125
6287
|
} : function(e, t) {
|
|
6126
6288
|
e.default = t;
|
|
6127
|
-
}),
|
|
6289
|
+
}), tp = me && me.__importStar || function(e) {
|
|
6128
6290
|
if (e && e.__esModule) return e;
|
|
6129
6291
|
var t = {};
|
|
6130
|
-
if (e != null) for (var n in e) n !== "default" && Object.prototype.hasOwnProperty.call(e, n) &&
|
|
6131
|
-
return
|
|
6132
|
-
},
|
|
6292
|
+
if (e != null) for (var n in e) n !== "default" && Object.prototype.hasOwnProperty.call(e, n) && Jf(t, e, n);
|
|
6293
|
+
return ep(t, e), t;
|
|
6294
|
+
}, np = me && me.__rest || function(e, t) {
|
|
6133
6295
|
var n = {};
|
|
6134
6296
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6135
6297
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6137,8 +6299,8 @@ var Ji = {}, ae = me && me.__assign || function() {
|
|
|
6137
6299
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
6138
6300
|
return n;
|
|
6139
6301
|
};
|
|
6140
|
-
Object.defineProperty(
|
|
6141
|
-
var ge =
|
|
6302
|
+
Object.defineProperty(as, "__esModule", { value: !0 });
|
|
6303
|
+
var ge = tp(ke), rp = 89, Lt = 90, op = 77, Zr = 57, Qr = 219, Jr = 222, eo = 192, to = 100, ap = 3e3, ip = typeof window < "u" && "navigator" in window && /Win/i.test(navigator.platform), Nn = typeof window < "u" && "navigator" in window && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), $t = "npm__react-simple-code-editor__textarea", sp = (
|
|
6142
6304
|
/* CSS */
|
|
6143
6305
|
`
|
|
6144
6306
|
/**
|
|
@@ -6167,8 +6329,8 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6167
6329
|
}
|
|
6168
6330
|
}
|
|
6169
6331
|
`)
|
|
6170
|
-
),
|
|
6171
|
-
var r = t.autoFocus, o = t.disabled, a = t.form, s = t.highlight, i = t.ignoreTabKey, c = i === void 0 ? !1 : i, u = t.insertSpaces, d = u === void 0 ? !0 : u, f = t.maxLength, g = t.minLength, y = t.name, x = t.onBlur, m = t.onClick, b = t.onFocus, E = t.onKeyDown, p = t.onKeyUp, h = t.onValueChange, w = t.padding, S = w === void 0 ? 0 : w, C = t.placeholder, R = t.preClassName, T = t.readOnly, A = t.required, I = t.style, _ = t.tabSize, $ = _ === void 0 ? 2 : _, z = t.textareaClassName, H = t.textareaId, Y = t.value, M =
|
|
6332
|
+
), lp = ge.forwardRef(function(t, n) {
|
|
6333
|
+
var r = t.autoFocus, o = t.disabled, a = t.form, s = t.highlight, i = t.ignoreTabKey, c = i === void 0 ? !1 : i, u = t.insertSpaces, d = u === void 0 ? !0 : u, f = t.maxLength, g = t.minLength, y = t.name, x = t.onBlur, m = t.onClick, b = t.onFocus, E = t.onKeyDown, p = t.onKeyUp, h = t.onValueChange, w = t.padding, S = w === void 0 ? 0 : w, C = t.placeholder, R = t.preClassName, T = t.readOnly, A = t.required, I = t.style, _ = t.tabSize, $ = _ === void 0 ? 2 : _, z = t.textareaClassName, H = t.textareaId, Y = t.value, M = np(t, ["autoFocus", "disabled", "form", "highlight", "ignoreTabKey", "insertSpaces", "maxLength", "minLength", "name", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onValueChange", "padding", "placeholder", "preClassName", "readOnly", "required", "style", "tabSize", "textareaClassName", "textareaId", "value"]), F = ge.useRef({
|
|
6172
6334
|
stack: [],
|
|
6173
6335
|
offset: -1
|
|
6174
6336
|
}), N = ge.useRef(null), O = ge.useState(!0), D = O[0], Z = O[1], Q = {
|
|
@@ -6176,7 +6338,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6176
6338
|
paddingRight: typeof S == "object" ? S.right : S,
|
|
6177
6339
|
paddingBottom: typeof S == "object" ? S.bottom : S,
|
|
6178
6340
|
paddingLeft: typeof S == "object" ? S.left : S
|
|
6179
|
-
}, oe = s(Y),
|
|
6341
|
+
}, oe = s(Y), ee = function(P, V) {
|
|
6180
6342
|
return P.substring(0, V).split(`
|
|
6181
6343
|
`);
|
|
6182
6344
|
}, ie = ge.useCallback(function(P, V) {
|
|
@@ -6194,8 +6356,8 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6194
6356
|
var Ce = Date.now();
|
|
6195
6357
|
if (V) {
|
|
6196
6358
|
var Le = F.current.stack[F.current.offset];
|
|
6197
|
-
if (Le && Ce - Le.timestamp <
|
|
6198
|
-
var pt = /[^a-z0-9]([a-z0-9]+)$/i, fe = (B =
|
|
6359
|
+
if (Le && Ce - Le.timestamp < ap) {
|
|
6360
|
+
var pt = /[^a-z0-9]([a-z0-9]+)$/i, fe = (B = ee(Le.value, Le.selectionStart).pop()) === null || B === void 0 ? void 0 : B.match(pt), ht = (W = ee(P.value, P.selectionStart).pop()) === null || W === void 0 ? void 0 : W.match(pt);
|
|
6199
6361
|
if (fe != null && fe[1] && (!((te = ht == null ? void 0 : ht[1]) === null || te === void 0) && te.startsWith(fe[1]))) {
|
|
6200
6362
|
F.current.stack[F.current.offset] = ae(ae({}, P), { timestamp: Ce });
|
|
6201
6363
|
return;
|
|
@@ -6231,7 +6393,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6231
6393
|
var V = P.currentTarget, B = V.value, W = V.selectionStart, te = V.selectionEnd, se = (d ? " " : " ").repeat($);
|
|
6232
6394
|
if (P.key === "Tab" && !c && D)
|
|
6233
6395
|
if (P.preventDefault(), P.shiftKey) {
|
|
6234
|
-
var de =
|
|
6396
|
+
var de = ee(B, W), dt = de.length - 1, ft = ee(B, te).length - 1, qe = B.split(`
|
|
6235
6397
|
`).map(function(gt, br) {
|
|
6236
6398
|
return br >= dt && br <= ft && gt.startsWith(se) ? gt.substring(se.length) : gt;
|
|
6237
6399
|
}).join(`
|
|
@@ -6248,7 +6410,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6248
6410
|
});
|
|
6249
6411
|
}
|
|
6250
6412
|
} else if (W !== te) {
|
|
6251
|
-
var de =
|
|
6413
|
+
var de = ee(B, W), Le = de.length - 1, pt = ee(B, te).length - 1, Ce = de[Le];
|
|
6252
6414
|
j({
|
|
6253
6415
|
value: B.split(`
|
|
6254
6416
|
`).map(function(wr, xr) {
|
|
@@ -6286,7 +6448,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6286
6448
|
}
|
|
6287
6449
|
} else if (P.key === "Enter") {
|
|
6288
6450
|
if (W === te) {
|
|
6289
|
-
var mn =
|
|
6451
|
+
var mn = ee(B, W).pop(), Tt = mn == null ? void 0 : mn.match(/^\s+/);
|
|
6290
6452
|
if (Tt != null && Tt[0]) {
|
|
6291
6453
|
P.preventDefault();
|
|
6292
6454
|
var yr = `
|
|
@@ -6317,13 +6479,13 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6317
6479
|
)) && !P.shiftKey && !P.altKey ? (P.preventDefault(), ne()) : (Nn ? (
|
|
6318
6480
|
// Trigger redo with ⌘+Shift+Z on Mac
|
|
6319
6481
|
P.metaKey && P.keyCode === Lt && P.shiftKey
|
|
6320
|
-
) :
|
|
6482
|
+
) : ip ? (
|
|
6321
6483
|
// Trigger redo with Ctrl+Y on Windows
|
|
6322
|
-
P.ctrlKey && P.keyCode ===
|
|
6484
|
+
P.ctrlKey && P.keyCode === rp
|
|
6323
6485
|
) : (
|
|
6324
6486
|
// Trigger redo with Ctrl+Shift+Z on other platforms
|
|
6325
6487
|
P.ctrlKey && P.keyCode === Lt && P.shiftKey
|
|
6326
|
-
)) && !P.altKey ? (P.preventDefault(), X()) : P.keyCode ===
|
|
6488
|
+
)) && !P.altKey ? (P.preventDefault(), X()) : P.keyCode === op && P.ctrlKey && (!Nn || P.shiftKey) && (P.preventDefault(), Z(function(gt) {
|
|
6327
6489
|
return !gt;
|
|
6328
6490
|
}));
|
|
6329
6491
|
}
|
|
@@ -6355,7 +6517,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6355
6517
|
ge.createElement("textarea", { ref: function(P) {
|
|
6356
6518
|
return N.current = P;
|
|
6357
6519
|
}, style: ae(ae(ae({}, mt.editor), mt.textarea), Q), className: $t + (z ? " ".concat(z) : ""), id: H, value: Y, onChange: q, onKeyDown: K, onClick: m, onKeyUp: p, onFocus: b, onBlur: x, disabled: o, form: a, maxLength: f, minLength: g, name: y, placeholder: C, readOnly: T, required: A, autoFocus: r, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "data-gramm": !1 }),
|
|
6358
|
-
ge.createElement("style", { dangerouslySetInnerHTML: { __html:
|
|
6520
|
+
ge.createElement("style", { dangerouslySetInnerHTML: { __html: sp } })
|
|
6359
6521
|
);
|
|
6360
6522
|
}), mt = {
|
|
6361
6523
|
container: {
|
|
@@ -6403,7 +6565,7 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
6403
6565
|
wordBreak: "keep-all",
|
|
6404
6566
|
overflowWrap: "break-word"
|
|
6405
6567
|
}
|
|
6406
|
-
},
|
|
6568
|
+
}, cp = as.default = lp, is = { exports: {} };
|
|
6407
6569
|
(function(e) {
|
|
6408
6570
|
var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
6409
6571
|
/**
|
|
@@ -7041,14 +7203,14 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
7041
7203
|
if (H) {
|
|
7042
7204
|
if (Q = u(F, O, p, z), !Q || Q.index >= p.length)
|
|
7043
7205
|
break;
|
|
7044
|
-
var ce = Q.index, oe = Q.index + Q[0].length,
|
|
7045
|
-
for (
|
|
7046
|
-
N = N.next,
|
|
7047
|
-
if (
|
|
7206
|
+
var ce = Q.index, oe = Q.index + Q[0].length, ee = O;
|
|
7207
|
+
for (ee += N.value.length; ce >= ee; )
|
|
7208
|
+
N = N.next, ee += N.value.length;
|
|
7209
|
+
if (ee -= N.value.length, O = ee, N.value instanceof c)
|
|
7048
7210
|
continue;
|
|
7049
|
-
for (var ie = N; ie !== h.tail && (
|
|
7050
|
-
Z++,
|
|
7051
|
-
Z--, D = p.slice(O,
|
|
7211
|
+
for (var ie = N; ie !== h.tail && (ee < oe || typeof ie.value == "string"); ie = ie.next)
|
|
7212
|
+
Z++, ee += ie.value.length;
|
|
7213
|
+
Z--, D = p.slice(O, ee), Q.index -= O;
|
|
7052
7214
|
} else if (Q = u(F, 0, D, z), !Q)
|
|
7053
7215
|
continue;
|
|
7054
7216
|
var ce = Q.index, L = Q[0], j = D.slice(0, ce), ne = D.slice(ce + L.length), X = O + D.length;
|
|
@@ -7559,8 +7721,8 @@ var ge = Gf(ke), Xf = 89, Lt = 90, qf = 77, Zr = 57, Qr = 219, Jr = 222, eo = 19
|
|
|
7559
7721
|
x || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), x = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
7560
7722
|
};
|
|
7561
7723
|
}();
|
|
7562
|
-
})(
|
|
7563
|
-
var wt =
|
|
7724
|
+
})(is);
|
|
7725
|
+
var wt = is.exports;
|
|
7564
7726
|
const Me = /* @__PURE__ */ hs(wt);
|
|
7565
7727
|
(function(e) {
|
|
7566
7728
|
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", o = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
@@ -8026,7 +8188,7 @@ const no = {
|
|
|
8026
8188
|
number: /\b\d+(?:\.\d+)?\b/,
|
|
8027
8189
|
boolean: /\b(?:true|false|True|False|None|null)\b/,
|
|
8028
8190
|
operator: /==|!=|<=|>=|&&|\|\||[+\-*/=<>!|]/
|
|
8029
|
-
},
|
|
8191
|
+
}, up = {
|
|
8030
8192
|
"jinja-comment": {
|
|
8031
8193
|
pattern: /\{#[\s\S]*?#\}/,
|
|
8032
8194
|
greedy: !0
|
|
@@ -8043,7 +8205,7 @@ const no = {
|
|
|
8043
8205
|
greedy: !0,
|
|
8044
8206
|
inside: no
|
|
8045
8207
|
}
|
|
8046
|
-
},
|
|
8208
|
+
}, dp = {
|
|
8047
8209
|
"tag-delimiter": /^\[\[|\]\]$/,
|
|
8048
8210
|
"semaphor-call": {
|
|
8049
8211
|
pattern: /\b(?:param|filter|filters)\b/,
|
|
@@ -8053,16 +8215,16 @@ const no = {
|
|
|
8053
8215
|
pattern: /\.[A-Za-z_][\w]*/,
|
|
8054
8216
|
alias: "property"
|
|
8055
8217
|
}
|
|
8056
|
-
},
|
|
8218
|
+
}, fp = {
|
|
8057
8219
|
"bracket-param": {
|
|
8058
8220
|
pattern: /\[\[\s*[\s\S]*?\s*\]\]/,
|
|
8059
8221
|
greedy: !0,
|
|
8060
|
-
inside:
|
|
8222
|
+
inside: dp
|
|
8061
8223
|
}
|
|
8062
8224
|
};
|
|
8063
8225
|
Me.languages.sql && (Me.languages.sql.function = /\b[A-Za-z_][\w]*(?=\s*\()/, Me.languages.insertBefore("sql", "comment", {
|
|
8064
|
-
...
|
|
8065
|
-
...
|
|
8226
|
+
...fp,
|
|
8227
|
+
...up
|
|
8066
8228
|
}), Me.languages["sql-jinja"] = Me.languages.sql);
|
|
8067
8229
|
Me.languages.yaml && Me.languages.insertBefore("yaml", "punctuation", {
|
|
8068
8230
|
"plain-scalar": {
|
|
@@ -8070,7 +8232,7 @@ Me.languages.yaml && Me.languages.insertBefore("yaml", "punctuation", {
|
|
|
8070
8232
|
alias: "string"
|
|
8071
8233
|
}
|
|
8072
8234
|
});
|
|
8073
|
-
const
|
|
8235
|
+
const pp = {
|
|
8074
8236
|
js: "javascript",
|
|
8075
8237
|
ts: "typescript",
|
|
8076
8238
|
py: "python",
|
|
@@ -8079,16 +8241,16 @@ const ap = {
|
|
|
8079
8241
|
mysql: "sql",
|
|
8080
8242
|
snowflake: "sql"
|
|
8081
8243
|
};
|
|
8082
|
-
function
|
|
8244
|
+
function hp(e) {
|
|
8083
8245
|
if (!e) return null;
|
|
8084
|
-
const t = e.trim().toLowerCase(), n =
|
|
8246
|
+
const t = e.trim().toLowerCase(), n = pp[t] ?? t;
|
|
8085
8247
|
return Me.languages[n] ? n : null;
|
|
8086
8248
|
}
|
|
8087
8249
|
function Zp(e, t) {
|
|
8088
|
-
const n =
|
|
8250
|
+
const n = hp(t);
|
|
8089
8251
|
return n ? wt.highlight(e, wt.languages[n], n) : null;
|
|
8090
8252
|
}
|
|
8091
|
-
function
|
|
8253
|
+
function gp(e, t, n, r) {
|
|
8092
8254
|
const o = t.map((i, c) => ({ chip: i, index: c })).sort((i, c) => i.chip.start - c.chip.start), a = [];
|
|
8093
8255
|
let s = 0;
|
|
8094
8256
|
for (const { chip: i, index: c } of o)
|
|
@@ -8107,7 +8269,7 @@ function sp(e, t, n, r) {
|
|
|
8107
8269
|
), s = i.end);
|
|
8108
8270
|
return s < e.length && a.push(e.slice(s)), a;
|
|
8109
8271
|
}
|
|
8110
|
-
function
|
|
8272
|
+
function mp({
|
|
8111
8273
|
value: e,
|
|
8112
8274
|
onValueChange: t,
|
|
8113
8275
|
language: n,
|
|
@@ -8156,8 +8318,8 @@ function lp({
|
|
|
8156
8318
|
const O = h.current, D = p.current, Z = D == null ? void 0 : D.querySelector("textarea");
|
|
8157
8319
|
if (!O || !D || !Z) return;
|
|
8158
8320
|
O.session = N.session;
|
|
8159
|
-
const Q = Z.value.length, oe = Math.min(N.selectionStart, Q),
|
|
8160
|
-
Z.setSelectionRange(oe,
|
|
8321
|
+
const Q = Z.value.length, oe = Math.min(N.selectionStart, Q), ee = Math.min(N.selectionEnd, Q);
|
|
8322
|
+
Z.setSelectionRange(oe, ee), D.scrollTop = N.scrollTop, D.scrollLeft = N.scrollLeft, N.wasFocused && Z.focus();
|
|
8161
8323
|
},
|
|
8162
8324
|
focus() {
|
|
8163
8325
|
var N, O;
|
|
@@ -8244,7 +8406,7 @@ function lp({
|
|
|
8244
8406
|
paddingLeft: A.left,
|
|
8245
8407
|
wordBreak: "keep-all"
|
|
8246
8408
|
},
|
|
8247
|
-
children:
|
|
8409
|
+
children: gp(
|
|
8248
8410
|
e,
|
|
8249
8411
|
x,
|
|
8250
8412
|
m,
|
|
@@ -8268,7 +8430,7 @@ function lp({
|
|
|
8268
8430
|
}
|
|
8269
8431
|
) : null,
|
|
8270
8432
|
/* @__PURE__ */ v(
|
|
8271
|
-
|
|
8433
|
+
cp,
|
|
8272
8434
|
{
|
|
8273
8435
|
ref: h,
|
|
8274
8436
|
value: e,
|
|
@@ -8300,162 +8462,7 @@ function lp({
|
|
|
8300
8462
|
}
|
|
8301
8463
|
);
|
|
8302
8464
|
}
|
|
8303
|
-
const Qp = jn(
|
|
8304
|
-
var gn = "Switch", [cp] = Se(gn), [up, dp] = cp(gn), ts = l.forwardRef(
|
|
8305
|
-
(e, t) => {
|
|
8306
|
-
const {
|
|
8307
|
-
__scopeSwitch: n,
|
|
8308
|
-
name: r,
|
|
8309
|
-
checked: o,
|
|
8310
|
-
defaultChecked: a,
|
|
8311
|
-
required: s,
|
|
8312
|
-
disabled: i,
|
|
8313
|
-
value: c = "on",
|
|
8314
|
-
onCheckedChange: u,
|
|
8315
|
-
form: d,
|
|
8316
|
-
...f
|
|
8317
|
-
} = e, [g, y] = l.useState(null), x = G(t, (h) => y(h)), m = l.useRef(!1), b = g ? d || !!g.closest("form") : !0, [E, p] = $e({
|
|
8318
|
-
prop: o,
|
|
8319
|
-
defaultProp: a ?? !1,
|
|
8320
|
-
onChange: u,
|
|
8321
|
-
caller: gn
|
|
8322
|
-
});
|
|
8323
|
-
return /* @__PURE__ */ re(up, { scope: n, checked: E, disabled: i, children: [
|
|
8324
|
-
/* @__PURE__ */ v(
|
|
8325
|
-
U.button,
|
|
8326
|
-
{
|
|
8327
|
-
type: "button",
|
|
8328
|
-
role: "switch",
|
|
8329
|
-
"aria-checked": E,
|
|
8330
|
-
"aria-required": s,
|
|
8331
|
-
"data-state": as(E),
|
|
8332
|
-
"data-disabled": i ? "" : void 0,
|
|
8333
|
-
disabled: i,
|
|
8334
|
-
value: c,
|
|
8335
|
-
...f,
|
|
8336
|
-
ref: x,
|
|
8337
|
-
onClick: k(e.onClick, (h) => {
|
|
8338
|
-
p((w) => !w), b && (m.current = h.isPropagationStopped(), m.current || h.stopPropagation());
|
|
8339
|
-
})
|
|
8340
|
-
}
|
|
8341
|
-
),
|
|
8342
|
-
b && /* @__PURE__ */ v(
|
|
8343
|
-
os,
|
|
8344
|
-
{
|
|
8345
|
-
control: g,
|
|
8346
|
-
bubbles: !m.current,
|
|
8347
|
-
name: r,
|
|
8348
|
-
value: c,
|
|
8349
|
-
checked: E,
|
|
8350
|
-
required: s,
|
|
8351
|
-
disabled: i,
|
|
8352
|
-
form: d,
|
|
8353
|
-
style: { transform: "translateX(-100%)" }
|
|
8354
|
-
}
|
|
8355
|
-
)
|
|
8356
|
-
] });
|
|
8357
|
-
}
|
|
8358
|
-
);
|
|
8359
|
-
ts.displayName = gn;
|
|
8360
|
-
var ns = "SwitchThumb", rs = l.forwardRef(
|
|
8361
|
-
(e, t) => {
|
|
8362
|
-
const { __scopeSwitch: n, ...r } = e, o = dp(ns, n);
|
|
8363
|
-
return /* @__PURE__ */ v(
|
|
8364
|
-
U.span,
|
|
8365
|
-
{
|
|
8366
|
-
"data-state": as(o.checked),
|
|
8367
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
8368
|
-
...r,
|
|
8369
|
-
ref: t
|
|
8370
|
-
}
|
|
8371
|
-
);
|
|
8372
|
-
}
|
|
8373
|
-
);
|
|
8374
|
-
rs.displayName = ns;
|
|
8375
|
-
var fp = "SwitchBubbleInput", os = l.forwardRef(
|
|
8376
|
-
({
|
|
8377
|
-
__scopeSwitch: e,
|
|
8378
|
-
control: t,
|
|
8379
|
-
checked: n,
|
|
8380
|
-
bubbles: r = !0,
|
|
8381
|
-
...o
|
|
8382
|
-
}, a) => {
|
|
8383
|
-
const s = l.useRef(null), i = G(s, a), c = cr(n), u = er(t);
|
|
8384
|
-
return l.useEffect(() => {
|
|
8385
|
-
const d = s.current;
|
|
8386
|
-
if (!d) return;
|
|
8387
|
-
const f = window.HTMLInputElement.prototype, y = Object.getOwnPropertyDescriptor(
|
|
8388
|
-
f,
|
|
8389
|
-
"checked"
|
|
8390
|
-
).set;
|
|
8391
|
-
if (c !== n && y) {
|
|
8392
|
-
const x = new Event("click", { bubbles: r });
|
|
8393
|
-
y.call(d, n), d.dispatchEvent(x);
|
|
8394
|
-
}
|
|
8395
|
-
}, [c, n, r]), /* @__PURE__ */ v(
|
|
8396
|
-
"input",
|
|
8397
|
-
{
|
|
8398
|
-
type: "checkbox",
|
|
8399
|
-
"aria-hidden": !0,
|
|
8400
|
-
defaultChecked: n,
|
|
8401
|
-
...o,
|
|
8402
|
-
tabIndex: -1,
|
|
8403
|
-
ref: i,
|
|
8404
|
-
style: {
|
|
8405
|
-
...o.style,
|
|
8406
|
-
...u,
|
|
8407
|
-
position: "absolute",
|
|
8408
|
-
pointerEvents: "none",
|
|
8409
|
-
opacity: 0,
|
|
8410
|
-
margin: 0
|
|
8411
|
-
}
|
|
8412
|
-
}
|
|
8413
|
-
);
|
|
8414
|
-
}
|
|
8415
|
-
);
|
|
8416
|
-
os.displayName = fp;
|
|
8417
|
-
function as(e) {
|
|
8418
|
-
return e ? "checked" : "unchecked";
|
|
8419
|
-
}
|
|
8420
|
-
var is = ts, pp = rs;
|
|
8421
|
-
const hp = Ue(
|
|
8422
|
-
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
8423
|
-
{
|
|
8424
|
-
variants: {
|
|
8425
|
-
size: {
|
|
8426
|
-
default: "h-6 w-11",
|
|
8427
|
-
sm: "h-[22px] w-[36px]",
|
|
8428
|
-
xs: "h-4 w-7"
|
|
8429
|
-
}
|
|
8430
|
-
},
|
|
8431
|
-
defaultVariants: {
|
|
8432
|
-
size: "default"
|
|
8433
|
-
}
|
|
8434
|
-
}
|
|
8435
|
-
), gp = Ue(
|
|
8436
|
-
"pointer-events-none block rounded-full bg-background shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0",
|
|
8437
|
-
{
|
|
8438
|
-
variants: {
|
|
8439
|
-
size: {
|
|
8440
|
-
default: "h-5 w-5 data-[state=checked]:translate-x-5",
|
|
8441
|
-
sm: "size-4 data-[state=checked]:translate-x-4",
|
|
8442
|
-
xs: "h-3 w-3 data-[state=checked]:translate-x-3"
|
|
8443
|
-
}
|
|
8444
|
-
},
|
|
8445
|
-
defaultVariants: {
|
|
8446
|
-
size: "default"
|
|
8447
|
-
}
|
|
8448
|
-
}
|
|
8449
|
-
), mp = l.forwardRef(({ className: e, size: t, ...n }, r) => /* @__PURE__ */ v(
|
|
8450
|
-
is,
|
|
8451
|
-
{
|
|
8452
|
-
className: ee(hp({ size: t, className: e })),
|
|
8453
|
-
...n,
|
|
8454
|
-
ref: r,
|
|
8455
|
-
children: /* @__PURE__ */ v(pp, { className: ee(gp({ size: t })) })
|
|
8456
|
-
}
|
|
8457
|
-
));
|
|
8458
|
-
mp.displayName = is.displayName;
|
|
8465
|
+
const Qp = jn(mp);
|
|
8459
8466
|
function vp(e) {
|
|
8460
8467
|
return e === "muted" ? "hsl(var(--semaphor-muted))" : e === "background" ? "hsl(var(--semaphor-background))" : e;
|
|
8461
8468
|
}
|
|
@@ -8467,8 +8474,8 @@ function Jp({ children: e, right: t }) {
|
|
|
8467
8474
|
] });
|
|
8468
8475
|
}
|
|
8469
8476
|
function eh({ label: e, state: t, children: n }) {
|
|
8470
|
-
return /* @__PURE__ */ re("div", { className:
|
|
8471
|
-
/* @__PURE__ */ v("span", { className:
|
|
8477
|
+
return /* @__PURE__ */ re("div", { className: J("grid grid-cols-[104px_minmax(0,1fr)_28px] items-center gap-x-2 gap-y-1 px-4", e ? "py-2" : "-mt-1 pb-2"), children: [
|
|
8478
|
+
/* @__PURE__ */ v("span", { className: J("text-[12px]", t != null && t.changed ? "font-medium text-foreground" : "text-muted-foreground"), children: e }),
|
|
8472
8479
|
/* @__PURE__ */ v("div", { className: "flex min-w-0 items-center gap-1.5", children: n }),
|
|
8473
8480
|
t != null && t.changed ? /* @__PURE__ */ v(ss, { title: `Back to your brand's value: ${t.inherited}`, label: e || "this setting", onClick: t.onReset }) : t != null && t.hostShows ? /* @__PURE__ */ v("span", { className: "text-right text-[10px] text-muted-foreground/70", title: "Set by the app this dashboard is shown in", children: "App" }) : /* @__PURE__ */ v("span", {}),
|
|
8474
8481
|
t != null && t.hostShows ? /* @__PURE__ */ v("p", { className: "col-span-2 col-start-2 text-[11px] leading-snug text-muted-foreground", children: t.changed ? `This app shows ${t.hostShows} here. Yours is saved and shows everywhere else.` : `This app shows ${t.hostShows} here.` }) : null
|
|
@@ -8515,7 +8522,7 @@ function bp({ look: e }) {
|
|
|
8515
8522
|
{
|
|
8516
8523
|
className: "grid h-11 grid-cols-2 overflow-hidden rounded-[4px]",
|
|
8517
8524
|
style: { background: vp(e.canvas), padding: Math.max(e.canvasPadding * 0.4, n ? 1 : 0), gap: e.spacing * 0.4 },
|
|
8518
|
-
children: [`${r}px 0 0 0`, `0 ${r}px 0 0`, `0 0 ${r}px ${r}px`].map((a, s) => /* @__PURE__ */ v("span", { className:
|
|
8525
|
+
children: [`${r}px 0 0 0`, `0 ${r}px 0 0`, `0 0 ${r}px ${r}px`].map((a, s) => /* @__PURE__ */ v("span", { className: J("p-1", s === 2 && "col-span-2"), style: o(n ? a : `${r}px`), children: /* @__PURE__ */ v("span", { className: "block h-[3px] w-1/2 rounded-full bg-muted-foreground/30" }) }, a))
|
|
8519
8526
|
}
|
|
8520
8527
|
);
|
|
8521
8528
|
}
|
|
@@ -8532,7 +8539,7 @@ function rh({
|
|
|
8532
8539
|
}) {
|
|
8533
8540
|
return /* @__PURE__ */ re("div", { className: "px-4 pb-3 pt-2.5", children: [
|
|
8534
8541
|
/* @__PURE__ */ re("div", { className: "flex h-6 items-center justify-between", children: [
|
|
8535
|
-
/* @__PURE__ */ v("span", { className:
|
|
8542
|
+
/* @__PURE__ */ v("span", { className: J("text-[12px]", o ? "font-medium text-foreground" : "text-muted-foreground"), children: e }),
|
|
8536
8543
|
o ? /* @__PURE__ */ v(ss, { title: a, label: e, onClick: i }) : null
|
|
8537
8544
|
] }),
|
|
8538
8545
|
/* @__PURE__ */ v(
|
|
@@ -8549,7 +8556,7 @@ function rh({
|
|
|
8549
8556
|
value: u.value,
|
|
8550
8557
|
title: u.title,
|
|
8551
8558
|
onClick: () => n === u.value && s(u.value),
|
|
8552
|
-
className:
|
|
8559
|
+
className: J(
|
|
8553
8560
|
"rounded-[6px] border p-1 text-left transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
8554
8561
|
n === u.value ? "border-foreground ring-1 ring-foreground" : "border-border hover:border-foreground/40"
|
|
8555
8562
|
),
|
|
@@ -8648,7 +8655,7 @@ export {
|
|
|
8648
8655
|
Wu as az,
|
|
8649
8656
|
vp as b,
|
|
8650
8657
|
ve as c,
|
|
8651
|
-
|
|
8658
|
+
Qf as d,
|
|
8652
8659
|
$p as e,
|
|
8653
8660
|
Wp as f,
|
|
8654
8661
|
Np as g,
|