@manas-dev/sound-lab 1.0.1

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/README.md ADDED
@@ -0,0 +1,84 @@
1
+
2
+ # @manas-dev/sound-lab
3
+
4
+ [![npm version](https://img.shields.io/npm/v/@manas-dev/sound-lab.svg?style=flat-square)](https://www.npmjs.com/package/@manas-dev/sound-lab)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
6
+ [![Downloads](https://img.shields.io/npm/dm/@manas-dev/sound-lab.svg?style=flat-square)](https://www.npmjs.com/package/@manas-dev/sound-lab)
7
+
8
+ ![Sound Lab Preview](./assets/preview.svg)
9
+
10
+ A sleek, accessible, and customizable sound control panel for modern React applications.
11
+
12
+ ## Features
13
+
14
+ - 🎛️ **Master Control**: Global sound toggle with animated switch.
15
+ - 🔊 **Volume Slider**: Precise volume control (0-100%).
16
+ - 🎧 **Sound Profiles**: Support for multiple sound profiles (e.g., Glass, Mechanical, Sci-Fi).
17
+ - 🎨 **Themable**: Adapts to Light/Dark modes and supports custom primary colors.
18
+ - 📱 **Responsive**: Mobile-friendly popup interface.
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ npm install @manas-dev/sound-lab lucide-react
24
+ # or
25
+ yarn add @manas-dev/sound-lab lucide-react
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ This is a controlled component. You must provide the state for volume, sound enabled, etc.
31
+
32
+ ```tsx
33
+ import React, { useState } from 'react';
34
+ import { SoundLab } from '@manas-dev/sound-lab';
35
+
36
+ const App = () => {
37
+ const [isSoundEnabled, setIsSoundEnabled] = useState(false);
38
+ const [volume, setVolume] = useState(0.5);
39
+ const [soundProfile, setSoundProfile] = useState('glass');
40
+ const [isDark, setIsDark] = useState(true);
41
+
42
+ // Your sound playing logic here
43
+ const playSound = (type) => {
44
+ if (!isSoundEnabled) return;
45
+ console.log(`Playing ${type} sound with volume ${volume} using profile ${soundProfile}`);
46
+ };
47
+
48
+ return (
49
+ <div className={isDark ? 'dark' : ''}>
50
+ <SoundLab
51
+ isSoundEnabled={isSoundEnabled}
52
+ setIsSoundEnabled={setIsSoundEnabled}
53
+ volume={volume}
54
+ setVolume={setVolume}
55
+ soundProfile={soundProfile}
56
+ setSoundProfile={setSoundProfile}
57
+ isDark={isDark}
58
+ playSound={playSound}
59
+ primaryColor="#3b82f6" // Custom active color
60
+ className="fixed top-4 right-20 z-50"
61
+ />
62
+ </div>
63
+ );
64
+ };
65
+ ```
66
+
67
+ ## Props API
68
+
69
+ | Prop | Type | Default | Description |
70
+ |------|------|---------|-------------|
71
+ | `isSoundEnabled` | `boolean` | **Required** | Master toggle state. |
72
+ | `setIsSoundEnabled` | `(val: boolean) => void` | **Required** | Callback to toggle sound. |
73
+ | `volume` | `number` | **Required** | Volume level (0.0 to 1.0). |
74
+ | `setVolume` | `(val: number) => void` | **Required** | Callback to set volume. |
75
+ | `soundProfile` | `string` | **Required** | ID of the active sound profile. |
76
+ | `setSoundProfile` | `(id: string) => void` | **Required** | Callback to change profile. |
77
+ | `isDark` | `boolean` | **Required** | Current color mode state. |
78
+ | `playSound` | `(type: string) => void` | `noop` | Optional callback for UI interactions (clicks, hovers). |
79
+ | `primaryColor` | `string` | `'#3b82f6'` | Hex color for active states (buttons, sliders, selected items). |
80
+ | `className` | `string` | `''` | CSS class for the wrapper element. |
81
+
82
+ ## License
83
+
84
+ MIT
@@ -0,0 +1,57 @@
1
+ <svg width="400" height="300" viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
4
+ <feGaussianBlur in="SourceAlpha" stdDeviation="5"/>
5
+ <feOffset dx="0" dy="4" result="offsetblur"/>
6
+ <feComponentTransfer>
7
+ <feFuncA type="linear" slope="0.3"/>
8
+ </feComponentTransfer>
9
+ <feMerge>
10
+ <feMergeNode/>
11
+ <feMergeNode in="SourceGraphic"/>
12
+ </feMerge>
13
+ </filter>
14
+ </defs>
15
+
16
+ <!-- Background -->
17
+ <rect width="400" height="300" fill="#18181b"/>
18
+
19
+ <!-- Trigger Button -->
20
+ <circle cx="350" cy="50" r="20" fill="#27272a" stroke="#3f3f46" stroke-width="1"/>
21
+ <!-- Musical Note Icon -->
22
+ <path d="M342 55 V42 L352 40 V52 M342 55 A3 3 0 1 1 339 52 L342 52 M352 52 A3 3 0 1 1 349 49 L352 49" stroke="#a1a1aa" stroke-width="2" fill="none"/>
23
+
24
+ <!-- Popup -->
25
+ <rect x="50" y="80" width="300" height="200" rx="16" fill="#27272a" stroke="#3f3f46" stroke-width="1" filter="url(#shadow)"/>
26
+
27
+ <!-- Header -->
28
+ <text x="70" y="110" font-family="sans-serif" font-size="12" font-weight="bold" fill="#71717a">SOUND LAB</text>
29
+ <circle cx="330" cy="105" r="10" fill="#3f3f46"/>
30
+ <text x="326.5" y="109" font-family="sans-serif" font-size="12" fill="#a1a1aa">x</text>
31
+
32
+ <!-- Master Switch -->
33
+ <rect x="70" y="130" width="260" height="40" rx="8" fill="#27272a"/>
34
+ <text x="85" y="155" font-family="sans-serif" font-size="12" fill="#d4d4d8">Master Audio</text>
35
+ <rect x="290" y="140" width="30" height="20" rx="10" fill="#3b82f6"/>
36
+ <circle cx="310" cy="150" r="8" fill="white"/>
37
+
38
+ <!-- Volume -->
39
+ <rect x="70" y="180" width="260" height="40" rx="8" fill="#27272a"/>
40
+ <text x="85" y="205" font-family="sans-serif" font-size="12" fill="#d4d4d8">Volume</text>
41
+ <text x="300" y="205" font-family="sans-serif" font-size="12" font-weight="bold" fill="#3b82f6">75%</text>
42
+ <line x1="140" y1="200" x2="280" y2="200" stroke="#52525b" stroke-width="4" stroke-linecap="round"/>
43
+ <line x1="140" y1="200" x2="245" y2="200" stroke="#3b82f6" stroke-width="4" stroke-linecap="round"/>
44
+ <circle cx="245" cy="200" r="5" fill="#3b82f6"/>
45
+
46
+ <!-- Sound Profiles -->
47
+ <g transform="translate(70, 230)">
48
+ <rect x="0" y="0" width="80" height="40" rx="6" fill="#3b82f6" fill-opacity="0.1" stroke="#3b82f6" stroke-opacity="0.5"/>
49
+ <text x="40" y="25" text-anchor="middle" font-family="sans-serif" font-size="10" fill="#3b82f6">Glass</text>
50
+
51
+ <rect x="90" y="0" width="80" height="40" rx="6" fill="none" stroke="#3f3f46"/>
52
+ <text x="130" y="25" text-anchor="middle" font-family="sans-serif" font-size="10" fill="#71717a">Thock</text>
53
+
54
+ <rect x="180" y="0" width="80" height="40" rx="6" fill="none" stroke="#3f3f46"/>
55
+ <text x="220" y="25" text-anchor="middle" font-family="sans-serif" font-size="10" fill="#71717a">Retro</text>
56
+ </g>
57
+ </svg>
@@ -0,0 +1,305 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
7
+
8
+ /******************************************************************************
9
+ Copyright (c) Microsoft Corporation.
10
+
11
+ Permission to use, copy, modify, and/or distribute this software for any
12
+ purpose with or without fee is hereby granted.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
17
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
+ PERFORMANCE OF THIS SOFTWARE.
21
+ ***************************************************************************** */
22
+
23
+ var __assign = function() {
24
+ __assign = Object.assign || function __assign(t) {
25
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
26
+ s = arguments[i];
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28
+ }
29
+ return t;
30
+ };
31
+ return __assign.apply(this, arguments);
32
+ };
33
+
34
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
35
+ var e = new Error(message);
36
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
37
+ };
38
+
39
+ /**
40
+ * lucide-react v0.0.1 - ISC
41
+ */
42
+
43
+ var defaultAttributes = {
44
+ xmlns: "http://www.w3.org/2000/svg",
45
+ width: 24,
46
+ height: 24,
47
+ viewBox: "0 0 24 24",
48
+ fill: "none",
49
+ stroke: "currentColor",
50
+ strokeWidth: 2,
51
+ strokeLinecap: "round",
52
+ strokeLinejoin: "round"
53
+ };
54
+
55
+ /**
56
+ * lucide-react v0.0.1 - ISC
57
+ */
58
+
59
+ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
60
+ const createLucideIcon = (iconName, iconNode) => {
61
+ const Component = react.forwardRef(
62
+ ({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, children, ...rest }, ref) => react.createElement(
63
+ "svg",
64
+ {
65
+ ref,
66
+ ...defaultAttributes,
67
+ width: size,
68
+ height: size,
69
+ stroke: color,
70
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
71
+ className: `lucide lucide-${toKebabCase(iconName)}`,
72
+ ...rest
73
+ },
74
+ [
75
+ ...iconNode.map(([tag, attrs]) => react.createElement(tag, attrs)),
76
+ ...(Array.isArray(children) ? children : [children]) || []
77
+ ]
78
+ )
79
+ );
80
+ Component.displayName = `${iconName}`;
81
+ return Component;
82
+ };
83
+ var createLucideIcon$1 = createLucideIcon;
84
+
85
+ /**
86
+ * lucide-react v0.0.1 - ISC
87
+ */
88
+
89
+ const Box = createLucideIcon$1("Box", [
90
+ [
91
+ "path",
92
+ {
93
+ d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",
94
+ key: "yt0hxn"
95
+ }
96
+ ],
97
+ ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
98
+ ["line", { x1: "12", x2: "12", y1: "22", y2: "12", key: "a4e8g8" }]
99
+ ]);
100
+
101
+ /**
102
+ * lucide-react v0.0.1 - ISC
103
+ */
104
+
105
+ const Droplets = createLucideIcon$1("Droplets", [
106
+ [
107
+ "path",
108
+ {
109
+ d: "M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",
110
+ key: "1ptgy4"
111
+ }
112
+ ],
113
+ [
114
+ "path",
115
+ {
116
+ d: "M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",
117
+ key: "1sl1rz"
118
+ }
119
+ ]
120
+ ]);
121
+
122
+ /**
123
+ * lucide-react v0.0.1 - ISC
124
+ */
125
+
126
+ const Gamepad2 = createLucideIcon$1("Gamepad2", [
127
+ ["line", { x1: "6", x2: "10", y1: "11", y2: "11", key: "1gktln" }],
128
+ ["line", { x1: "8", x2: "8", y1: "9", y2: "13", key: "qnk9ow" }],
129
+ ["line", { x1: "15", x2: "15.01", y1: "12", y2: "12", key: "krot7o" }],
130
+ ["line", { x1: "18", x2: "18.01", y1: "10", y2: "10", key: "1lcuu1" }],
131
+ [
132
+ "path",
133
+ {
134
+ d: "M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",
135
+ key: "mfqc10"
136
+ }
137
+ ]
138
+ ]);
139
+
140
+ /**
141
+ * lucide-react v0.0.1 - ISC
142
+ */
143
+
144
+ const Headphones = createLucideIcon$1("Headphones", [
145
+ [
146
+ "path",
147
+ {
148
+ d: "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",
149
+ key: "1xhozi"
150
+ }
151
+ ]
152
+ ]);
153
+
154
+ /**
155
+ * lucide-react v0.0.1 - ISC
156
+ */
157
+
158
+ const Keyboard = createLucideIcon$1("Keyboard", [
159
+ [
160
+ "rect",
161
+ {
162
+ width: "20",
163
+ height: "16",
164
+ x: "2",
165
+ y: "4",
166
+ rx: "2",
167
+ ry: "2",
168
+ key: "15u882"
169
+ }
170
+ ],
171
+ ["path", { d: "M6 8h.001", key: "1ej0i3" }],
172
+ ["path", { d: "M10 8h.001", key: "1x2st2" }],
173
+ ["path", { d: "M14 8h.001", key: "1vkmyp" }],
174
+ ["path", { d: "M18 8h.001", key: "kfsenl" }],
175
+ ["path", { d: "M8 12h.001", key: "1sjpby" }],
176
+ ["path", { d: "M12 12h.001", key: "al75ts" }],
177
+ ["path", { d: "M16 12h.001", key: "931bgk" }],
178
+ ["path", { d: "M7 16h10", key: "wp8him" }]
179
+ ]);
180
+
181
+ /**
182
+ * lucide-react v0.0.1 - ISC
183
+ */
184
+
185
+ const Music = createLucideIcon$1("Music", [
186
+ ["path", { d: "M9 18V5l12-2v13", key: "1jmyc2" }],
187
+ ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
188
+ ["circle", { cx: "18", cy: "16", r: "3", key: "1hluhg" }]
189
+ ]);
190
+
191
+ /**
192
+ * lucide-react v0.0.1 - ISC
193
+ */
194
+
195
+ const Sparkles = createLucideIcon$1("Sparkles", [
196
+ [
197
+ "path",
198
+ {
199
+ d: "m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",
200
+ key: "17u4zn"
201
+ }
202
+ ],
203
+ ["path", { d: "M5 3v4", key: "bklmnn" }],
204
+ ["path", { d: "M19 17v4", key: "iiml17" }],
205
+ ["path", { d: "M3 5h4", key: "nem4j1" }],
206
+ ["path", { d: "M17 19h4", key: "lbex7p" }]
207
+ ]);
208
+
209
+ /**
210
+ * lucide-react v0.0.1 - ISC
211
+ */
212
+
213
+ const X = createLucideIcon$1("X", [
214
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
215
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
216
+ ]);
217
+
218
+ /**
219
+ * lucide-react v0.0.1 - ISC
220
+ */
221
+
222
+ const Zap = createLucideIcon$1("Zap", [
223
+ [
224
+ "polygon",
225
+ { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2", key: "45s27k" }
226
+ ]
227
+ ]);
228
+
229
+ var DEFAULT_SOUNDS = [
230
+ { id: 'glass', name: 'Glass', icon: Sparkles },
231
+ { id: 'thock', name: 'Thock', icon: Keyboard },
232
+ { id: 'console', name: 'Console', icon: Gamepad2 },
233
+ { id: 'minecraft', name: 'Minecraft', icon: Box },
234
+ { id: 'retro', name: 'Retro', icon: Gamepad2 },
235
+ { id: 'lofi', name: 'Lofi', icon: Headphones },
236
+ { id: 'mechanical', name: 'Clicky', icon: Keyboard },
237
+ { id: 'scifi', name: 'Sci-Fi', icon: Zap },
238
+ { id: 'bubble', name: 'Bubble', icon: Droplets },
239
+ ];
240
+ var SoundLab = function (_a) {
241
+ var isSoundEnabled = _a.isSoundEnabled, setIsSoundEnabled = _a.setIsSoundEnabled, volume = _a.volume, setVolume = _a.setVolume, soundProfile = _a.soundProfile, setSoundProfile = _a.setSoundProfile, isDark = _a.isDark, _b = _a.playSound, playSound = _b === void 0 ? function () { } : _b, _c = _a.primaryColor, primaryColor = _c === void 0 ? '#3b82f6' : _c, // Default blue-500
242
+ _d = _a.className, // Default blue-500
243
+ className = _d === void 0 ? '' : _d, _e = _a.sounds, sounds = _e === void 0 ? DEFAULT_SOUNDS : _e;
244
+ var _f = react.useState(false), isOpen = _f[0], setIsOpen = _f[1];
245
+ var _g = react.useState(null), toastMessage = _g[0], setToastMessage = _g[1];
246
+ var _h = react.useState(false), showToast = _h[0], setShowToast = _h[1];
247
+ var timeoutRef = react.useRef(null);
248
+ var showNotification = function (message) {
249
+ setToastMessage(message);
250
+ setShowToast(true);
251
+ setTimeout(function () { return setShowToast(false); }, 2000);
252
+ };
253
+ var handleMouseEnter = function () {
254
+ if (timeoutRef.current) {
255
+ clearTimeout(timeoutRef.current);
256
+ timeoutRef.current = null;
257
+ }
258
+ };
259
+ var handleMouseLeave = function () {
260
+ timeoutRef.current = setTimeout(function () {
261
+ setIsOpen(false);
262
+ }, 1000);
263
+ };
264
+ react.useEffect(function () {
265
+ return function () {
266
+ if (timeoutRef.current)
267
+ clearTimeout(timeoutRef.current);
268
+ };
269
+ }, []);
270
+ // Helper for Hex transparency
271
+ var hexToRgba = function (hex, alpha) {
272
+ var r = parseInt(hex.slice(1, 3), 16);
273
+ var g = parseInt(hex.slice(3, 5), 16);
274
+ var b = parseInt(hex.slice(5, 7), 16);
275
+ return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
276
+ };
277
+ return (jsxRuntime.jsxs("div", __assign({ className: "relative ".concat(className) }, { children: [showToast && (jsxRuntime.jsx("div", __assign({ className: "fixed top-20 right-4 px-4 py-2 rounded-xl shadow-lg backdrop-blur-md border animate-in slide-in-from-top-2 fade-in duration-300 z-[60] whitespace-nowrap\n ".concat(isDark ? 'bg-zinc-800/90 border-zinc-700 text-white' : 'bg-white/90 border-slate-200 text-slate-800') }, { children: jsxRuntime.jsx("span", __assign({ className: "text-xs font-bold" }, { children: toastMessage })) }))), jsxRuntime.jsx("button", __assign({ onClick: function () { setIsOpen(!isOpen); playSound('click'); }, onMouseEnter: function () { return playSound('hover'); }, className: "p-2 md:p-3 rounded-full transition-all duration-300\n ".concat(isOpen || isSoundEnabled
278
+ ? (isDark ? "bg-zinc-800" : "bg-white")
279
+ : (isDark ? 'text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50' : 'text-slate-400 hover:text-slate-600 hover:bg-slate-50')), style: isOpen || isSoundEnabled ? { color: primaryColor } : {}, "aria-label": "Open sound menu" }, { children: isSoundEnabled ? jsxRuntime.jsx(Music, { size: 20, className: "md:w-6 md:h-6 animate-pulse" }) : jsxRuntime.jsx(Music, { size: 20, className: "md:w-6 md:h-6" }) })), isOpen && (jsxRuntime.jsxs("div", __assign({ onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, className: "absolute top-full right-0 mt-4 p-4 rounded-3xl border w-[280px] backdrop-blur-xl shadow-2xl animate-in slide-in-from-top-5 fade-in z-50\n ".concat(isDark ? 'bg-zinc-900/95 border-zinc-800' : 'bg-white/95 border-white/60') }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex justify-between items-center mb-4" }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex items-center gap-2" }, { children: [jsxRuntime.jsx(Music, { size: 14, className: isDark ? 'text-zinc-400' : 'text-slate-400' }), jsxRuntime.jsx("span", __assign({ className: "text-xs font-bold uppercase tracking-wider ".concat(isDark ? 'text-zinc-500' : 'text-slate-500') }, { children: "Sound Lab" }))] })), jsxRuntime.jsx("button", __assign({ onClick: function () { setIsOpen(false); playSound('click'); }, className: "p-1 rounded-full ".concat(isDark ? 'hover:bg-zinc-800' : 'hover:bg-slate-100'), "aria-label": "Close sound menu" }, { children: jsxRuntime.jsx(X, { size: 14, className: isDark ? 'text-zinc-400' : 'text-slate-400' }) }))] })), jsxRuntime.jsxs("div", __assign({ className: "flex items-center justify-between p-3 rounded-xl mb-4 transition-colors\n ".concat(isDark ? 'bg-zinc-800/50' : 'bg-slate-50') }, { children: [jsxRuntime.jsx("span", __assign({ className: "text-xs font-medium ".concat(isDark ? 'text-zinc-300' : 'text-slate-600') }, { children: "Master Audio" })), jsxRuntime.jsx("button", __assign({ onClick: function () {
280
+ setIsSoundEnabled(!isSoundEnabled);
281
+ if (!isSoundEnabled) { // If turning ON, play a sound
282
+ setTimeout(function () { return playSound('switch'); }, 50);
283
+ showNotification('Sound Enabled');
284
+ }
285
+ else {
286
+ showNotification('Sound Disabled');
287
+ }
288
+ }, className: "relative w-10 h-6 rounded-full transition-colors duration-300 ".concat(isDark ? 'bg-zinc-700' : 'bg-slate-300'), style: { backgroundColor: isSoundEnabled ? primaryColor : undefined }, "aria-label": isSoundEnabled ? "Disable sound" : "Enable sound" }, { children: jsxRuntime.jsx("span", { className: "absolute top-1 left-1 w-4 h-4 rounded-full bg-white transition-transform duration-300 ".concat(isSoundEnabled ? 'translate-x-4' : 'translate-x-0') }) }))] })), jsxRuntime.jsxs("div", __assign({ className: "p-3 rounded-xl mb-4 transition-colors ".concat(isDark ? 'bg-zinc-800/50' : 'bg-slate-50') }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex justify-between items-center mb-2" }, { children: [jsxRuntime.jsx("span", __assign({ className: "text-xs font-medium ".concat(isDark ? 'text-zinc-300' : 'text-slate-600') }, { children: "Volume" })), jsxRuntime.jsxs("span", __assign({ className: "text-xs font-bold", style: { color: primaryColor } }, { children: [Math.round(volume * 100), "%"] }))] })), jsxRuntime.jsx("input", { type: "range", min: "0", max: "1", step: "0.05", value: volume, onChange: function (e) {
289
+ setVolume(parseFloat(e.target.value));
290
+ if (!isSoundEnabled)
291
+ setIsSoundEnabled(true);
292
+ }, className: "w-full h-1.5 rounded-full appearance-none cursor-pointer ".concat(isDark ? 'bg-zinc-700' : 'bg-slate-300', " accent-current"), style: { accentColor: primaryColor }, "aria-label": "Volume control" })] })), jsxRuntime.jsx("div", __assign({ className: "grid grid-cols-3 gap-2" }, { children: sounds.map(function (profile) { return (jsxRuntime.jsxs("button", __assign({ onClick: function () {
293
+ setSoundProfile(profile.id);
294
+ if (!isSoundEnabled)
295
+ setIsSoundEnabled(true);
296
+ setTimeout(function () { return playSound('click'); }, 50);
297
+ showNotification("Profile: ".concat(profile.name));
298
+ }, className: "flex flex-col items-center gap-1 p-2 rounded-xl border transition-all duration-300\n ".concat(isDark ? 'bg-transparent border-transparent hover:bg-zinc-800' : 'bg-transparent border-transparent hover:bg-slate-100'), style: soundProfile === profile.id ? {
299
+ backgroundColor: hexToRgba(primaryColor, 0.1),
300
+ borderColor: hexToRgba(primaryColor, 0.5)
301
+ } : {} }, { children: [jsxRuntime.jsx(profile.icon, { size: 16, className: isDark ? 'text-zinc-500' : 'text-slate-400', style: soundProfile === profile.id ? { color: primaryColor } : {} }), jsxRuntime.jsx("span", __assign({ className: "text-[10px] font-medium ".concat(isDark ? 'text-zinc-500' : 'text-slate-500'), style: soundProfile === profile.id ? { color: isDark ? 'white' : primaryColor } : {} }, { children: profile.name }))] }), profile.id)); }) }))] })))] })));
302
+ };
303
+
304
+ exports.SoundLab = SoundLab;
305
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../node_modules/tslib/tslib.es6.mjs","../node_modules/lucide-react/dist/esm/defaultAttributes.mjs","../node_modules/lucide-react/dist/esm/createLucideIcon.mjs","../node_modules/lucide-react/dist/esm/icons/box.mjs","../node_modules/lucide-react/dist/esm/icons/droplets.mjs","../node_modules/lucide-react/dist/esm/icons/gamepad-2.mjs","../node_modules/lucide-react/dist/esm/icons/headphones.mjs","../node_modules/lucide-react/dist/esm/icons/keyboard.mjs","../node_modules/lucide-react/dist/esm/icons/music.mjs","../node_modules/lucide-react/dist/esm/icons/sparkles.mjs","../node_modules/lucide-react/dist/esm/icons/x.mjs","../node_modules/lucide-react/dist/esm/icons/zap.mjs","../src/index.tsx"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, strokeWidth = 2, absoluteStrokeWidth, children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: `lucide lucide-${toKebabCase(iconName)}`,\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...(Array.isArray(children) ? children : [children]) || []\n ]\n )\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\nvar createLucideIcon$1 = createLucideIcon;\n\nexport { createLucideIcon$1 as default, toKebabCase };\n//# sourceMappingURL=createLucideIcon.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Box = createLucideIcon(\"Box\", [\n [\n \"path\",\n {\n d: \"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\",\n key: \"yt0hxn\"\n }\n ],\n [\"polyline\", { points: \"3.29 7 12 12 20.71 7\", key: \"ousv84\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"22\", y2: \"12\", key: \"a4e8g8\" }]\n]);\n\nexport { Box as default };\n//# sourceMappingURL=box.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Droplets = createLucideIcon(\"Droplets\", [\n [\n \"path\",\n {\n d: \"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z\",\n key: \"1ptgy4\"\n }\n ],\n [\n \"path\",\n {\n d: \"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97\",\n key: \"1sl1rz\"\n }\n ]\n]);\n\nexport { Droplets as default };\n//# sourceMappingURL=droplets.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Gamepad2 = createLucideIcon(\"Gamepad2\", [\n [\"line\", { x1: \"6\", x2: \"10\", y1: \"11\", y2: \"11\", key: \"1gktln\" }],\n [\"line\", { x1: \"8\", x2: \"8\", y1: \"9\", y2: \"13\", key: \"qnk9ow\" }],\n [\"line\", { x1: \"15\", x2: \"15.01\", y1: \"12\", y2: \"12\", key: \"krot7o\" }],\n [\"line\", { x1: \"18\", x2: \"18.01\", y1: \"10\", y2: \"10\", key: \"1lcuu1\" }],\n [\n \"path\",\n {\n d: \"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z\",\n key: \"mfqc10\"\n }\n ]\n]);\n\nexport { Gamepad2 as default };\n//# sourceMappingURL=gamepad-2.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Headphones = createLucideIcon(\"Headphones\", [\n [\n \"path\",\n {\n d: \"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3\",\n key: \"1xhozi\"\n }\n ]\n]);\n\nexport { Headphones as default };\n//# sourceMappingURL=headphones.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Keyboard = createLucideIcon(\"Keyboard\", [\n [\n \"rect\",\n {\n width: \"20\",\n height: \"16\",\n x: \"2\",\n y: \"4\",\n rx: \"2\",\n ry: \"2\",\n key: \"15u882\"\n }\n ],\n [\"path\", { d: \"M6 8h.001\", key: \"1ej0i3\" }],\n [\"path\", { d: \"M10 8h.001\", key: \"1x2st2\" }],\n [\"path\", { d: \"M14 8h.001\", key: \"1vkmyp\" }],\n [\"path\", { d: \"M18 8h.001\", key: \"kfsenl\" }],\n [\"path\", { d: \"M8 12h.001\", key: \"1sjpby\" }],\n [\"path\", { d: \"M12 12h.001\", key: \"al75ts\" }],\n [\"path\", { d: \"M16 12h.001\", key: \"931bgk\" }],\n [\"path\", { d: \"M7 16h10\", key: \"wp8him\" }]\n]);\n\nexport { Keyboard as default };\n//# sourceMappingURL=keyboard.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Music = createLucideIcon(\"Music\", [\n [\"path\", { d: \"M9 18V5l12-2v13\", key: \"1jmyc2\" }],\n [\"circle\", { cx: \"6\", cy: \"18\", r: \"3\", key: \"fqmcym\" }],\n [\"circle\", { cx: \"18\", cy: \"16\", r: \"3\", key: \"1hluhg\" }]\n]);\n\nexport { Music as default };\n//# sourceMappingURL=music.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Sparkles = createLucideIcon(\"Sparkles\", [\n [\n \"path\",\n {\n d: \"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z\",\n key: \"17u4zn\"\n }\n ],\n [\"path\", { d: \"M5 3v4\", key: \"bklmnn\" }],\n [\"path\", { d: \"M19 17v4\", key: \"iiml17\" }],\n [\"path\", { d: \"M3 5h4\", key: \"nem4j1\" }],\n [\"path\", { d: \"M17 19h4\", key: \"lbex7p\" }]\n]);\n\nexport { Sparkles as default };\n//# sourceMappingURL=sparkles.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst X = createLucideIcon(\"X\", [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n]);\n\nexport { X as default };\n//# sourceMappingURL=x.mjs.map\n","/**\n * lucide-react v0.0.1 - ISC\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst Zap = createLucideIcon(\"Zap\", [\n [\n \"polygon\",\n { points: \"13 2 3 14 12 14 11 22 21 10 12 10 13 2\", key: \"45s27k\" }\n ]\n]);\n\nexport { Zap as default };\n//# sourceMappingURL=zap.mjs.map\n","import React, { useState, useEffect, useRef } from 'react';\nimport { Music, X, Sparkles, Keyboard, Gamepad2, Box, Headphones, Zap, Droplets } from 'lucide-react';\n\nexport interface SoundProfile {\n id: string;\n name: string;\n icon: any; // Lucide icon component\n}\n\nconst DEFAULT_SOUNDS: SoundProfile[] = [\n { id: 'glass', name: 'Glass', icon: Sparkles },\n { id: 'thock', name: 'Thock', icon: Keyboard },\n { id: 'console', name: 'Console', icon: Gamepad2 },\n { id: 'minecraft', name: 'Minecraft', icon: Box },\n { id: 'retro', name: 'Retro', icon: Gamepad2 },\n { id: 'lofi', name: 'Lofi', icon: Headphones },\n { id: 'mechanical', name: 'Clicky', icon: Keyboard },\n { id: 'scifi', name: 'Sci-Fi', icon: Zap },\n { id: 'bubble', name: 'Bubble', icon: Droplets },\n];\n\nexport interface SoundLabProps {\n isSoundEnabled: boolean;\n setIsSoundEnabled: (enabled: boolean) => void;\n volume: number;\n setVolume: (volume: number) => void;\n soundProfile: string;\n setSoundProfile: (profileId: string) => void;\n isDark: boolean;\n playSound?: (type: 'click' | 'hover' | 'switch') => void;\n primaryColor?: string; // Hex color for active states\n className?: string;\n sounds?: SoundProfile[];\n}\n\nexport const SoundLab: React.FC<SoundLabProps> = ({\n isSoundEnabled,\n setIsSoundEnabled,\n volume,\n setVolume,\n soundProfile,\n setSoundProfile,\n isDark,\n playSound = () => { },\n primaryColor = '#3b82f6', // Default blue-500\n className = '',\n sounds = DEFAULT_SOUNDS\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [toastMessage, setToastMessage] = useState<string | null>(null);\n const [showToast, setShowToast] = useState(false);\n const timeoutRef = useRef<NodeJS.Timeout | null>(null);\n\n const showNotification = (message: string) => {\n setToastMessage(message);\n setShowToast(true);\n setTimeout(() => setShowToast(false), 2000);\n };\n\n const handleMouseEnter = () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = null;\n }\n };\n\n const handleMouseLeave = () => {\n timeoutRef.current = setTimeout(() => {\n setIsOpen(false);\n }, 1000);\n };\n\n useEffect(() => {\n return () => {\n if (timeoutRef.current) clearTimeout(timeoutRef.current);\n };\n }, []);\n\n // Helper for Hex transparency\n const hexToRgba = (hex: string, alpha: number) => {\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n };\n\n return (\n <div className={`relative ${className}`}>\n {/* Toast Notification */}\n {showToast && (\n <div className={`fixed top-20 right-4 px-4 py-2 rounded-xl shadow-lg backdrop-blur-md border animate-in slide-in-from-top-2 fade-in duration-300 z-[60] whitespace-nowrap\n ${isDark ? 'bg-zinc-800/90 border-zinc-700 text-white' : 'bg-white/90 border-slate-200 text-slate-800'}`}>\n <span className=\"text-xs font-bold\">{toastMessage}</span>\n </div>\n )}\n\n {/* Trigger Button */}\n <button\n onClick={() => { setIsOpen(!isOpen); playSound('click'); }}\n onMouseEnter={() => playSound('hover')}\n className={`p-2 md:p-3 rounded-full transition-all duration-300\n ${isOpen || isSoundEnabled\n ? (isDark ? `bg-zinc-800` : `bg-white`)\n : (isDark ? 'text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50' : 'text-slate-400 hover:text-slate-600 hover:bg-slate-50')\n }`}\n style={isOpen || isSoundEnabled ? { color: primaryColor } : {}}\n aria-label=\"Open sound menu\"\n >\n {isSoundEnabled ? <Music size={20} className=\"md:w-6 md:h-6 animate-pulse\" /> : <Music size={20} className=\"md:w-6 md:h-6\" />}\n </button>\n\n {/* Sound Lab Popup */}\n {isOpen && (\n <div\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n className={`absolute top-full right-0 mt-4 p-4 rounded-3xl border w-[280px] backdrop-blur-xl shadow-2xl animate-in slide-in-from-top-5 fade-in z-50\n ${isDark ? 'bg-zinc-900/95 border-zinc-800' : 'bg-white/95 border-white/60'}`}>\n\n <div className=\"flex justify-between items-center mb-4\">\n <div className=\"flex items-center gap-2\">\n <Music size={14} className={isDark ? 'text-zinc-400' : 'text-slate-400'} />\n <span className={`text-xs font-bold uppercase tracking-wider ${isDark ? 'text-zinc-500' : 'text-slate-500'}`}>Sound Lab</span>\n </div>\n <button\n onClick={() => { setIsOpen(false); playSound('click'); }}\n className={`p-1 rounded-full ${isDark ? 'hover:bg-zinc-800' : 'hover:bg-slate-100'}`}\n aria-label=\"Close sound menu\"\n >\n <X size={14} className={isDark ? 'text-zinc-400' : 'text-slate-400'} />\n </button>\n </div>\n\n {/* Master Toggle */}\n <div className={`flex items-center justify-between p-3 rounded-xl mb-4 transition-colors\n ${isDark ? 'bg-zinc-800/50' : 'bg-slate-50'}`}>\n <span className={`text-xs font-medium ${isDark ? 'text-zinc-300' : 'text-slate-600'}`}>Master Audio</span>\n <button\n onClick={() => {\n setIsSoundEnabled(!isSoundEnabled);\n if (!isSoundEnabled) { // If turning ON, play a sound\n setTimeout(() => playSound('switch'), 50);\n showNotification('Sound Enabled');\n } else {\n showNotification('Sound Disabled');\n }\n }}\n className={`relative w-10 h-6 rounded-full transition-colors duration-300 ${isDark ? 'bg-zinc-700' : 'bg-slate-300'}`}\n style={{ backgroundColor: isSoundEnabled ? primaryColor : undefined }}\n aria-label={isSoundEnabled ? \"Disable sound\" : \"Enable sound\"}\n >\n <span className={`absolute top-1 left-1 w-4 h-4 rounded-full bg-white transition-transform duration-300 ${isSoundEnabled ? 'translate-x-4' : 'translate-x-0'}`}></span>\n </button>\n </div>\n\n {/* Volume Slider */}\n <div className={`p-3 rounded-xl mb-4 transition-colors ${isDark ? 'bg-zinc-800/50' : 'bg-slate-50'}`}>\n <div className=\"flex justify-between items-center mb-2\">\n <span className={`text-xs font-medium ${isDark ? 'text-zinc-300' : 'text-slate-600'}`}>Volume</span>\n <span className=\"text-xs font-bold\" style={{ color: primaryColor }}>{Math.round(volume * 100)}%</span>\n </div>\n <input\n type=\"range\"\n min=\"0\"\n max=\"1\"\n step=\"0.05\"\n value={volume}\n onChange={(e) => {\n setVolume(parseFloat(e.target.value));\n if (!isSoundEnabled) setIsSoundEnabled(true);\n }}\n className={`w-full h-1.5 rounded-full appearance-none cursor-pointer ${isDark ? 'bg-zinc-700' : 'bg-slate-300'} accent-current`}\n style={{ accentColor: primaryColor }}\n aria-label=\"Volume control\"\n />\n </div>\n\n <div className=\"grid grid-cols-3 gap-2\">\n {sounds.map((profile) => (\n <button\n key={profile.id}\n onClick={() => {\n setSoundProfile(profile.id);\n if (!isSoundEnabled) setIsSoundEnabled(true);\n setTimeout(() => playSound('click'), 50);\n showNotification(`Profile: ${profile.name}`);\n }}\n className={`flex flex-col items-center gap-1 p-2 rounded-xl border transition-all duration-300\n ${isDark ? 'bg-transparent border-transparent hover:bg-zinc-800' : 'bg-transparent border-transparent hover:bg-slate-100'}`}\n style={soundProfile === profile.id ? {\n backgroundColor: hexToRgba(primaryColor, 0.1),\n borderColor: hexToRgba(primaryColor, 0.5)\n } : {}}\n >\n <profile.icon size={16}\n className={isDark ? 'text-zinc-500' : 'text-slate-400'}\n style={soundProfile === profile.id ? { color: primaryColor } : {}}\n />\n <span className={`text-[10px] font-medium ${isDark ? 'text-zinc-500' : 'text-slate-500'}`}\n style={soundProfile === profile.id ? { color: isDark ? 'white' : primaryColor } : {}}\n >\n {profile.name}\n </span>\n </button>\n ))}\n </div>\n </div>\n )}\n </div>\n );\n};\n"],"names":["forwardRef","createElement","createLucideIcon","useState","useRef","useEffect","_jsxs","_jsx"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiBA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACnD,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC3D,UAAU,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B,UAAU,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,C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0 +1,20 @@
1
+ import React from 'react';
2
+ export interface SoundProfile {
3
+ id: string;
4
+ name: string;
5
+ icon: any;
6
+ }
7
+ export interface SoundLabProps {
8
+ isSoundEnabled: boolean;
9
+ setIsSoundEnabled: (enabled: boolean) => void;
10
+ volume: number;
11
+ setVolume: (volume: number) => void;
12
+ soundProfile: string;
13
+ setSoundProfile: (profileId: string) => void;
14
+ isDark: boolean;
15
+ playSound?: (type: 'click' | 'hover' | 'switch') => void;
16
+ primaryColor?: string;
17
+ className?: string;
18
+ sounds?: SoundProfile[];
19
+ }
20
+ export declare const SoundLab: React.FC<SoundLabProps>;