etudes 31.0.1 → 32.1.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/build/components/CoverImage.d.ts +2 -2
- package/build/components/CoverVideo.d.ts +2 -2
- package/build/etudes.js +119 -66
- package/build/etudes.umd.cjs +1 -1
- package/build/hooks/{useScrollPosition.d.ts → useScrollPositionObserver.d.ts} +2 -2
- package/build/index.d.ts +2 -1
- package/build/primitives/Image.d.ts +8 -9
- package/build/primitives/Picture.d.ts +3 -3
- package/build/primitives/Video.d.ts +3 -3
- package/build/providers/ScrollPositionProvider.d.ts +40 -0
- package/build/types/ImageSource.d.ts +24 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { Picture } from '../primitives/Picture.js';
|
|
|
7
7
|
* @exports CoverImage.Content Component for optional content inside the image.
|
|
8
8
|
* @exports CoverImage.Viewport Component for the viewport.
|
|
9
9
|
*/
|
|
10
|
-
export declare function CoverImage({ ref, style, alt, aspectRatio: externalAspectRatio, children, loadingMode,
|
|
10
|
+
export declare function CoverImage({ ref, style, alt, aspectRatio: externalAspectRatio, children, loadingMode, source, onError, onLoad, onLoadStart, ...props }: Readonly<CoverImage.Props>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare namespace CoverImage {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
@@ -25,7 +25,7 @@ export declare namespace CoverImage {
|
|
|
25
25
|
* unprovided, it will be inferred after loading the image.
|
|
26
26
|
*/
|
|
27
27
|
aspectRatio?: number;
|
|
28
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'> & Pick<Picture.Props, 'alt' | 'loadingMode' | 'onError' | 'onLoad' | 'onLoadStart' | '
|
|
28
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'> & Pick<Picture.Props, 'alt' | 'loadingMode' | 'onError' | 'onLoad' | 'onLoadStart' | 'source'>;
|
|
29
29
|
/**
|
|
30
30
|
* Component for optional content inside a {@link CoverImage}.
|
|
31
31
|
*/
|
|
@@ -7,7 +7,7 @@ import { Video } from '../primitives/Video.js';
|
|
|
7
7
|
* @exports CoverVideo.Content Component for optional content inside the video.
|
|
8
8
|
* @exports CoverVideo.Viewport Component for the viewport.
|
|
9
9
|
*/
|
|
10
|
-
export declare function CoverVideo({ className, ref, style, aspectRatio: externalAspectRatio, autoLoop, autoPlay, children, playsInline,
|
|
10
|
+
export declare function CoverVideo({ className, ref, style, aspectRatio: externalAspectRatio, autoLoop, autoPlay, children, playsInline, poster, source, hasControls, isMuted, onCanPlay, onEnd, onFullscreenChange, onLoadMetadata, onLoadMetadataComplete, onLoadMetadataError, onPause, onPlay, onSizeChange, ...props }: Readonly<CoverVideo.Props>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare namespace CoverVideo {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
@@ -25,7 +25,7 @@ export declare namespace CoverVideo {
|
|
|
25
25
|
* unprovided, it will be inferred after loading the video.
|
|
26
26
|
*/
|
|
27
27
|
aspectRatio?: number;
|
|
28
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'onCanPlay' | 'onPause' | 'onPlay'> & Pick<Video.Props, 'autoLoop' | 'autoPlay' | 'hasControls' | 'isMuted' | 'onCanPlay' | 'onEnd' | 'onFullscreenChange' | 'onLoadMetadata' | 'onLoadMetadataComplete' | 'onLoadMetadataError' | 'onPause' | 'onPlay' | 'onSizeChange' | 'playsInline' | '
|
|
28
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onCanPlay' | 'onPause' | 'onPlay'> & Pick<Video.Props, 'autoLoop' | 'autoPlay' | 'hasControls' | 'isMuted' | 'onCanPlay' | 'onEnd' | 'onFullscreenChange' | 'onLoadMetadata' | 'onLoadMetadataComplete' | 'onLoadMetadataError' | 'onPause' | 'onPlay' | 'onSizeChange' | 'playsInline' | 'poster' | 'source'>;
|
|
29
29
|
/**
|
|
30
30
|
* Component for optional content inside a {@link CoverVideo}.
|
|
31
31
|
*/
|
package/build/etudes.js
CHANGED
|
@@ -931,9 +931,20 @@ function Ze(e) {
|
|
|
931
931
|
//#region src/types/ImageSource.ts
|
|
932
932
|
var Qe;
|
|
933
933
|
(function(e) {
|
|
934
|
-
function t(e) {
|
|
934
|
+
function t(e, t) {
|
|
935
|
+
let n = {
|
|
936
|
+
sizes: [{ width: e }],
|
|
937
|
+
srcSet: t.map(([e, t]) => ({
|
|
938
|
+
src: e,
|
|
939
|
+
width: t
|
|
940
|
+
}))
|
|
941
|
+
};
|
|
942
|
+
return a(n), n;
|
|
943
|
+
}
|
|
944
|
+
e.make = t;
|
|
945
|
+
function n(e) {
|
|
935
946
|
try {
|
|
936
|
-
return
|
|
947
|
+
return a(e), {
|
|
937
948
|
media: e.media,
|
|
938
949
|
sizes: i(e),
|
|
939
950
|
srcSet: r(e),
|
|
@@ -944,18 +955,7 @@ var Qe;
|
|
|
944
955
|
return;
|
|
945
956
|
}
|
|
946
957
|
}
|
|
947
|
-
e.asProps =
|
|
948
|
-
function n({ sizes: e = [], srcSet: t }) {
|
|
949
|
-
if (e.length > 0 && !t.some(({ width: e }) => e !== void 0)) throw Error("If `sizes` is specified, at least one entry in `sourceSet` must have a `width` specified");
|
|
950
|
-
if (e.length > 0 && e[e.length - 1].media !== void 0) throw Error("The last item in `sizes` must not have a `media` condition");
|
|
951
|
-
if (t.length === 0) throw Error("At least one entry in `sourceSet` must be specified");
|
|
952
|
-
t.forEach(({ pixelDensity: e, src: t, width: n }) => {
|
|
953
|
-
if (t === void 0 || t === "") throw Error("Each entry in `sourceSet` must have a non-empty `src`");
|
|
954
|
-
if (n !== void 0 && (!isFinite(n) || !Number.isInteger(n) || n <= 0)) throw Error("If `width` is specified, it must be a positive integer greater than 0");
|
|
955
|
-
if (e !== void 0 && (!isFinite(e) || e <= 0)) throw Error("If `pixelDensity` is specified, it must be a number greater than 0");
|
|
956
|
-
if (n !== void 0 && e !== void 0) throw Error("Only one of `width` or `pixelDensity` can be specified");
|
|
957
|
-
});
|
|
958
|
-
}
|
|
958
|
+
e.asProps = n;
|
|
959
959
|
function r(e) {
|
|
960
960
|
return e.srcSet.map(({ pixelDensity: e, src: t, width: n }) => {
|
|
961
961
|
let r = t;
|
|
@@ -968,6 +968,29 @@ var Qe;
|
|
|
968
968
|
return e && (n = `${e} ${n}`), n;
|
|
969
969
|
}).filter(Boolean).join(", ");
|
|
970
970
|
}
|
|
971
|
+
function a(e) {
|
|
972
|
+
if (!o(e)) throw Error("Invalid `ImageSource` object");
|
|
973
|
+
let { sizes: t = [], srcSet: n } = e;
|
|
974
|
+
if (t.length > 0 && !n.some(({ width: e }) => e !== void 0)) throw Error("If `sizes` is specified, at least one entry in `srcSet` must have a `width` specified");
|
|
975
|
+
if (t.length > 0 && t[t.length - 1].media !== void 0) throw Error("The last item in `sizes` must not have a `media` condition");
|
|
976
|
+
if (n.length === 0) throw Error("At least one entry in `srcSet` must be specified");
|
|
977
|
+
n.forEach(({ pixelDensity: e, src: t, width: n }) => {
|
|
978
|
+
if (t === void 0 || t === "") throw Error("Each entry in `srcSet` must have a non-empty `src`");
|
|
979
|
+
if (n !== void 0 && (!isFinite(n) || !Number.isInteger(n) || n <= 0)) throw Error("If `width` is specified, it must be a positive integer greater than 0");
|
|
980
|
+
if (e !== void 0 && (!isFinite(e) || e <= 0)) throw Error("If `pixelDensity` is specified, it must be a number greater than 0");
|
|
981
|
+
if (n !== void 0 && e !== void 0) throw Error("Only one of `width` or `pixelDensity` can be specified");
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
function o(e) {
|
|
985
|
+
if (typeof e != "object" || !e || e.media !== void 0 && typeof e.media != "string" || e.type !== void 0 && typeof e.type != "string") return !1;
|
|
986
|
+
if (e.sizes !== void 0) {
|
|
987
|
+
if (!Array.isArray(e.sizes)) return !1;
|
|
988
|
+
for (let t of e.sizes) if (typeof t != "object" || !t || t.media !== void 0 && typeof t.media != "string" || typeof t.width != "string") return !1;
|
|
989
|
+
}
|
|
990
|
+
if (!Array.isArray(e.srcSet)) return !1;
|
|
991
|
+
for (let t of e.srcSet) if (typeof t != "object" || !t || typeof t.src != "string" || t.width !== void 0 && (!isFinite(t.width) || !Number.isInteger(t.width) || t.width <= 0) || t.pixelDensity !== void 0 && (!isFinite(t.pixelDensity) || t.pixelDensity <= 0) || t.width !== void 0 && t.pixelDensity !== void 0) return !1;
|
|
992
|
+
return !0;
|
|
993
|
+
}
|
|
971
994
|
})(Qe ||= {});
|
|
972
995
|
//#endregion
|
|
973
996
|
//#region src/hooks/useImageLoader.ts
|
|
@@ -1017,87 +1040,87 @@ function tt(e) {
|
|
|
1017
1040
|
}
|
|
1018
1041
|
//#endregion
|
|
1019
1042
|
//#region src/primitives/Image.tsx
|
|
1020
|
-
function nt({ ref: e, alt: t, loadingMode: n, source: r,
|
|
1021
|
-
let d = r ? Qe.asProps(
|
|
1022
|
-
sizes:
|
|
1023
|
-
src:
|
|
1024
|
-
srcSet:
|
|
1043
|
+
function nt({ ref: e, alt: t, loadingMode: n, source: r, onError: i, onLoad: a, onLoadStart: o, onSizeChange: s, ...c }) {
|
|
1044
|
+
let u = typeof r == "string" ? r : r[0], d = typeof r == "string" ? void 0 : r[1], f = d ? Qe.asProps(d) : void 0, p = et({
|
|
1045
|
+
sizes: f?.sizes,
|
|
1046
|
+
src: u,
|
|
1047
|
+
srcSet: f?.srcSet
|
|
1025
1048
|
}, {
|
|
1026
|
-
onError:
|
|
1027
|
-
onLoad:
|
|
1028
|
-
onLoadStart:
|
|
1049
|
+
onError: i,
|
|
1050
|
+
onLoad: a,
|
|
1051
|
+
onLoadStart: o
|
|
1029
1052
|
});
|
|
1030
1053
|
return l(() => {
|
|
1031
|
-
|
|
1032
|
-
}, [
|
|
1033
|
-
...
|
|
1034
|
-
...
|
|
1054
|
+
s?.(p);
|
|
1055
|
+
}, [p?.width, p?.height]), /* @__PURE__ */ (0, O.jsx)("img", {
|
|
1056
|
+
...c,
|
|
1057
|
+
...f,
|
|
1035
1058
|
ref: e,
|
|
1036
1059
|
alt: t,
|
|
1037
1060
|
loading: n,
|
|
1038
|
-
src:
|
|
1061
|
+
src: u
|
|
1039
1062
|
});
|
|
1040
1063
|
}
|
|
1041
1064
|
process.env.NODE_ENV === "development" && (nt.displayName = "Image");
|
|
1042
1065
|
//#endregion
|
|
1043
1066
|
//#region src/primitives/Picture.tsx
|
|
1044
|
-
function rt({ ref: e, alt: t, loadingMode: n,
|
|
1067
|
+
function rt({ ref: e, alt: t, loadingMode: n, source: r, onError: i, onLoad: a, onLoadStart: o, onSizeChange: s, ...c }) {
|
|
1068
|
+
let l = typeof r == "string" ? r : r[0], u = typeof r == "string" ? [] : r.slice(1);
|
|
1045
1069
|
return /* @__PURE__ */ (0, O.jsxs)("picture", {
|
|
1046
|
-
...
|
|
1070
|
+
...c,
|
|
1047
1071
|
ref: e,
|
|
1048
|
-
children: [
|
|
1072
|
+
children: [u.map((e, t) => /* @__PURE__ */ (0, O.jsx)("source", { ...Qe.asProps(e) }, t)), /* @__PURE__ */ (0, O.jsx)(nt, {
|
|
1049
1073
|
style: {
|
|
1050
1074
|
height: "100%",
|
|
1051
1075
|
width: "100%"
|
|
1052
1076
|
},
|
|
1053
1077
|
alt: t,
|
|
1054
1078
|
loadingMode: n,
|
|
1055
|
-
|
|
1056
|
-
onError:
|
|
1057
|
-
onLoad:
|
|
1058
|
-
onLoadStart:
|
|
1059
|
-
onSizeChange:
|
|
1079
|
+
source: l,
|
|
1080
|
+
onError: i,
|
|
1081
|
+
onLoad: a,
|
|
1082
|
+
onLoadStart: o,
|
|
1083
|
+
onSizeChange: s
|
|
1060
1084
|
})]
|
|
1061
1085
|
});
|
|
1062
1086
|
}
|
|
1063
1087
|
process.env.NODE_ENV === "development" && (rt.displayName = "Picture");
|
|
1064
1088
|
//#endregion
|
|
1065
1089
|
//#region src/components/CoverImage.tsx
|
|
1066
|
-
function it({ ref: e, style: t, alt: n, aspectRatio: r = NaN, children: i, loadingMode: a,
|
|
1067
|
-
let
|
|
1068
|
-
|
|
1069
|
-
},
|
|
1090
|
+
function it({ ref: e, style: t, alt: n, aspectRatio: r = NaN, children: i, loadingMode: a, source: o, onError: s, onLoad: c, onLoadStart: l, ...u }) {
|
|
1091
|
+
let d = (e) => {
|
|
1092
|
+
_(e ? e.width / e.height : NaN);
|
|
1093
|
+
}, m = f(null), h = e ?? m, [g, _] = p(NaN), v = isNaN(r) ? g : r, y = Ze(h), b = y.width / y.height, x = q.make(b > 1 ? Math.max(y.width, y.height * v) : Math.max(y.width, Math.max(y.height, y.width / v) * v), b > 1 ? Math.max(y.height, Math.max(y.width, y.height * v) / v) : Math.max(y.height, y.width / v)), S = j(i, {
|
|
1070
1094
|
content: it.Content,
|
|
1071
1095
|
viewport: it.Viewport
|
|
1072
1096
|
});
|
|
1073
1097
|
return /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
1074
|
-
...
|
|
1075
|
-
ref:
|
|
1098
|
+
...u,
|
|
1099
|
+
ref: h,
|
|
1076
1100
|
style: F(t, at.root),
|
|
1077
1101
|
children: [
|
|
1078
1102
|
/* @__PURE__ */ (0, O.jsx)(rt, {
|
|
1079
1103
|
style: F(at.viewport, {
|
|
1080
|
-
height: `${
|
|
1104
|
+
height: `${x.height}px`,
|
|
1081
1105
|
maxWidth: "unset",
|
|
1082
|
-
width: `${
|
|
1106
|
+
width: `${x.width}px`
|
|
1083
1107
|
}),
|
|
1084
1108
|
alt: n,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
onSizeChange: (e) => m(e)
|
|
1109
|
+
source: o,
|
|
1110
|
+
onError: s,
|
|
1111
|
+
onLoad: c,
|
|
1112
|
+
onLoadStart: l,
|
|
1113
|
+
onSizeChange: (e) => d(e)
|
|
1091
1114
|
}),
|
|
1092
|
-
|
|
1115
|
+
S.viewport && /* @__PURE__ */ (0, O.jsx)(P, {
|
|
1093
1116
|
style: F(at.viewport, {
|
|
1094
|
-
height: `${
|
|
1117
|
+
height: `${x.height}px`,
|
|
1095
1118
|
pointerEvents: "none",
|
|
1096
|
-
width: `${
|
|
1119
|
+
width: `${x.width}px`
|
|
1097
1120
|
}),
|
|
1098
|
-
element:
|
|
1121
|
+
element: S.viewport
|
|
1099
1122
|
}),
|
|
1100
|
-
|
|
1123
|
+
S.content
|
|
1101
1124
|
]
|
|
1102
1125
|
});
|
|
1103
1126
|
}
|
|
@@ -1153,7 +1176,7 @@ function ct(e) {
|
|
|
1153
1176
|
}
|
|
1154
1177
|
//#endregion
|
|
1155
1178
|
//#region src/primitives/Video.tsx
|
|
1156
|
-
function lt({ ref: e, autoLoop: t = !0, autoPlay: n = !0, playsInline: r = !0,
|
|
1179
|
+
function lt({ ref: e, autoLoop: t = !0, autoPlay: n = !0, playsInline: r = !0, poster: i, source: a, hasControls: o = !1, isMuted: s = !0, onCanPlay: c, onEnd: u, onFullscreenChange: d, onLoadMetadata: p, onLoadMetadataComplete: m, onLoadMetadataError: h, onPause: g, onPlay: _, onSizeChange: v, onTimeUpdate: y, ...b }) {
|
|
1157
1180
|
let x = f(null), S = e ?? x, C = st(a, {
|
|
1158
1181
|
onError: h,
|
|
1159
1182
|
onLoad: m,
|
|
@@ -1215,7 +1238,7 @@ function lt({ ref: e, autoLoop: t = !0, autoPlay: n = !0, playsInline: r = !0, p
|
|
|
1215
1238
|
process.env.NODE_ENV === "development" && (lt.displayName = "Video");
|
|
1216
1239
|
//#endregion
|
|
1217
1240
|
//#region src/components/CoverVideo.tsx
|
|
1218
|
-
function ut({ className: e, ref: t, style: n, aspectRatio: r = NaN, autoLoop: i, autoPlay: a, children: o, playsInline: s,
|
|
1241
|
+
function ut({ className: e, ref: t, style: n, aspectRatio: r = NaN, autoLoop: i, autoPlay: a, children: o, playsInline: s, poster: c, source: l, hasControls: u, isMuted: d, onCanPlay: m, onEnd: h, onFullscreenChange: g, onLoadMetadata: _, onLoadMetadataComplete: v, onLoadMetadataError: y, onPause: b, onPlay: x, onSizeChange: S, ...C }) {
|
|
1219
1242
|
let w = (e) => {
|
|
1220
1243
|
k(e ? e.width / e.height : NaN), S?.(e);
|
|
1221
1244
|
}, T = t ?? f(null), E = Ze(T), [D, k] = p(NaN), A = isNaN(r) ? D : r, M = E.width / E.height, N = q.make(M > 1 ? Math.max(E.width, E.height * A) : Math.max(E.width, Math.max(E.height, E.width / A) * A), M > 1 ? Math.max(E.height, Math.max(E.width, E.height * A) / A) : Math.max(E.height, E.width / A)), I = j(o, {
|
|
@@ -1237,8 +1260,8 @@ function ut({ className: e, ref: t, style: n, aspectRatio: r = NaN, autoLoop: i,
|
|
|
1237
1260
|
autoLoop: i,
|
|
1238
1261
|
autoPlay: a,
|
|
1239
1262
|
playsInline: s,
|
|
1240
|
-
|
|
1241
|
-
|
|
1263
|
+
poster: c,
|
|
1264
|
+
source: l,
|
|
1242
1265
|
hasControls: u,
|
|
1243
1266
|
isMuted: d,
|
|
1244
1267
|
onCanPlay: m,
|
|
@@ -6339,7 +6362,7 @@ function dn(e, t) {
|
|
|
6339
6362
|
}, [e]), n.current;
|
|
6340
6363
|
}
|
|
6341
6364
|
//#endregion
|
|
6342
|
-
//#region src/hooks/
|
|
6365
|
+
//#region src/hooks/useScrollPositionObserver.ts
|
|
6343
6366
|
function fn(...e) {
|
|
6344
6367
|
let t = typeof e[0] == "function" ? void 0 : e[0], n = typeof e[0] == "function" ? e[0] : e[1], r = typeof e[0] == "function" ? e[1] ?? [] : e[2] ?? [], i = Z(n), a = f(void 0), o = f(!1);
|
|
6345
6368
|
u(() => {
|
|
@@ -8876,24 +8899,54 @@ function si({ knobSize: e = q.zero, orientation: t = "horizontal", isInverted: n
|
|
|
8876
8899
|
}
|
|
8877
8900
|
process.env.NODE_ENV === "development" && (ai.displayName = "Toggle", ai.Knob.displayName = "Toggle.Knob", ai.Track.displayName = "Toggle.Track");
|
|
8878
8901
|
//#endregion
|
|
8902
|
+
//#region src/providers/ScrollPositionProvider.tsx
|
|
8903
|
+
var ci = a(void 0), li = a(void 0), ui = a(void 0);
|
|
8904
|
+
function di({ children: e, target: t }) {
|
|
8905
|
+
let [n, r] = p(), [i, a] = p(), [o, s] = p();
|
|
8906
|
+
return fn(t, (e) => {
|
|
8907
|
+
s(e), r(e.current.y <= e.start.y), a(e.current.y >= e.end.y);
|
|
8908
|
+
}), /* @__PURE__ */ (0, O.jsx)(li.Provider, {
|
|
8909
|
+
value: n,
|
|
8910
|
+
children: /* @__PURE__ */ (0, O.jsx)(ui.Provider, {
|
|
8911
|
+
value: i,
|
|
8912
|
+
children: /* @__PURE__ */ (0, O.jsx)(ci.Provider, {
|
|
8913
|
+
value: o,
|
|
8914
|
+
children: e
|
|
8915
|
+
})
|
|
8916
|
+
})
|
|
8917
|
+
});
|
|
8918
|
+
}
|
|
8919
|
+
function fi() {
|
|
8920
|
+
let e = s(li);
|
|
8921
|
+
return e === void 0 && console.warn("[etudes::useIsScrollTop] `useIsScrollTop` must be used within a `ScrollPositionProvider`"), e;
|
|
8922
|
+
}
|
|
8923
|
+
function pi() {
|
|
8924
|
+
let e = s(ui);
|
|
8925
|
+
return e === void 0 && console.warn("[etudes::useIsScrollBottom] `useIsScrollBottom` must be used within a `ScrollPositionProvider`"), e;
|
|
8926
|
+
}
|
|
8927
|
+
function mi() {
|
|
8928
|
+
let e = s(ci);
|
|
8929
|
+
return e || console.warn("[etudes::useScrollPosition] `useScrollPosition` must be used within a `ScrollPositionProvider`"), e;
|
|
8930
|
+
}
|
|
8931
|
+
//#endregion
|
|
8879
8932
|
//#region src/utils/createKeyDeep.ts
|
|
8880
|
-
function
|
|
8881
|
-
return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(
|
|
8933
|
+
function hi(e) {
|
|
8934
|
+
return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(hi)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, hi(t)])) : _t(e);
|
|
8882
8935
|
}
|
|
8883
8936
|
//#endregion
|
|
8884
8937
|
//#region src/utils/ExtractChildren.tsx
|
|
8885
|
-
function
|
|
8938
|
+
function gi({ children: e, ...n }) {
|
|
8886
8939
|
return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: t.map(e, (e) => o(e) ? N(e, { ...n }) : e) });
|
|
8887
8940
|
}
|
|
8888
|
-
process.env.NODE_ENV === "development" && (
|
|
8941
|
+
process.env.NODE_ENV === "development" && (gi.displayName = "ExtractChildren");
|
|
8889
8942
|
//#endregion
|
|
8890
8943
|
//#region src/utils/getSystemColorScheme.ts
|
|
8891
|
-
function
|
|
8944
|
+
function _i() {
|
|
8892
8945
|
return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
8893
8946
|
}
|
|
8894
8947
|
//#endregion
|
|
8895
8948
|
//#region src/utils/NoSSR.tsx
|
|
8896
|
-
function
|
|
8949
|
+
function vi({ children: e, fallback: t = void 0 }) {
|
|
8897
8950
|
let [n, i] = p(!1);
|
|
8898
8951
|
if (l(() => {
|
|
8899
8952
|
i(typeof window < "u");
|
|
@@ -8903,4 +8956,4 @@ function di({ children: e, fallback: t = void 0 }) {
|
|
|
8903
8956
|
});
|
|
8904
8957
|
}
|
|
8905
8958
|
//#endregion
|
|
8906
|
-
export { Q as Accordion, I as Burger, R as BurgerButton, ft as Button, qn as Carousel, er as CodeInput, kn as Collection, kt as Conditional, or as Counter, it as CoverImage, ut as CoverVideo, cr as Dial, fr as Dropdown, At as Each, Nt as ExtractChild,
|
|
8959
|
+
export { Q as Accordion, I as Burger, R as BurgerButton, ft as Button, qn as Carousel, er as CodeInput, kn as Collection, kt as Conditional, or as Counter, it as CoverImage, ut as CoverVideo, cr as Dial, fr as Dropdown, At as Each, Nt as ExtractChild, gi as ExtractChildren, vr as Form, nt as Image, Qe as ImageSource, br as MasonryGrid, vi as NoSSR, ht as OptionButton, bt as Panorama, Et as PanoramaSlider, rt as Picture, $ as RangeSlider, k as Repeat, di as ScrollPositionProvider, Lr as ScrollableCarousel, Hr as Select, Ot as SelectableButton, Wr as Slider, Yr as StepSlider, P as Styled, ri as SwipeRegion, jt as Switch, ii as TextArea, ar as TextField, ai as Toggle, lt as Video, It as WithTooltip, A as asClassNameDict, j as asComponentDict, M as asStyleDict, N as cloneStyledElement, _t as createKey, hi as createKeyDeep, tn as createLocalCache, _n as createSessionCache, Cn as getStyle, _i as getSystemColorScheme, Zt as isTouchDevice, Pt as measureIntrinsicSize, wn as setStyle, Ft as setStyles, F as styles, Vt as useClassName, Ht as useClickOutside, Ut as useCopyBlobToClipboard, Kt as useDPR, Wt as useDownloadBlob, qt as useDrag, Jt as useDropzone, $e as useImageLoader, et as useImageSize, vt as useInertiaDrag, Je as useIntersectionObserver, Yt as useInterval, Xt as useIsMounted, pi as useIsScrollBottom, fi as useIsScrollTop, Qt as useIsTouchDevice, $t as useKeyboardShortcut, Z as useLatest, sn as useLocalCache, cn as useMouseEnter, ln as useMouseLeave, un as useOS, dn as usePrevious, Ze as useRect, mi as useScrollPosition, fn as useScrollPositionObserver, Sn as useSessionCache, yt as useSize, Ye as useSizeObserver, Tn as useStyle, En as useSystemColorScheme, Dn as useTimeout, ot as useVideoMetadataLoader, st as useVideoSize, Xe as useViewportSize };
|