@sudobility/gaming-components 1.1.0 → 2.0.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/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +282 -568
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/dist/audio-player.d.ts +0 -35
- package/dist/audio-player.d.ts.map +0 -1
- package/dist/podcast-player.d.ts +0 -18
- package/dist/podcast-player.d.ts.map +0 -1
- package/dist/signature-request.d.ts +0 -18
- package/dist/signature-request.d.ts.map +0 -1
- package/dist/video-player.d.ts +0 -34
- package/dist/video-player.d.ts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(s,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],y):(s=typeof globalThis<"u"?globalThis:s||self,y(s.Components={},s.React,s.components))})(this,(function(s,y,d){"use strict";var p={exports:{}},m={};var j;function W(){if(j)return m;j=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function a(l,g,b){var h=null;if(b!==void 0&&(h=""+b),g.key!==void 0&&(h=""+g.key),"key"in g){b={};for(var k in g)k!=="key"&&(b[k]=g[k])}else b=g;return g=b.ref,{$$typeof:t,type:l,key:h,ref:g!==void 0?g:null,props:b}}return m.Fragment=o,m.jsx=a,m.jsxs=a,m}var v={};var O;function q(){return O||(O=1,process.env.NODE_ENV!=="production"&&(function(){function t(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===fr?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case lr:return"Profiler";case nr:return"StrictMode";case dr:return"Suspense";case ur:return"SuspenseList";case br:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case or:return"Portal";case cr:return r.displayName||"Context";case ir:return(r._context.displayName||"Context")+".Consumer";case sr:var e=r.render;return r=r.displayName,r||(r=e.displayName||e.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case gr:return e=r.displayName||null,e!==null?e:t(r.type)||"Memo";case R:e=r._payload,r=r._init;try{return t(r(e))}catch{}}return null}function o(r){return""+r}function a(r){try{o(r);var e=!1}catch{e=!0}if(e){e=console;var n=e.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return n.call(e,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),o(r)}}function l(r){if(r===w)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===R)return"<...>";try{var e=t(r);return e?"<"+e+">":"<...>"}catch{return"<...>"}}function g(){var r=U.A;return r===null?null:r.getOwner()}function b(){return Error("react-stack-top-frame")}function h(r){if(I.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return r.key!==void 0}function k(r,e){function n(){L||(L=!0,console.error("%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)",e))}n.isReactWarning=!0,Object.defineProperty(r,"key",{get:n,configurable:!0})}function ar(){var r=t(this.type);return $[r]||($[r]=!0,console.error("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.")),r=this.props.ref,r!==void 0?r:null}function tr(r,e,n,i,E,T){var c=n.ref;return r={$$typeof:Y,type:r,key:e,props:n,_owner:i},(c!==void 0?c:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:ar}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function C(r,e,n,i,E,T){var c=e.children;if(c!==void 0)if(i)if(yr(c)){for(i=0;i<c.length;i++)A(c[i]);Object.freeze&&Object.freeze(c)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(c);if(I.call(e,"key")){c=t(r);var f=Object.keys(e).filter(function(mr){return mr!=="key"});i=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",M[c+i]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,g,m,P,m),$[m+g]=!0)}if(m=null,u!==void 0&&(t(u),m=""+u),x(n)&&(t(n.key),m=""+n.key),"key"in n){u={};for(var W in n)W!=="key"&&(u[W]=n[W])}else u=n;return m&&l(u,typeof e=="function"?e.displayName||e.name||"Unknown":e),j(e,m,u,h(),Y,B)}function R(e){p(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===k&&(e._payload.status==="fulfilled"?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}var w=f,_=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),C=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),ye=Symbol.for("react.client.reference"),I=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,pe=Array.isArray,D=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var q,Z={},Q=w.react_stack_bottom_frame.bind(w,b)(),K=D(i(b)),$={};O.Fragment=S,O.jsx=function(e,n,u){var g=1e4>I.recentlyCreatedOwnerStacks++;return E(e,n,u,!1,g?Error("react-stack-top-frame"):Q,g?D(i(e)):K)},O.jsxs=function(e,n,u){var g=1e4>I.recentlyCreatedOwnerStacks++;return E(e,n,u,!0,g?Error("react-stack-top-frame"):Q,g?D(i(e)):K)}})()),O}var G;function te(){return G||(G=1,process.env.NODE_ENV==="production"?F.exports=ee():F.exports=re()),F.exports}var r=te();const ae=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UachievementUbadge",children:s||"UachievementUbadge Component"}),ne=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UachievementUunlock",children:s||"UachievementUunlock Component"}),oe=({src:o,title:s,artist:t,artwork:i,autoPlay:h=!1,loop:b=!1,className:x})=>{const l=f.useRef(null),[N,j]=f.useState(h),[E,R]=f.useState(0),[p,w]=f.useState(0),[_,L]=f.useState(1);f.useEffect(()=>{const a=l.current;if(!a)return;const c=()=>R(a.currentTime),y=()=>w(a.duration),T=()=>j(!0),k=()=>j(!1),z=()=>j(!1);return a.addEventListener("timeupdate",c),a.addEventListener("loadedmetadata",y),a.addEventListener("play",T),a.addEventListener("pause",k),a.addEventListener("ended",z),()=>{a.removeEventListener("timeupdate",c),a.removeEventListener("loadedmetadata",y),a.removeEventListener("play",T),a.removeEventListener("pause",k),a.removeEventListener("ended",z)}},[]);const S=()=>{l.current&&(N?l.current.pause():l.current.play())},M=a=>{const c=parseFloat(a.target.value);R(c),l.current&&(l.current.currentTime=c)},V=a=>{const c=parseFloat(a.target.value);L(c),l.current&&(l.current.volume=c)},U=a=>{const c=Math.floor(a/60),y=Math.floor(a%60);return`${c}:${y.toString().padStart(2,"0")}`},C=p>0?E/p*100:0;return r.jsxs("div",{className:v.cn("bg-white dark:bg-gray-900 rounded-lg p-6 shadow-lg",x),children:[r.jsx("audio",{ref:l,src:o,autoPlay:h,loop:b}),r.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i&&r.jsx("div",{className:"w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 bg-gray-200 dark:bg-gray-700",children:r.jsx("img",{src:i,alt:s||"Album artwork",className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white truncate",children:s}),t&&r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 truncate",children:t})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("input",{type:"range",min:"0",max:p||0,value:E,onChange:M,className:"w-full accent-blue-500"}),r.jsxs("div",{className:"flex justify-between text-xs text-gray-600 dark:text-gray-400 mt-1",children:[r.jsx("span",{children:U(E)}),r.jsx("span",{children:U(p)})]})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("button",{onClick:S,className:"w-10 h-10 rounded-full bg-blue-500 text-white flex items-center justify-center hover:bg-blue-600 transition-colors",children:N?r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})}):r.jsx("svg",{className:"w-5 h-5 ml-0.5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M8 5v14l11-7z"})})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4 text-gray-600 dark:text-gray-400",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"})}),r.jsx("input",{type:"range",min:"0",max:"1",step:"0.1",value:_,onChange:V,className:"w-24 accent-blue-500"})]})]}),r.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:[C.toFixed(0),"%"]})]})]})},se=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UgameUcontrols",children:s||"UgameUcontrols Component"}),le=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"LeadScorer",children:s||"LeadScorer Component"}),ie=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UleaderboardUpodium",children:s||"UleaderboardUpodium Component"}),ce=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"PlayerStats",children:s||"PlayerStats Component"}),de=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"PodcastPlayer",children:s||"PodcastPlayer Component"}),ue=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"ScoreBoard",children:s||"ScoreBoard Component"}),ge=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UscoreUdisplay",children:s||"UscoreUdisplay Component"}),me=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UscratchUcard",children:s||"UscratchUcard Component"}),fe=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"SignatureRequest",children:s||"SignatureRequest Component"}),he=({className:o,children:s,disabled:t=!1,onClick:i})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UspinUwheel",children:s||"UspinUwheel Component"}),ve=({className:o,children:s,disabled:t})=>r.jsx("div",{className:v.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",t&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"SustainabilityScore",children:s||"SustainabilityScore Component"}),be=({src:o,poster:s,autoPlay:t=!1,loop:i=!1,muted:h=!1,controls:b=!0,className:x})=>{const l=f.useRef(null),[N,j]=f.useState(t),[E,R]=f.useState(1),[p,w]=f.useState(0),[_,L]=f.useState(0);f.useEffect(()=>{const a=l.current;if(!a)return;const c=()=>w(a.currentTime),y=()=>L(a.duration),T=()=>j(!0),k=()=>j(!1);return a.addEventListener("timeupdate",c),a.addEventListener("loadedmetadata",y),a.addEventListener("play",T),a.addEventListener("pause",k),()=>{a.removeEventListener("timeupdate",c),a.removeEventListener("loadedmetadata",y),a.removeEventListener("play",T),a.removeEventListener("pause",k)}},[]);const S=()=>{l.current&&(N?l.current.pause():l.current.play())},M=a=>{const c=parseFloat(a.target.value);R(c),l.current&&(l.current.volume=c)},V=a=>{const c=parseFloat(a.target.value);w(c),l.current&&(l.current.currentTime=c)},U=()=>{l.current&&(document.fullscreenElement?document.exitFullscreen():l.current.requestFullscreen())},C=a=>{const c=Math.floor(a/60),y=Math.floor(a%60);return`${c}:${y.toString().padStart(2,"0")}`};return r.jsxs("div",{className:v.cn("relative group",x),children:[r.jsx("video",{ref:l,src:o,poster:s,autoPlay:t,loop:i,muted:h,className:"w-full rounded-lg",onClick:S}),b&&r.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4 opacity-0 group-hover:opacity-100 transition-opacity",children:[r.jsx("input",{type:"range",min:"0",max:_||0,value:p,onChange:V,className:"w-full mb-2 accent-white"}),r.jsxs("div",{className:"flex items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("button",{onClick:S,className:"text-white hover:text-gray-300 transition-colors",children:N?r.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})}):r.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M8 5v14l11-7z"})})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"})}),r.jsx("input",{type:"range",min:"0",max:"1",step:"0.1",value:E,onChange:M,className:"w-20 accent-white"})]}),r.jsxs("span",{className:"text-white text-sm",children:[C(p)," / ",C(_)]})]}),r.jsx("button",{onClick:U,className:"text-white hover:text-gray-300 transition-colors",children:r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})})]})]})]})};d.AudioPlayer=oe,d.LeadScorer=le,d.PlayerStats=ce,d.PodcastPlayer=de,d.ScoreBoard=ue,d.SignatureRequest=fe,d.SustainabilityScore=ve,d.UachievementUbadge=ae,d.UachievementUunlock=ne,d.UgameUcontrols=se,d.UleaderboardUpodium=ie,d.UscoreUdisplay=ge,d.UscratchUcard=me,d.UspinUwheel=he,d.VideoPlayer=be,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
|
6
|
+
<%s key={someKey} {...props} />`,i,c,f,c),M[c+i]=!0)}if(c=null,n!==void 0&&(a(n),c=""+n),h(e)&&(a(e.key),c=""+e.key),"key"in e){n={};for(var x in e)x!=="key"&&(n[x]=e[x])}else n=e;return c&&k(n,typeof r=="function"?r.displayName||r.name||"Unknown":r),tr(r,c,n,g(),E,T)}function A(r){N(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===R&&(r._payload.status==="fulfilled"?N(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function N(r){return typeof r=="object"&&r!==null&&r.$$typeof===Y}var _=y,Y=Symbol.for("react.transitional.element"),or=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),nr=Symbol.for("react.strict_mode"),lr=Symbol.for("react.profiler"),ir=Symbol.for("react.consumer"),cr=Symbol.for("react.context"),sr=Symbol.for("react.forward_ref"),dr=Symbol.for("react.suspense"),ur=Symbol.for("react.suspense_list"),gr=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),br=Symbol.for("react.activity"),fr=Symbol.for("react.client.reference"),U=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,yr=Array.isArray,S=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(r){return r()}};var L,$={},F=_.react_stack_bottom_frame.bind(_,b)(),D=S(l(b)),M={};v.Fragment=w,v.jsx=function(r,e,n){var i=1e4>U.recentlyCreatedOwnerStacks++;return C(r,e,n,!1,i?Error("react-stack-top-frame"):F,i?S(l(r)):D)},v.jsxs=function(r,e,n){var i=1e4>U.recentlyCreatedOwnerStacks++;return C(r,e,n,!0,i?Error("react-stack-top-frame"):F,i?S(l(r)):D)}})()),v}var P;function J(){return P||(P=1,process.env.NODE_ENV==="production"?p.exports=W():p.exports=q()),p.exports}var u=J();const V=({className:t,children:o,disabled:a})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"SustainabilityScore",children:o||"SustainabilityScore Component"}),z=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UachievementUbadge",children:o||"UachievementUbadge Component"}),B=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UachievementUunlock",children:o||"UachievementUunlock Component"}),G=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UgameUcontrols",children:o||"UgameUcontrols Component"}),X=({className:t,children:o,disabled:a})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"LeadScorer",children:o||"LeadScorer Component"}),H=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UleaderboardUpodium",children:o||"UleaderboardUpodium Component"}),Z=({className:t,children:o,disabled:a})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"PlayerStats",children:o||"PlayerStats Component"}),Q=({className:t,children:o,disabled:a})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"ScoreBoard",children:o||"ScoreBoard Component"}),K=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UscoreUdisplay",children:o||"UscoreUdisplay Component"}),rr=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UscratchUcard",children:o||"UscratchUcard Component"}),er=({className:t,children:o,disabled:a=!1,onClick:l})=>u.jsx("div",{className:d.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",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:l,role:"region","aria-label":"UspinUwheel",children:o||"UspinUwheel Component"});s.LeadScorer=X,s.PlayerStats=Z,s.ScoreBoard=Q,s.SustainabilityScore=V,s.UachievementUbadge=z,s.UachievementUunlock=B,s.UgameUcontrols=G,s.UleaderboardUpodium=H,s.UscoreUdisplay=K,s.UscratchUcard=rr,s.UspinUwheel=er,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
package/dist/audio-player.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface AudioPlayerProps {
|
|
3
|
-
/** Audio source URL */
|
|
4
|
-
src: string;
|
|
5
|
-
/** Track title */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Artist name */
|
|
8
|
-
artist?: string;
|
|
9
|
-
/** Album artwork URL */
|
|
10
|
-
artwork?: string;
|
|
11
|
-
/** Auto play */
|
|
12
|
-
autoPlay?: boolean;
|
|
13
|
-
/** Loop playback */
|
|
14
|
-
loop?: boolean;
|
|
15
|
-
/** Additional className */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* AudioPlayer Component
|
|
20
|
-
*
|
|
21
|
-
* Audio player with playback controls and progress bar.
|
|
22
|
-
* Displays track info and artwork.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <AudioPlayer
|
|
27
|
-
* src="/audio/track.mp3"
|
|
28
|
-
* title="My Song"
|
|
29
|
-
* artist="Artist Name"
|
|
30
|
-
* artwork="/images/album.jpg"
|
|
31
|
-
* />
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare const AudioPlayer: React.FC<AudioPlayerProps>;
|
|
35
|
-
//# sourceMappingURL=audio-player.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-player.d.ts","sourceRoot":"","sources":["../src/audio-player.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiLlD,CAAC"}
|
package/dist/podcast-player.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PodcastPlayer Component
|
|
3
|
-
*
|
|
4
|
-
* Entertainment component with full dark mode support.
|
|
5
|
-
*
|
|
6
|
-
* @component
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <PodcastPlayer className="custom-class" />
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export interface PodcastPlayerProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const PodcastPlayer: ({ className, children, disabled, }: PodcastPlayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=podcast-player.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"podcast-player.d.ts","sourceRoot":"","sources":["../src/podcast-player.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,oCAI3B,kBAAkB,4CAiBpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SignatureRequest Component
|
|
3
|
-
*
|
|
4
|
-
* Legal & compliance component with full dark mode support.
|
|
5
|
-
*
|
|
6
|
-
* @component
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <SignatureRequest className="custom-class" />
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export interface SignatureRequestProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const SignatureRequest: ({ className, children, disabled, }: SignatureRequestProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=signature-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature-request.d.ts","sourceRoot":"","sources":["../src/signature-request.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAI9B,qBAAqB,4CAiBvB,CAAC"}
|
package/dist/video-player.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface VideoPlayerProps {
|
|
3
|
-
/** Video source URL */
|
|
4
|
-
src: string;
|
|
5
|
-
/** Poster image URL */
|
|
6
|
-
poster?: string;
|
|
7
|
-
/** Auto play */
|
|
8
|
-
autoPlay?: boolean;
|
|
9
|
-
/** Loop playback */
|
|
10
|
-
loop?: boolean;
|
|
11
|
-
/** Muted by default */
|
|
12
|
-
muted?: boolean;
|
|
13
|
-
/** Show controls */
|
|
14
|
-
controls?: boolean;
|
|
15
|
-
/** Additional className */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* VideoPlayer Component
|
|
20
|
-
*
|
|
21
|
-
* Simple video player with custom controls.
|
|
22
|
-
* Supports play/pause, volume, and fullscreen.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <VideoPlayer
|
|
27
|
-
* src="/videos/sample.mp4"
|
|
28
|
-
* poster="/images/poster.jpg"
|
|
29
|
-
* controls
|
|
30
|
-
* />
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
|
34
|
-
//# sourceMappingURL=video-player.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"video-player.d.ts","sourceRoot":"","sources":["../src/video-player.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uBAAuB;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0KlD,CAAC"}
|