@sudobility/entertainment-components 2.0.9 → 2.0.12
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/index.esm.js +12 -272
- package/dist/index.umd.js +1 -6
- package/package.json +5 -7
package/dist/index.esm.js
CHANGED
|
@@ -1,285 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), c = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
9
|
-
function u(f, o, s) {
|
|
10
|
-
var d = null;
|
|
11
|
-
if (s !== void 0 && (d = "" + s), o.key !== void 0 && (d = "" + o.key), "key" in o) {
|
|
12
|
-
s = {};
|
|
13
|
-
for (var m in o)
|
|
14
|
-
m !== "key" && (s[m] = o[m]);
|
|
15
|
-
} else s = o;
|
|
16
|
-
return o = s.ref, {
|
|
17
|
-
$$typeof: l,
|
|
18
|
-
type: f,
|
|
19
|
-
key: d,
|
|
20
|
-
ref: o !== void 0 ? o : null,
|
|
21
|
-
props: s
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return _.Fragment = c, _.jsx = u, _.jsxs = u, _;
|
|
25
|
-
}
|
|
26
|
-
var E = {};
|
|
27
|
-
var I;
|
|
28
|
-
function te() {
|
|
29
|
-
return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
-
function l(e) {
|
|
31
|
-
if (e == null) return null;
|
|
32
|
-
if (typeof e == "function")
|
|
33
|
-
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
34
|
-
if (typeof e == "string") return e;
|
|
35
|
-
switch (e) {
|
|
36
|
-
case v:
|
|
37
|
-
return "Fragment";
|
|
38
|
-
case U:
|
|
39
|
-
return "Profiler";
|
|
40
|
-
case W:
|
|
41
|
-
return "StrictMode";
|
|
42
|
-
case z:
|
|
43
|
-
return "Suspense";
|
|
44
|
-
case G:
|
|
45
|
-
return "SuspenseList";
|
|
46
|
-
case B:
|
|
47
|
-
return "Activity";
|
|
48
|
-
}
|
|
49
|
-
if (typeof e == "object")
|
|
50
|
-
switch (typeof e.tag == "number" && console.error(
|
|
51
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
|
-
), e.$$typeof) {
|
|
53
|
-
case M:
|
|
54
|
-
return "Portal";
|
|
55
|
-
case J:
|
|
56
|
-
return e.displayName || "Context";
|
|
57
|
-
case q:
|
|
58
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
-
case V:
|
|
60
|
-
var r = e.render;
|
|
61
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
62
|
-
case X:
|
|
63
|
-
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
64
|
-
case T:
|
|
65
|
-
r = e._payload, e = e._init;
|
|
66
|
-
try {
|
|
67
|
-
return l(e(r));
|
|
68
|
-
} catch {
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
|
-
function c(e) {
|
|
74
|
-
return "" + e;
|
|
75
|
-
}
|
|
76
|
-
function u(e) {
|
|
77
|
-
try {
|
|
78
|
-
c(e);
|
|
79
|
-
var r = !1;
|
|
80
|
-
} catch {
|
|
81
|
-
r = !0;
|
|
82
|
-
}
|
|
83
|
-
if (r) {
|
|
84
|
-
r = console;
|
|
85
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
|
-
return t.call(
|
|
87
|
-
r,
|
|
88
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
-
n
|
|
90
|
-
), c(e);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function f(e) {
|
|
94
|
-
if (e === v) return "<>";
|
|
95
|
-
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
96
|
-
return "<...>";
|
|
97
|
-
try {
|
|
98
|
-
var r = l(e);
|
|
99
|
-
return r ? "<" + r + ">" : "<...>";
|
|
100
|
-
} catch {
|
|
101
|
-
return "<...>";
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function o() {
|
|
105
|
-
var e = k.A;
|
|
106
|
-
return e === null ? null : e.getOwner();
|
|
107
|
-
}
|
|
108
|
-
function s() {
|
|
109
|
-
return Error("react-stack-top-frame");
|
|
110
|
-
}
|
|
111
|
-
function d(e) {
|
|
112
|
-
if (P.call(e, "key")) {
|
|
113
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
-
if (r && r.isReactWarning) return !1;
|
|
115
|
-
}
|
|
116
|
-
return e.key !== void 0;
|
|
117
|
-
}
|
|
118
|
-
function m(e, r) {
|
|
119
|
-
function t() {
|
|
120
|
-
h || (h = !0, console.error(
|
|
121
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
|
-
r
|
|
123
|
-
));
|
|
124
|
-
}
|
|
125
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
126
|
-
get: t,
|
|
127
|
-
configurable: !0
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function D() {
|
|
131
|
-
var e = l(this.type);
|
|
132
|
-
return j[e] || (j[e] = !0, console.error(
|
|
133
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
135
|
-
}
|
|
136
|
-
function L(e, r, t, n, R, g) {
|
|
137
|
-
var a = t.ref;
|
|
138
|
-
return e = {
|
|
139
|
-
$$typeof: x,
|
|
140
|
-
type: e,
|
|
141
|
-
key: r,
|
|
142
|
-
props: t,
|
|
143
|
-
_owner: n
|
|
144
|
-
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
145
|
-
enumerable: !1,
|
|
146
|
-
get: D
|
|
147
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
148
|
-
configurable: !1,
|
|
149
|
-
enumerable: !1,
|
|
150
|
-
writable: !0,
|
|
151
|
-
value: 0
|
|
152
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
153
|
-
configurable: !1,
|
|
154
|
-
enumerable: !1,
|
|
155
|
-
writable: !0,
|
|
156
|
-
value: null
|
|
157
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
158
|
-
configurable: !1,
|
|
159
|
-
enumerable: !1,
|
|
160
|
-
writable: !0,
|
|
161
|
-
value: R
|
|
162
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
163
|
-
configurable: !1,
|
|
164
|
-
enumerable: !1,
|
|
165
|
-
writable: !0,
|
|
166
|
-
value: g
|
|
167
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
|
-
}
|
|
169
|
-
function y(e, r, t, n, R, g) {
|
|
170
|
-
var a = r.children;
|
|
171
|
-
if (a !== void 0)
|
|
172
|
-
if (n)
|
|
173
|
-
if (Z(a)) {
|
|
174
|
-
for (n = 0; n < a.length; n++)
|
|
175
|
-
A(a[n]);
|
|
176
|
-
Object.freeze && Object.freeze(a);
|
|
177
|
-
} else
|
|
178
|
-
console.error(
|
|
179
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
|
-
);
|
|
181
|
-
else A(a);
|
|
182
|
-
if (P.call(r, "key")) {
|
|
183
|
-
a = l(e);
|
|
184
|
-
var i = Object.keys(r).filter(function(Q) {
|
|
185
|
-
return Q !== "key";
|
|
186
|
-
});
|
|
187
|
-
n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
189
|
-
let props = %s;
|
|
190
|
-
<%s {...props} />
|
|
191
|
-
React keys must be passed directly to JSX without using spread:
|
|
192
|
-
let props = %s;
|
|
193
|
-
<%s key={someKey} {...props} />`,
|
|
194
|
-
n,
|
|
195
|
-
a,
|
|
196
|
-
i,
|
|
197
|
-
a
|
|
198
|
-
), Y[a + n] = !0);
|
|
199
|
-
}
|
|
200
|
-
if (a = null, t !== void 0 && (u(t), a = "" + t), d(r) && (u(r.key), a = "" + r.key), "key" in r) {
|
|
201
|
-
t = {};
|
|
202
|
-
for (var O in r)
|
|
203
|
-
O !== "key" && (t[O] = r[O]);
|
|
204
|
-
} else t = r;
|
|
205
|
-
return a && m(
|
|
206
|
-
t,
|
|
207
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
208
|
-
), L(
|
|
209
|
-
e,
|
|
210
|
-
a,
|
|
211
|
-
t,
|
|
212
|
-
o(),
|
|
213
|
-
R,
|
|
214
|
-
g
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
function A(e) {
|
|
218
|
-
w(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? w(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
219
|
-
}
|
|
220
|
-
function w(e) {
|
|
221
|
-
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
222
|
-
}
|
|
223
|
-
var b = K, x = /* @__PURE__ */ Symbol.for("react.transitional.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), q = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), H = /* @__PURE__ */ Symbol.for("react.client.reference"), k = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, Z = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
224
|
-
return null;
|
|
225
|
-
};
|
|
226
|
-
b = {
|
|
227
|
-
react_stack_bottom_frame: function(e) {
|
|
228
|
-
return e();
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
var h, j = {}, N = b.react_stack_bottom_frame.bind(
|
|
232
|
-
b,
|
|
233
|
-
s
|
|
234
|
-
)(), C = S(f(s)), Y = {};
|
|
235
|
-
E.Fragment = v, E.jsx = function(e, r, t) {
|
|
236
|
-
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
237
|
-
return y(
|
|
238
|
-
e,
|
|
239
|
-
r,
|
|
240
|
-
t,
|
|
241
|
-
!1,
|
|
242
|
-
n ? Error("react-stack-top-frame") : N,
|
|
243
|
-
n ? S(f(e)) : C
|
|
244
|
-
);
|
|
245
|
-
}, E.jsxs = function(e, r, t) {
|
|
246
|
-
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
247
|
-
return y(
|
|
248
|
-
e,
|
|
249
|
-
r,
|
|
250
|
-
t,
|
|
251
|
-
!0,
|
|
252
|
-
n ? Error("react-stack-top-frame") : N,
|
|
253
|
-
n ? S(f(e)) : C
|
|
254
|
-
);
|
|
255
|
-
};
|
|
256
|
-
})()), E;
|
|
257
|
-
}
|
|
258
|
-
var F;
|
|
259
|
-
function ne() {
|
|
260
|
-
return F || (F = 1, process.env.NODE_ENV === "production" ? p.exports = re() : p.exports = te()), p.exports;
|
|
261
|
-
}
|
|
262
|
-
var ae = ne();
|
|
263
|
-
const le = ({
|
|
264
|
-
className: l,
|
|
265
|
-
children: c,
|
|
266
|
-
disabled: u
|
|
267
|
-
}) => /* @__PURE__ */ ae.jsx(
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "@sudobility/components";
|
|
3
|
+
const d = ({
|
|
4
|
+
className: r,
|
|
5
|
+
children: t,
|
|
6
|
+
disabled: a
|
|
7
|
+
}) => /* @__PURE__ */ o(
|
|
268
8
|
"div",
|
|
269
9
|
{
|
|
270
|
-
className:
|
|
10
|
+
className: e(
|
|
271
11
|
"p-4 rounded-lg border transition-colors",
|
|
272
12
|
"bg-white dark:bg-gray-900",
|
|
273
13
|
"border-gray-200 dark:border-gray-700",
|
|
274
14
|
"text-gray-900 dark:text-white",
|
|
275
|
-
|
|
276
|
-
|
|
15
|
+
a && "opacity-50 cursor-not-allowed",
|
|
16
|
+
r
|
|
277
17
|
),
|
|
278
18
|
role: "region",
|
|
279
19
|
"aria-label": "StreamingStats",
|
|
280
|
-
children:
|
|
20
|
+
children: t || "StreamingStats Component"
|
|
281
21
|
}
|
|
282
22
|
);
|
|
283
23
|
export {
|
|
284
|
-
|
|
24
|
+
d as StreamingStats
|
|
285
25
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,a,f,a),M[a+n]=!0)}if(a=null,t!==void 0&&(i(t),a=""+t),b(r)&&(i(r.key),a=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return a&&p(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),G(e,a,t,o(),T,O)}function j(e){N(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===S&&(e._payload.status==="fulfilled"?N(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var v=d,C=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),y=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,oe=Array.isArray,g=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var I,$={},F=v.react_stack_bottom_frame.bind(v,s)(),D=g(E(s)),M={};_.Fragment=k,_.jsx=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return h(e,r,t,!1,n?Error("react-stack-top-frame"):F,n?g(E(e)):D)},_.jsxs=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return h(e,r,t,!0,n?Error("react-stack-top-frame"):F,n?g(E(e)):D)}})()),_}var P;function q(){return P||(P=1,process.env.NODE_ENV==="production"?R.exports=W():R.exports=U()),R.exports}var J=q();const V=({className:u,children:c,disabled:i})=>J.jsx("div",{className:L.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",i&&"opacity-50 cursor-not-allowed",u),role:"region","aria-label":"StreamingStats",children:c||"StreamingStats Component"});l.StreamingStats=V,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@sudobility/components"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Components={},e.ReactJSXRuntime,e.SudobilityComponents))})(this,(function(e,t,n){"use strict";const r=({className:i,children:o,disabled:s})=>t.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed",i),role:"region","aria-label":"StreamingStats",children:o||"StreamingStats Component"});e.StreamingStats=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/entertainment-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Entertainment and media UI components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"typescript"
|
|
32
32
|
],
|
|
33
33
|
"author": "John Q Huang",
|
|
34
|
-
"license": "
|
|
34
|
+
"license": "BUSL-1.1",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@sudobility/components": "^
|
|
36
|
+
"@sudobility/components": "^5.0.7",
|
|
37
37
|
"@sudobility/design": "^1.1.18",
|
|
38
38
|
"react": "^18.0.0 || ^19.0.0",
|
|
39
39
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/js": "^9.38.0",
|
|
43
|
-
"@sudobility/components": "^
|
|
43
|
+
"@sudobility/components": "^5.0.7",
|
|
44
44
|
"@sudobility/design": "^1.1.18",
|
|
45
45
|
"@testing-library/dom": "^10.4.1",
|
|
46
46
|
"@testing-library/react": "^16.3.0",
|
|
@@ -59,9 +59,7 @@
|
|
|
59
59
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
60
60
|
"eslint-plugin-react-refresh": "^0.4.0",
|
|
61
61
|
"jsdom": "^27.0.1",
|
|
62
|
-
"prettier": "^3.
|
|
63
|
-
"react": "^19.2.0",
|
|
64
|
-
"react-dom": "^19.2.0",
|
|
62
|
+
"prettier": "^3.8.1",
|
|
65
63
|
"tailwind-merge": "^3.3.1",
|
|
66
64
|
"typescript": "^5.9.3",
|
|
67
65
|
"vite": "^7.1.12",
|