@sudobility/gaming-components 1.0.9
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/achievement-badge.d.ts +33 -0
- package/dist/achievement-badge.d.ts.map +1 -0
- package/dist/achievement-unlock.d.ts +33 -0
- package/dist/achievement-unlock.d.ts.map +1 -0
- package/dist/audio-player.d.ts +35 -0
- package/dist/audio-player.d.ts.map +1 -0
- package/dist/game-controls.d.ts +33 -0
- package/dist/game-controls.d.ts.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +792 -0
- package/dist/index.umd.js +6 -0
- package/dist/lead-scorer.d.ts +18 -0
- package/dist/lead-scorer.d.ts.map +1 -0
- package/dist/leaderboard-podium.d.ts +33 -0
- package/dist/leaderboard-podium.d.ts.map +1 -0
- package/dist/player-stats.d.ts +18 -0
- package/dist/player-stats.d.ts.map +1 -0
- package/dist/podcast-player.d.ts +18 -0
- package/dist/podcast-player.d.ts.map +1 -0
- package/dist/score-board.d.ts +18 -0
- package/dist/score-board.d.ts.map +1 -0
- package/dist/score-display.d.ts +33 -0
- package/dist/score-display.d.ts.map +1 -0
- package/dist/scratch-card.d.ts +33 -0
- package/dist/scratch-card.d.ts.map +1 -0
- package/dist/signature-request.d.ts +18 -0
- package/dist/signature-request.d.ts.map +1 -0
- package/dist/spin-wheel.d.ts +33 -0
- package/dist/spin-wheel.d.ts.map +1 -0
- package/dist/sustainability-score.d.ts +18 -0
- package/dist/sustainability-score.d.ts.map +1 -0
- package/dist/video-player.d.ts +34 -0
- package/dist/video-player.d.ts.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UachievementUbadge Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable UachievementUbadge component with full dark mode support.
|
|
5
|
+
* Optimized for accessibility and AI-assisted development.
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <UachievementUbadge className="custom-class" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This component supports:
|
|
15
|
+
* - Light and dark themes automatically
|
|
16
|
+
* - Responsive design
|
|
17
|
+
* - Accessibility features
|
|
18
|
+
* - TypeScript type safety
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://docs.example.com/components/achievement-badge}
|
|
21
|
+
*/
|
|
22
|
+
export interface UachievementUbadgeProps {
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Component children */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Disabled state */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Callback when component is interacted with */
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const UachievementUbadge: ({ className, children, disabled, onClick, }: UachievementUbadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=achievement-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"achievement-badge.d.ts","sourceRoot":"","sources":["../src/achievement-badge.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,uBAAuB;IACtC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,6CAKhC,uBAAuB,4CAmBzB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UachievementUunlock Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable UachievementUunlock component with full dark mode support.
|
|
5
|
+
* Optimized for accessibility and AI-assisted development.
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <UachievementUunlock className="custom-class" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This component supports:
|
|
15
|
+
* - Light and dark themes automatically
|
|
16
|
+
* - Responsive design
|
|
17
|
+
* - Accessibility features
|
|
18
|
+
* - TypeScript type safety
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://docs.example.com/components/achievement-unlock}
|
|
21
|
+
*/
|
|
22
|
+
export interface UachievementUunlockProps {
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Component children */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Disabled state */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Callback when component is interacted with */
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const UachievementUunlock: ({ className, children, disabled, onClick, }: UachievementUunlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=achievement-unlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"achievement-unlock.d.ts","sourceRoot":"","sources":["../src/achievement-unlock.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,wBAAwB;IACvC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,6CAKjC,wBAAwB,4CAmB1B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UgameUcontrols Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable UgameUcontrols component with full dark mode support.
|
|
5
|
+
* Optimized for accessibility and AI-assisted development.
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <UgameUcontrols className="custom-class" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This component supports:
|
|
15
|
+
* - Light and dark themes automatically
|
|
16
|
+
* - Responsive design
|
|
17
|
+
* - Accessibility features
|
|
18
|
+
* - TypeScript type safety
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://docs.example.com/components/game-controls}
|
|
21
|
+
*/
|
|
22
|
+
export interface UgameUcontrolsProps {
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Component children */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Disabled state */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Callback when component is interacted with */
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const UgameUcontrols: ({ className, children, disabled, onClick, }: UgameUcontrolsProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=game-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-controls.d.ts","sourceRoot":"","sources":["../src/game-controls.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GAAI,6CAK5B,mBAAmB,4CAmBrB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* gaming-components
|
|
3
|
+
*
|
|
4
|
+
* Specialized components for the gaming domain
|
|
5
|
+
*
|
|
6
|
+
* @package @sudobility/gaming-components
|
|
7
|
+
*/
|
|
8
|
+
export * from './achievement-badge';
|
|
9
|
+
export * from './achievement-unlock';
|
|
10
|
+
export * from './audio-player';
|
|
11
|
+
export * from './game-controls';
|
|
12
|
+
export * from './lead-scorer';
|
|
13
|
+
export * from './leaderboard-podium';
|
|
14
|
+
export * from './player-stats';
|
|
15
|
+
export * from './podcast-player';
|
|
16
|
+
export * from './score-board';
|
|
17
|
+
export * from './score-display';
|
|
18
|
+
export * from './scratch-card';
|
|
19
|
+
export * from './signature-request';
|
|
20
|
+
export * from './spin-wheel';
|
|
21
|
+
export * from './sustainability-score';
|
|
22
|
+
export * from './video-player';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
|