@stackable-labs/embeddables 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +77 -74
- package/dist/react.js +5 -2
- package/dist/stackable-widget.external.js +2 -2
- package/dist/stackable-widget.js +11 -11
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p, Fragment as et, jsxs as te } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
3
|
+
import Ce, { forwardRef as Jn, createElement as wr, useState as hi, useLayoutEffect as gi } from "react";
|
|
4
4
|
import * as zt from "react-dom";
|
|
5
5
|
import vi from "react-dom";
|
|
6
6
|
/**
|
|
@@ -744,7 +744,7 @@ const Sc = (e, t) => {
|
|
|
744
744
|
}, Wc = [], ne = (e) => {
|
|
745
745
|
const t = (r) => r[e] || Wc;
|
|
746
746
|
return t.isThemeGetter = !0, t;
|
|
747
|
-
}, uo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Uc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Gc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Yc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
747
|
+
}, uo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Uc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Gc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Yc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => Uc.test(e), F = (e) => !!e && !Number.isNaN(Number(e)), _e = (e) => !!e && Number.isInteger(Number(e)), sr = (e) => e.endsWith("%") && F(e.slice(0, -1)), Se = (e) => Gc.test(e), po = () => !0, Xc = (e) => (
|
|
748
748
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
749
749
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
750
750
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -774,13 +774,13 @@ const Sc = (e, t) => {
|
|
|
774
774
|
"bottom-left",
|
|
775
775
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
776
776
|
"left-bottom"
|
|
777
|
-
], k = () => [...S(), N, T], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], C = () => [N, T, c], P = () => [
|
|
778
|
-
span: ["full",
|
|
779
|
-
},
|
|
777
|
+
], k = () => [...S(), N, T], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], C = () => [N, T, c], P = () => [Ne, "full", "auto", ...C()], O = () => [_e, "none", "subgrid", N, T], $ = () => ["auto", {
|
|
778
|
+
span: ["full", _e, N, T]
|
|
779
|
+
}, _e, N, T], B = () => [_e, "auto", N, T], G = () => ["auto", "min", "max", "fr", N, T], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...C()], H = () => [Ne, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], D = () => [Ne, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], q = () => [Ne, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], A = () => [e, N, T], de = () => [...S(), bn, vn, {
|
|
780
780
|
position: [N, T]
|
|
781
|
-
}],
|
|
781
|
+
}], Ae = () => ["no-repeat", {
|
|
782
782
|
repeat: ["", "x", "y", "space", "round"]
|
|
783
|
-
}],
|
|
783
|
+
}], Te = () => ["auto", "cover", "contain", al, el, {
|
|
784
784
|
size: [N, T]
|
|
785
785
|
}], ue = () => [sr, it, Fe], ee = () => [
|
|
786
786
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -797,7 +797,7 @@ const Sc = (e, t) => {
|
|
|
797
797
|
b,
|
|
798
798
|
N,
|
|
799
799
|
T
|
|
800
|
-
], j = () => ["none", F, N, T], K = () => ["none", F, N, T], oe = () => [F, N, T], se = () => [
|
|
800
|
+
], j = () => ["none", F, N, T], K = () => ["none", F, N, T], oe = () => [F, N, T], se = () => [Ne, "full", ...C()];
|
|
801
801
|
return {
|
|
802
802
|
cacheSize: 500,
|
|
803
803
|
theme: {
|
|
@@ -830,7 +830,7 @@ const Sc = (e, t) => {
|
|
|
830
830
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
831
831
|
*/
|
|
832
832
|
aspect: [{
|
|
833
|
-
aspect: ["auto", "square",
|
|
833
|
+
aspect: ["auto", "square", Ne, T, N, v]
|
|
834
834
|
}],
|
|
835
835
|
/**
|
|
836
836
|
* Container
|
|
@@ -1069,7 +1069,7 @@ const Sc = (e, t) => {
|
|
|
1069
1069
|
* @see https://tailwindcss.com/docs/z-index
|
|
1070
1070
|
*/
|
|
1071
1071
|
z: [{
|
|
1072
|
-
z: [
|
|
1072
|
+
z: [_e, "auto", N, T]
|
|
1073
1073
|
}],
|
|
1074
1074
|
// ------------------------
|
|
1075
1075
|
// --- Flexbox and Grid ---
|
|
@@ -1079,7 +1079,7 @@ const Sc = (e, t) => {
|
|
|
1079
1079
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1080
1080
|
*/
|
|
1081
1081
|
basis: [{
|
|
1082
|
-
basis: [
|
|
1082
|
+
basis: [Ne, "full", "auto", i, ...C()]
|
|
1083
1083
|
}],
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Flex Direction
|
|
@@ -1100,7 +1100,7 @@ const Sc = (e, t) => {
|
|
|
1100
1100
|
* @see https://tailwindcss.com/docs/flex
|
|
1101
1101
|
*/
|
|
1102
1102
|
flex: [{
|
|
1103
|
-
flex: [F,
|
|
1103
|
+
flex: [F, Ne, "auto", "initial", "none", T]
|
|
1104
1104
|
}],
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Flex Grow
|
|
@@ -1121,7 +1121,7 @@ const Sc = (e, t) => {
|
|
|
1121
1121
|
* @see https://tailwindcss.com/docs/order
|
|
1122
1122
|
*/
|
|
1123
1123
|
order: [{
|
|
1124
|
-
order: [
|
|
1124
|
+
order: [_e, "first", "last", "none", N, T]
|
|
1125
1125
|
}],
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Grid Template Columns
|
|
@@ -1859,14 +1859,14 @@ const Sc = (e, t) => {
|
|
|
1859
1859
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1860
1860
|
*/
|
|
1861
1861
|
"bg-repeat": [{
|
|
1862
|
-
bg:
|
|
1862
|
+
bg: Ae()
|
|
1863
1863
|
}],
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Background Size
|
|
1866
1866
|
* @see https://tailwindcss.com/docs/background-size
|
|
1867
1867
|
*/
|
|
1868
1868
|
"bg-size": [{
|
|
1869
|
-
bg:
|
|
1869
|
+
bg: Te()
|
|
1870
1870
|
}],
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Background Image
|
|
@@ -1876,9 +1876,9 @@ const Sc = (e, t) => {
|
|
|
1876
1876
|
bg: ["none", {
|
|
1877
1877
|
linear: [{
|
|
1878
1878
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1879
|
-
},
|
|
1879
|
+
}, _e, N, T],
|
|
1880
1880
|
radial: ["", N, T],
|
|
1881
|
-
conic: [
|
|
1881
|
+
conic: [_e, N, T]
|
|
1882
1882
|
}, sl, nl]
|
|
1883
1883
|
}],
|
|
1884
1884
|
/**
|
|
@@ -2564,14 +2564,14 @@ const Sc = (e, t) => {
|
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2565
2565
|
*/
|
|
2566
2566
|
"mask-repeat": [{
|
|
2567
|
-
mask:
|
|
2567
|
+
mask: Ae()
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Mask Size
|
|
2571
2571
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2572
2572
|
*/
|
|
2573
2573
|
"mask-size": [{
|
|
2574
|
-
mask:
|
|
2574
|
+
mask: Te()
|
|
2575
2575
|
}],
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Mask Type
|
|
@@ -3632,27 +3632,27 @@ function Ao(e) {
|
|
|
3632
3632
|
t,
|
|
3633
3633
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3634
3634
|
), s = (h) => {
|
|
3635
|
-
const { scope: v, children: w } = h, y =
|
|
3635
|
+
const { scope: v, children: w } = h, y = Ce.useRef(null), x = Ce.useRef(/* @__PURE__ */ new Map()).current;
|
|
3636
3636
|
return /* @__PURE__ */ p(o, { scope: v, itemMap: x, collectionRef: y, children: w });
|
|
3637
3637
|
};
|
|
3638
3638
|
s.displayName = t;
|
|
3639
|
-
const i = e + "CollectionSlot", c = /* @__PURE__ */ lt(i), d =
|
|
3639
|
+
const i = e + "CollectionSlot", c = /* @__PURE__ */ lt(i), d = Ce.forwardRef(
|
|
3640
3640
|
(h, v) => {
|
|
3641
3641
|
const { scope: w, children: y } = h, x = a(i, w), S = U(v, x.collectionRef);
|
|
3642
3642
|
return /* @__PURE__ */ p(c, { ref: S, children: y });
|
|
3643
3643
|
}
|
|
3644
3644
|
);
|
|
3645
3645
|
d.displayName = i;
|
|
3646
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ lt(u), g =
|
|
3646
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ lt(u), g = Ce.forwardRef(
|
|
3647
3647
|
(h, v) => {
|
|
3648
|
-
const { scope: w, children: y, ...x } = h, S =
|
|
3649
|
-
return
|
|
3648
|
+
const { scope: w, children: y, ...x } = h, S = Ce.useRef(null), k = U(v, S), R = a(u, w);
|
|
3649
|
+
return Ce.useEffect(() => (R.itemMap.set(S, { ref: S, ...x }), () => void R.itemMap.delete(S))), /* @__PURE__ */ p(m, { [f]: "", ref: k, children: y });
|
|
3650
3650
|
}
|
|
3651
3651
|
);
|
|
3652
3652
|
g.displayName = u;
|
|
3653
3653
|
function b(h) {
|
|
3654
3654
|
const v = a(e + "CollectionConsumer", h);
|
|
3655
|
-
return
|
|
3655
|
+
return Ce.useCallback(() => {
|
|
3656
3656
|
const y = v.collectionRef.current;
|
|
3657
3657
|
if (!y) return [];
|
|
3658
3658
|
const x = Array.from(y.querySelectorAll(`[${f}]`));
|
|
@@ -3675,7 +3675,7 @@ function L(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
3675
3675
|
}
|
|
3676
3676
|
var re = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3677
3677
|
}, Sl = l[" useInsertionEffect ".trim().toString()] || re;
|
|
3678
|
-
function
|
|
3678
|
+
function ke({
|
|
3679
3679
|
prop: e,
|
|
3680
3680
|
defaultProp: t,
|
|
3681
3681
|
onChange: r = () => {
|
|
@@ -3805,7 +3805,7 @@ var Ft = "Collapsible", [Nl] = ie(Ft), [_l, Hr] = Nl(Ft), To = l.forwardRef(
|
|
|
3805
3805
|
disabled: a,
|
|
3806
3806
|
onOpenChange: s,
|
|
3807
3807
|
...i
|
|
3808
|
-
} = e, [c, d] =
|
|
3808
|
+
} = e, [c, d] = ke({
|
|
3809
3809
|
prop: n,
|
|
3810
3810
|
defaultProp: o ?? !1,
|
|
3811
3811
|
onChange: s,
|
|
@@ -4722,7 +4722,7 @@ var Mn;
|
|
|
4722
4722
|
function $d() {
|
|
4723
4723
|
if (Mn) return hr;
|
|
4724
4724
|
Mn = 1;
|
|
4725
|
-
var e =
|
|
4725
|
+
var e = Ce;
|
|
4726
4726
|
function t(f, m) {
|
|
4727
4727
|
return f === m && (f !== 0 || 1 / f === 1 / m) || f !== f && m !== m;
|
|
4728
4728
|
}
|
|
@@ -4876,7 +4876,7 @@ function Zd(e) {
|
|
|
4876
4876
|
value: u = "on",
|
|
4877
4877
|
// @ts-expect-error
|
|
4878
4878
|
internal_do_not_use_render: f
|
|
4879
|
-
} = e, [m, g] =
|
|
4879
|
+
} = e, [m, g] = ke({
|
|
4880
4880
|
prop: r,
|
|
4881
4881
|
defaultProp: o ?? !1,
|
|
4882
4882
|
onChange: c,
|
|
@@ -5102,10 +5102,10 @@ const Jd = ["top", "right", "bottom", "left"], Me = Math.min, ce = Math.max, Tt
|
|
|
5102
5102
|
function kr(e, t, r) {
|
|
5103
5103
|
return ce(e, Me(t, r));
|
|
5104
5104
|
}
|
|
5105
|
-
function
|
|
5105
|
+
function Ee(e, t) {
|
|
5106
5106
|
return typeof e == "function" ? e(t) : e;
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function Re(e) {
|
|
5109
5109
|
return e.split("-")[0];
|
|
5110
5110
|
}
|
|
5111
5111
|
function tt(e) {
|
|
@@ -5152,11 +5152,11 @@ function au(e, t, r) {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
function su(e, t, r, n) {
|
|
5154
5154
|
const o = tt(e);
|
|
5155
|
-
let a = au(
|
|
5155
|
+
let a = au(Re(e), r === "start", n);
|
|
5156
5156
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(Er)))), a;
|
|
5157
5157
|
}
|
|
5158
5158
|
function Nt(e) {
|
|
5159
|
-
const t =
|
|
5159
|
+
const t = Re(e);
|
|
5160
5160
|
return eu[t] + e.slice(t.length);
|
|
5161
5161
|
}
|
|
5162
5162
|
function iu(e) {
|
|
@@ -5199,7 +5199,7 @@ function Fn(e, t, r) {
|
|
|
5199
5199
|
reference: n,
|
|
5200
5200
|
floating: o
|
|
5201
5201
|
} = e;
|
|
5202
|
-
const a = be(t), s = qr(t), i = Yr(s), c =
|
|
5202
|
+
const a = be(t), s = qr(t), i = Yr(s), c = Re(t), d = a === "y", u = n.x + n.width / 2 - o.width / 2, f = n.y + n.height / 2 - o.height / 2, m = n[i] / 2 - o[i] / 2;
|
|
5203
5203
|
let g;
|
|
5204
5204
|
switch (c) {
|
|
5205
5205
|
case "top":
|
|
@@ -5258,7 +5258,7 @@ async function cu(e, t) {
|
|
|
5258
5258
|
elementContext: f = "floating",
|
|
5259
5259
|
altBoundary: m = !1,
|
|
5260
5260
|
padding: g = 0
|
|
5261
|
-
} =
|
|
5261
|
+
} = Ee(t, e), b = sa(g), v = i[m ? f === "floating" ? "reference" : "floating" : f], w = _t(await a.getClippingRect({
|
|
5262
5262
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(v))) == null || r ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
5263
5263
|
boundary: d,
|
|
5264
5264
|
rootBoundary: u,
|
|
@@ -5366,7 +5366,7 @@ const lu = 50, du = async (e, t, r) => {
|
|
|
5366
5366
|
} = t, {
|
|
5367
5367
|
element: d,
|
|
5368
5368
|
padding: u = 0
|
|
5369
|
-
} =
|
|
5369
|
+
} = Ee(e, t) || {};
|
|
5370
5370
|
if (d == null)
|
|
5371
5371
|
return {};
|
|
5372
5372
|
const f = sa(u), m = {
|
|
@@ -5409,10 +5409,10 @@ const lu = 50, du = async (e, t, r) => {
|
|
|
5409
5409
|
fallbackAxisSideDirection: b = "none",
|
|
5410
5410
|
flipAlignment: h = !0,
|
|
5411
5411
|
...v
|
|
5412
|
-
} =
|
|
5412
|
+
} = Ee(e, t);
|
|
5413
5413
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
5414
5414
|
return {};
|
|
5415
|
-
const w =
|
|
5415
|
+
const w = Re(o), y = be(i), x = Re(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), k = m || (x || !h ? [Nt(i)] : ru(i)), R = b !== "none";
|
|
5416
5416
|
!m && R && k.push(...su(i, h, b, S));
|
|
5417
5417
|
const E = [i, ...k], C = await c.detectOverflow(t, v), P = [];
|
|
5418
5418
|
let O = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
@@ -5492,7 +5492,7 @@ const pu = function(e) {
|
|
|
5492
5492
|
} = t, {
|
|
5493
5493
|
strategy: o = "referenceHidden",
|
|
5494
5494
|
...a
|
|
5495
|
-
} =
|
|
5495
|
+
} = Ee(e, t);
|
|
5496
5496
|
switch (o) {
|
|
5497
5497
|
case "referenceHidden": {
|
|
5498
5498
|
const s = await n.detectOverflow(t, {
|
|
@@ -5529,7 +5529,7 @@ async function mu(e, t) {
|
|
|
5529
5529
|
placement: r,
|
|
5530
5530
|
platform: n,
|
|
5531
5531
|
elements: o
|
|
5532
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s =
|
|
5532
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Re(r), i = tt(r), c = be(r) === "y", d = ia.has(s) ? -1 : 1, u = a && c ? -1 : 1, f = Ee(t, e);
|
|
5533
5533
|
let {
|
|
5534
5534
|
mainAxis: m,
|
|
5535
5535
|
crossAxis: g,
|
|
@@ -5599,10 +5599,10 @@ const hu = function(e) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
},
|
|
5601
5601
|
...d
|
|
5602
|
-
} =
|
|
5602
|
+
} = Ee(e, t), u = {
|
|
5603
5603
|
x: r,
|
|
5604
5604
|
y: n
|
|
5605
|
-
}, f = await a.detectOverflow(t, d), m = be(
|
|
5605
|
+
}, f = await a.detectOverflow(t, d), m = be(Re(o)), g = Kr(m);
|
|
5606
5606
|
let b = u[g], h = u[m];
|
|
5607
5607
|
if (s) {
|
|
5608
5608
|
const w = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", x = b + f[w], S = b - f[y];
|
|
@@ -5644,12 +5644,12 @@ const hu = function(e) {
|
|
|
5644
5644
|
offset: i = 0,
|
|
5645
5645
|
mainAxis: c = !0,
|
|
5646
5646
|
crossAxis: d = !0
|
|
5647
|
-
} =
|
|
5647
|
+
} = Ee(e, t), u = {
|
|
5648
5648
|
x: r,
|
|
5649
5649
|
y: n
|
|
5650
5650
|
}, f = be(o), m = Kr(f);
|
|
5651
5651
|
let g = u[m], b = u[f];
|
|
5652
|
-
const h =
|
|
5652
|
+
const h = Ee(i, t), v = typeof h == "number" ? {
|
|
5653
5653
|
mainAxis: h,
|
|
5654
5654
|
crossAxis: 0
|
|
5655
5655
|
} : {
|
|
@@ -5663,7 +5663,7 @@ const hu = function(e) {
|
|
|
5663
5663
|
}
|
|
5664
5664
|
if (d) {
|
|
5665
5665
|
var w, y;
|
|
5666
|
-
const x = m === "y" ? "width" : "height", S = ia.has(
|
|
5666
|
+
const x = m === "y" ? "width" : "height", S = ia.has(Re(o)), k = a.reference[f] - a.floating[x] + (S && ((w = s.offset) == null ? void 0 : w[f]) || 0) + (S ? 0 : v.crossAxis), R = a.reference[f] + a.reference[x] + (S ? 0 : ((y = s.offset) == null ? void 0 : y[f]) || 0) - (S ? v.crossAxis : 0);
|
|
5667
5667
|
b < k ? b = k : b > R && (b = R);
|
|
5668
5668
|
}
|
|
5669
5669
|
return {
|
|
@@ -5687,7 +5687,7 @@ const hu = function(e) {
|
|
|
5687
5687
|
apply: c = () => {
|
|
5688
5688
|
},
|
|
5689
5689
|
...d
|
|
5690
|
-
} =
|
|
5690
|
+
} = Ee(e, t), u = await s.detectOverflow(t, d), f = Re(o), m = tt(o), g = be(o) === "y", {
|
|
5691
5691
|
width: b,
|
|
5692
5692
|
height: h
|
|
5693
5693
|
} = a.floating;
|
|
@@ -5733,7 +5733,7 @@ function ca(e) {
|
|
|
5733
5733
|
function me(e) {
|
|
5734
5734
|
return Ut() ? e instanceof Element || e instanceof le(e).Element : !1;
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function Pe(e) {
|
|
5737
5737
|
return Ut() ? e instanceof HTMLElement || e instanceof le(e).HTMLElement : !1;
|
|
5738
5738
|
}
|
|
5739
5739
|
function Vn(e) {
|
|
@@ -5771,7 +5771,7 @@ function Xr(e) {
|
|
|
5771
5771
|
}
|
|
5772
5772
|
function Su(e) {
|
|
5773
5773
|
let t = Le(e);
|
|
5774
|
-
for (;
|
|
5774
|
+
for (; Pe(t) && !Ze(t); ) {
|
|
5775
5775
|
if (Xr(t))
|
|
5776
5776
|
return t;
|
|
5777
5777
|
if (Gt(t))
|
|
@@ -5812,7 +5812,7 @@ function Le(e) {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
function la(e) {
|
|
5814
5814
|
const t = Le(e);
|
|
5815
|
-
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
5815
|
+
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Pe(t) && pt(t) ? t : la(t);
|
|
5816
5816
|
}
|
|
5817
5817
|
function dt(e, t, r) {
|
|
5818
5818
|
var n;
|
|
@@ -5830,7 +5830,7 @@ function Rr(e) {
|
|
|
5830
5830
|
function da(e) {
|
|
5831
5831
|
const t = he(e);
|
|
5832
5832
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
5833
|
-
const o =
|
|
5833
|
+
const o = Pe(e), a = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, i = Tt(r) !== a || Tt(n) !== s;
|
|
5834
5834
|
return i && (r = a, n = s), {
|
|
5835
5835
|
width: r,
|
|
5836
5836
|
height: n,
|
|
@@ -5842,7 +5842,7 @@ function Qr(e) {
|
|
|
5842
5842
|
}
|
|
5843
5843
|
function Xe(e) {
|
|
5844
5844
|
const t = Qr(e);
|
|
5845
|
-
if (!
|
|
5845
|
+
if (!Pe(t))
|
|
5846
5846
|
return ye(1);
|
|
5847
5847
|
const r = t.getBoundingClientRect(), {
|
|
5848
5848
|
width: n,
|
|
@@ -5913,7 +5913,7 @@ function Eu(e) {
|
|
|
5913
5913
|
scrollLeft: 0,
|
|
5914
5914
|
scrollTop: 0
|
|
5915
5915
|
}, d = ye(1);
|
|
5916
|
-
const u = ye(0), f =
|
|
5916
|
+
const u = ye(0), f = Pe(n);
|
|
5917
5917
|
if ((f || !f && !a) && ((rt(n) !== "body" || pt(s)) && (c = jt(n)), f)) {
|
|
5918
5918
|
const g = Be(n);
|
|
5919
5919
|
d = Xe(n), u.x = g.x + n.clientLeft, u.y = g.y + n.clientTop;
|
|
@@ -5962,7 +5962,7 @@ function Au(e, t) {
|
|
|
5962
5962
|
};
|
|
5963
5963
|
}
|
|
5964
5964
|
function Tu(e, t) {
|
|
5965
|
-
const r = Be(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a =
|
|
5965
|
+
const r = Be(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = Pe(e) ? Xe(e) : ye(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, c = o * a.x, d = n * a.y;
|
|
5966
5966
|
return {
|
|
5967
5967
|
width: s,
|
|
5968
5968
|
height: i,
|
|
@@ -6037,7 +6037,7 @@ function Iu(e) {
|
|
|
6037
6037
|
};
|
|
6038
6038
|
}
|
|
6039
6039
|
function Ou(e, t, r) {
|
|
6040
|
-
const n =
|
|
6040
|
+
const n = Pe(t), o = we(t), a = r === "fixed", s = Be(e, !0, a, t);
|
|
6041
6041
|
let i = {
|
|
6042
6042
|
scrollLeft: 0,
|
|
6043
6043
|
scrollTop: 0
|
|
@@ -6064,7 +6064,7 @@ function vr(e) {
|
|
|
6064
6064
|
return he(e).position === "static";
|
|
6065
6065
|
}
|
|
6066
6066
|
function Gn(e, t) {
|
|
6067
|
-
if (!
|
|
6067
|
+
if (!Pe(e) || he(e).position === "fixed")
|
|
6068
6068
|
return null;
|
|
6069
6069
|
if (t)
|
|
6070
6070
|
return t(e);
|
|
@@ -6075,7 +6075,7 @@ function ma(e, t) {
|
|
|
6075
6075
|
const r = le(e);
|
|
6076
6076
|
if (Gt(e))
|
|
6077
6077
|
return r;
|
|
6078
|
-
if (!
|
|
6078
|
+
if (!Pe(e)) {
|
|
6079
6079
|
let o = Le(e);
|
|
6080
6080
|
for (; o && !Ze(o); ) {
|
|
6081
6081
|
if (me(o) && !vr(o))
|
|
@@ -6516,7 +6516,7 @@ var en = "PopperContent", [sf, cf] = ba(en), Ca = l.forwardRef(
|
|
|
6516
6516
|
re(() => {
|
|
6517
6517
|
H && (de == null || de());
|
|
6518
6518
|
}, [H, de]);
|
|
6519
|
-
const
|
|
6519
|
+
const Ae = (M = D.arrow) == null ? void 0 : M.x, Te = (Q = D.arrow) == null ? void 0 : Q.y, ue = ((W = D.arrow) == null ? void 0 : W.centerOffset) !== 0, [ee, J] = l.useState();
|
|
6520
6520
|
return re(() => {
|
|
6521
6521
|
w && J(window.getComputedStyle(w).zIndex);
|
|
6522
6522
|
}, [w]), /* @__PURE__ */ p(
|
|
@@ -6549,8 +6549,8 @@ var en = "PopperContent", [sf, cf] = ba(en), Ca = l.forwardRef(
|
|
|
6549
6549
|
scope: r,
|
|
6550
6550
|
placedSide: q,
|
|
6551
6551
|
onArrowChange: k,
|
|
6552
|
-
arrowX:
|
|
6553
|
-
arrowY:
|
|
6552
|
+
arrowX: Ae,
|
|
6553
|
+
arrowY: Te,
|
|
6554
6554
|
shouldHideArrow: ue,
|
|
6555
6555
|
children: /* @__PURE__ */ p(
|
|
6556
6556
|
I.div,
|
|
@@ -6661,7 +6661,7 @@ var vf = l.forwardRef((e, t) => {
|
|
|
6661
6661
|
onEntryFocus: d,
|
|
6662
6662
|
preventScrollOnEntryFocus: u = !1,
|
|
6663
6663
|
...f
|
|
6664
|
-
} = e, m = l.useRef(null), g = U(t, m), b = ft(a), [h, v] =
|
|
6664
|
+
} = e, m = l.useRef(null), g = U(t, m), b = ft(a), [h, v] = ke({
|
|
6665
6665
|
prop: s,
|
|
6666
6666
|
defaultProp: i ?? null,
|
|
6667
6667
|
onChange: c,
|
|
@@ -7021,7 +7021,7 @@ var Df = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup",
|
|
|
7021
7021
|
loop: u = !0,
|
|
7022
7022
|
onValueChange: f,
|
|
7023
7023
|
...m
|
|
7024
|
-
} = e, g = qa(r), b = ft(d), [h, v] =
|
|
7024
|
+
} = e, g = qa(r), b = ft(d), [h, v] = ke({
|
|
7025
7025
|
prop: a,
|
|
7026
7026
|
defaultProp: o ?? null,
|
|
7027
7027
|
onChange: f,
|
|
@@ -7642,12 +7642,12 @@ var tp = rs, rp = os, np = ds, op = [" ", "Enter", "ArrowUp", "ArrowDown"], ap =
|
|
|
7642
7642
|
disabled: m,
|
|
7643
7643
|
required: g,
|
|
7644
7644
|
form: b
|
|
7645
|
-
} = e, h = tr(t), [v, w] = l.useState(null), [y, x] = l.useState(null), [S, k] = l.useState(!1), R = ft(d), [E, C] =
|
|
7645
|
+
} = e, h = tr(t), [v, w] = l.useState(null), [y, x] = l.useState(null), [S, k] = l.useState(!1), R = ft(d), [E, C] = ke({
|
|
7646
7646
|
prop: n,
|
|
7647
7647
|
defaultProp: o ?? !1,
|
|
7648
7648
|
onChange: a,
|
|
7649
7649
|
caller: Ve
|
|
7650
|
-
}), [P, O] =
|
|
7650
|
+
}), [P, O] = ke({
|
|
7651
7651
|
prop: s,
|
|
7652
7652
|
defaultProp: i,
|
|
7653
7653
|
onChange: c,
|
|
@@ -7867,13 +7867,13 @@ var pe = 10, [Ss, $e] = nt(We), fp = "SelectContentImpl", pp = /* @__PURE__ */ l
|
|
|
7867
7867
|
const [A, de] = $s((M) => {
|
|
7868
7868
|
const Q = B().filter((j) => !j.disabled), W = Q.find((j) => j.ref.current === document.activeElement), X = Fs(Q, M, W);
|
|
7869
7869
|
X && setTimeout(() => X.ref.current.focus());
|
|
7870
|
-
}),
|
|
7870
|
+
}), Ae = l.useCallback(
|
|
7871
7871
|
(M, Q, W) => {
|
|
7872
7872
|
const X = !Y.current && !W;
|
|
7873
7873
|
(y.value !== void 0 && y.value === Q || X) && (P(M), X && (Y.current = !0));
|
|
7874
7874
|
},
|
|
7875
7875
|
[y.value]
|
|
7876
|
-
),
|
|
7876
|
+
), Te = l.useCallback(() => x == null ? void 0 : x.focus(), [x]), ue = l.useCallback(
|
|
7877
7877
|
(M, Q, W) => {
|
|
7878
7878
|
const X = !Y.current && !W;
|
|
7879
7879
|
(y.value !== void 0 && y.value === Q || X) && $(M);
|
|
@@ -7898,9 +7898,9 @@ var pe = 10, [Ss, $e] = nt(We), fp = "SelectContentImpl", pp = /* @__PURE__ */ l
|
|
|
7898
7898
|
content: x,
|
|
7899
7899
|
viewport: k,
|
|
7900
7900
|
onViewportChange: R,
|
|
7901
|
-
itemRefCallback:
|
|
7901
|
+
itemRefCallback: Ae,
|
|
7902
7902
|
selectedItem: C,
|
|
7903
|
-
onItemLeave:
|
|
7903
|
+
onItemLeave: Te,
|
|
7904
7904
|
itemTextRefCallback: ue,
|
|
7905
7905
|
focusSelectedItem: H,
|
|
7906
7906
|
selectedItemText: O,
|
|
@@ -7992,14 +7992,14 @@ var mp = "SelectItemAlignedPosition", ks = l.forwardRef((e, t) => {
|
|
|
7992
7992
|
]);
|
|
7993
7993
|
i.style.minWidth = se + "px", i.style.right = st + "px";
|
|
7994
7994
|
}
|
|
7995
|
-
const $ = m(), B = window.innerHeight - pe * 2, G = h.scrollHeight, V = window.getComputedStyle(d), Y = parseInt(V.borderTopWidth, 10), _ = parseInt(V.paddingTop, 10), H = parseInt(V.borderBottomWidth, 10), D = parseInt(V.paddingBottom, 10), q = Y + _ + G + D + H, A = Math.min(v.offsetHeight * 5, q), de = window.getComputedStyle(h),
|
|
7995
|
+
const $ = m(), B = window.innerHeight - pe * 2, G = h.scrollHeight, V = window.getComputedStyle(d), Y = parseInt(V.borderTopWidth, 10), _ = parseInt(V.paddingTop, 10), H = parseInt(V.borderBottomWidth, 10), D = parseInt(V.paddingBottom, 10), q = Y + _ + G + D + H, A = Math.min(v.offsetHeight * 5, q), de = window.getComputedStyle(h), Ae = parseInt(de.paddingTop, 10), Te = parseInt(de.paddingBottom, 10), ue = E.top + E.height / 2 - pe, ee = B - ue, J = v.offsetHeight / 2, M = v.offsetTop + J, Q = Y + _ + M, W = q - Q;
|
|
7996
7996
|
if (Q <= ue) {
|
|
7997
7997
|
const j = $.length > 0 && v === $[$.length - 1].ref.current;
|
|
7998
7998
|
i.style.bottom = "0px";
|
|
7999
7999
|
const K = d.clientHeight - h.offsetTop - h.offsetHeight, oe = Math.max(
|
|
8000
8000
|
ee,
|
|
8001
8001
|
J + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
8002
|
-
(j ?
|
|
8002
|
+
(j ? Te : 0) + K + H
|
|
8003
8003
|
), se = Q + oe;
|
|
8004
8004
|
i.style.height = se + "px";
|
|
8005
8005
|
} else {
|
|
@@ -8008,7 +8008,7 @@ var mp = "SelectItemAlignedPosition", ks = l.forwardRef((e, t) => {
|
|
|
8008
8008
|
const oe = Math.max(
|
|
8009
8009
|
ue,
|
|
8010
8010
|
Y + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
8011
|
-
(j ?
|
|
8011
|
+
(j ? Ae : 0) + J
|
|
8012
8012
|
) + W;
|
|
8013
8013
|
i.style.height = oe + "px", h.scrollTop = Q - ue + h.offsetTop;
|
|
8014
8014
|
}
|
|
@@ -8456,7 +8456,7 @@ var Vp = Hs, rr = "Switch", [Wp] = ie(rr), [Up, Gp] = Wp(rr), Bs = l.forwardRef(
|
|
|
8456
8456
|
onCheckedChange: d,
|
|
8457
8457
|
form: u,
|
|
8458
8458
|
...f
|
|
8459
|
-
} = e, [m, g] = l.useState(null), b = U(t, (x) => g(x)), h = l.useRef(!1), v = m ? u || !!m.closest("form") : !0, [w, y] =
|
|
8459
|
+
} = e, [m, g] = l.useState(null), b = U(t, (x) => g(x)), h = l.useRef(!1), v = m ? u || !!m.closest("form") : !0, [w, y] = ke({
|
|
8460
8460
|
prop: o,
|
|
8461
8461
|
defaultProp: a ?? !1,
|
|
8462
8462
|
onChange: d,
|
|
@@ -8572,7 +8572,7 @@ var Kp = Bs, Yp = Ws, nr = "Tabs", [qp] = ie(nr, [
|
|
|
8572
8572
|
dir: i,
|
|
8573
8573
|
activationMode: c = "automatic",
|
|
8574
8574
|
...d
|
|
8575
|
-
} = e, u = ft(i), [f, m] =
|
|
8575
|
+
} = e, u = ft(i), [f, m] = ke({
|
|
8576
8576
|
prop: n,
|
|
8577
8577
|
onChange: o,
|
|
8578
8578
|
defaultProp: a ?? "",
|
|
@@ -8748,7 +8748,7 @@ var ut = "Tooltip", [nm, ht] = or(ut), oi = (e) => {
|
|
|
8748
8748
|
onOpenChange: a,
|
|
8749
8749
|
disableHoverableContent: s,
|
|
8750
8750
|
delayDuration: i
|
|
8751
|
-
} = e, c = dn(ut, e.__scopeTooltip), d = ar(t), [u, f] = l.useState(null), m = Ge(), g = l.useRef(0), b = s ?? c.disableHoverableContent, h = i ?? c.delayDuration, v = l.useRef(!1), [w, y] =
|
|
8751
|
+
} = e, c = dn(ut, e.__scopeTooltip), d = ar(t), [u, f] = l.useState(null), m = Ge(), g = l.useRef(0), b = s ?? c.disableHoverableContent, h = i ?? c.delayDuration, v = l.useRef(!1), [w, y] = ke({
|
|
8752
8752
|
prop: n,
|
|
8753
8753
|
defaultProp: o ?? !1,
|
|
8754
8754
|
onChange: (E) => {
|
|
@@ -9889,7 +9889,10 @@ const ui = {
|
|
|
9889
9889
|
className: r,
|
|
9890
9890
|
id: n
|
|
9891
9891
|
}
|
|
9892
|
-
), Eh = ({ className: e }) => /* @__PURE__ */ p(Bm, { className: e }), Rh = ({ children: e, defaultValue: t, className: r }) =>
|
|
9892
|
+
), Eh = ({ className: e }) => /* @__PURE__ */ p(Bm, { className: e }), Rh = ({ children: e, defaultValue: t, className: r }) => {
|
|
9893
|
+
const [n, o] = Ce.useState(t);
|
|
9894
|
+
return /* @__PURE__ */ p(Vm, { value: n, onValueChange: o, className: r, children: e });
|
|
9895
|
+
}, Ph = ({ children: e, className: t }) => /* @__PURE__ */ p(Um, { className: t, children: e }), Ah = ({ children: e, value: t, className: r }) => /* @__PURE__ */ p(Gm, { className: r, value: t, children: e }), Th = ({ children: e, value: t, className: r }) => /* @__PURE__ */ p(jm, { className: r, value: t, children: e }), Nh = ({ children: e, className: t }) => /* @__PURE__ */ p(Km, { className: t, children: e }), _h = ({ src: e, alt: t, className: r }) => {
|
|
9893
9896
|
var n;
|
|
9894
9897
|
return /* @__PURE__ */ te(qm, { className: r, children: [
|
|
9895
9898
|
/* @__PURE__ */ p(Xm, { src: e, alt: t }),
|
package/dist/react.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as wn from "react-dom";
|
|
|
5
5
|
import ca from "react-dom";
|
|
6
6
|
const jc = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "1c398f07-67fb-4055-b625-5984b70a3913";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -11337,7 +11337,10 @@ const Ec = {
|
|
|
11337
11337
|
className: n,
|
|
11338
11338
|
id: o
|
|
11339
11339
|
}
|
|
11340
|
-
), Hv = ({ className: e }) => /* @__PURE__ */ p(sv, { className: e }), Vv = ({ children: e, defaultValue: t, className: n }) =>
|
|
11340
|
+
), Hv = ({ className: e }) => /* @__PURE__ */ p(sv, { className: e }), Vv = ({ children: e, defaultValue: t, className: n }) => {
|
|
11341
|
+
const [o, r] = N.useState(t);
|
|
11342
|
+
return /* @__PURE__ */ p(iv, { value: o, onValueChange: r, className: n, children: e });
|
|
11343
|
+
}, Wv = ({ children: e, className: t }) => /* @__PURE__ */ p(lv, { className: t, children: e }), Uv = ({ children: e, value: t, className: n }) => /* @__PURE__ */ p(dv, { className: n, value: t, children: e }), jv = ({ children: e, value: t, className: n }) => /* @__PURE__ */ p(uv, { className: n, value: t, children: e }), Gv = ({ children: e, className: t }) => /* @__PURE__ */ p(fv, { className: t, children: e }), Yv = ({ src: e, alt: t, className: n }) => {
|
|
11341
11344
|
var o;
|
|
11342
11345
|
return /* @__PURE__ */ L(No, { className: n, children: [
|
|
11343
11346
|
/* @__PURE__ */ p(To, { src: e, alt: t }),
|