@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.
Potentially problematic release.
This version of @manas-dev/sound-lab might be problematic. Click here for more details.
- package/README.md +84 -0
- package/assets/preview.svg +57 -0
- package/dist/index.cjs.js +305 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.esm.js +301 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +36 -0
- package/postcss.config.js +6 -0
- package/rollup.config.js +27 -0
- package/src/index.tsx +211 -0
- package/tailwind.config.js +9 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, createElement, useState, useRef, useEffect } from 'react';
|
|
3
|
+
|
|
4
|
+
/******************************************************************************
|
|
5
|
+
Copyright (c) Microsoft Corporation.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
+
purpose with or without fee is hereby granted.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
|
|
19
|
+
var __assign = function() {
|
|
20
|
+
__assign = Object.assign || function __assign(t) {
|
|
21
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
22
|
+
s = arguments[i];
|
|
23
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
return __assign.apply(this, arguments);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
+
var e = new Error(message);
|
|
32
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* lucide-react v0.0.1 - ISC
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
var defaultAttributes = {
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
width: 24,
|
|
42
|
+
height: 24,
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
strokeWidth: 2,
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* lucide-react v0.0.1 - ISC
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
56
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
57
|
+
const Component = forwardRef(
|
|
58
|
+
({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, children, ...rest }, ref) => createElement(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
...defaultAttributes,
|
|
63
|
+
width: size,
|
|
64
|
+
height: size,
|
|
65
|
+
stroke: color,
|
|
66
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
67
|
+
className: `lucide lucide-${toKebabCase(iconName)}`,
|
|
68
|
+
...rest
|
|
69
|
+
},
|
|
70
|
+
[
|
|
71
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
72
|
+
...(Array.isArray(children) ? children : [children]) || []
|
|
73
|
+
]
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
Component.displayName = `${iconName}`;
|
|
77
|
+
return Component;
|
|
78
|
+
};
|
|
79
|
+
var createLucideIcon$1 = createLucideIcon;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* lucide-react v0.0.1 - ISC
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
const Box = createLucideIcon$1("Box", [
|
|
86
|
+
[
|
|
87
|
+
"path",
|
|
88
|
+
{
|
|
89
|
+
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",
|
|
90
|
+
key: "yt0hxn"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
94
|
+
["line", { x1: "12", x2: "12", y1: "22", y2: "12", key: "a4e8g8" }]
|
|
95
|
+
]);
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* lucide-react v0.0.1 - ISC
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
const Droplets = createLucideIcon$1("Droplets", [
|
|
102
|
+
[
|
|
103
|
+
"path",
|
|
104
|
+
{
|
|
105
|
+
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",
|
|
106
|
+
key: "1ptgy4"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
"path",
|
|
111
|
+
{
|
|
112
|
+
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",
|
|
113
|
+
key: "1sl1rz"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
]);
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* lucide-react v0.0.1 - ISC
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
const Gamepad2 = createLucideIcon$1("Gamepad2", [
|
|
123
|
+
["line", { x1: "6", x2: "10", y1: "11", y2: "11", key: "1gktln" }],
|
|
124
|
+
["line", { x1: "8", x2: "8", y1: "9", y2: "13", key: "qnk9ow" }],
|
|
125
|
+
["line", { x1: "15", x2: "15.01", y1: "12", y2: "12", key: "krot7o" }],
|
|
126
|
+
["line", { x1: "18", x2: "18.01", y1: "10", y2: "10", key: "1lcuu1" }],
|
|
127
|
+
[
|
|
128
|
+
"path",
|
|
129
|
+
{
|
|
130
|
+
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",
|
|
131
|
+
key: "mfqc10"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
]);
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* lucide-react v0.0.1 - ISC
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
const Headphones = createLucideIcon$1("Headphones", [
|
|
141
|
+
[
|
|
142
|
+
"path",
|
|
143
|
+
{
|
|
144
|
+
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",
|
|
145
|
+
key: "1xhozi"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
]);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* lucide-react v0.0.1 - ISC
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
const Keyboard = createLucideIcon$1("Keyboard", [
|
|
155
|
+
[
|
|
156
|
+
"rect",
|
|
157
|
+
{
|
|
158
|
+
width: "20",
|
|
159
|
+
height: "16",
|
|
160
|
+
x: "2",
|
|
161
|
+
y: "4",
|
|
162
|
+
rx: "2",
|
|
163
|
+
ry: "2",
|
|
164
|
+
key: "15u882"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
["path", { d: "M6 8h.001", key: "1ej0i3" }],
|
|
168
|
+
["path", { d: "M10 8h.001", key: "1x2st2" }],
|
|
169
|
+
["path", { d: "M14 8h.001", key: "1vkmyp" }],
|
|
170
|
+
["path", { d: "M18 8h.001", key: "kfsenl" }],
|
|
171
|
+
["path", { d: "M8 12h.001", key: "1sjpby" }],
|
|
172
|
+
["path", { d: "M12 12h.001", key: "al75ts" }],
|
|
173
|
+
["path", { d: "M16 12h.001", key: "931bgk" }],
|
|
174
|
+
["path", { d: "M7 16h10", key: "wp8him" }]
|
|
175
|
+
]);
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* lucide-react v0.0.1 - ISC
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
const Music = createLucideIcon$1("Music", [
|
|
182
|
+
["path", { d: "M9 18V5l12-2v13", key: "1jmyc2" }],
|
|
183
|
+
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
184
|
+
["circle", { cx: "18", cy: "16", r: "3", key: "1hluhg" }]
|
|
185
|
+
]);
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* lucide-react v0.0.1 - ISC
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
const Sparkles = createLucideIcon$1("Sparkles", [
|
|
192
|
+
[
|
|
193
|
+
"path",
|
|
194
|
+
{
|
|
195
|
+
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",
|
|
196
|
+
key: "17u4zn"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
["path", { d: "M5 3v4", key: "bklmnn" }],
|
|
200
|
+
["path", { d: "M19 17v4", key: "iiml17" }],
|
|
201
|
+
["path", { d: "M3 5h4", key: "nem4j1" }],
|
|
202
|
+
["path", { d: "M17 19h4", key: "lbex7p" }]
|
|
203
|
+
]);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* lucide-react v0.0.1 - ISC
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
const X = createLucideIcon$1("X", [
|
|
210
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
211
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
212
|
+
]);
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* lucide-react v0.0.1 - ISC
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
const Zap = createLucideIcon$1("Zap", [
|
|
219
|
+
[
|
|
220
|
+
"polygon",
|
|
221
|
+
{ points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2", key: "45s27k" }
|
|
222
|
+
]
|
|
223
|
+
]);
|
|
224
|
+
|
|
225
|
+
var DEFAULT_SOUNDS = [
|
|
226
|
+
{ id: 'glass', name: 'Glass', icon: Sparkles },
|
|
227
|
+
{ id: 'thock', name: 'Thock', icon: Keyboard },
|
|
228
|
+
{ id: 'console', name: 'Console', icon: Gamepad2 },
|
|
229
|
+
{ id: 'minecraft', name: 'Minecraft', icon: Box },
|
|
230
|
+
{ id: 'retro', name: 'Retro', icon: Gamepad2 },
|
|
231
|
+
{ id: 'lofi', name: 'Lofi', icon: Headphones },
|
|
232
|
+
{ id: 'mechanical', name: 'Clicky', icon: Keyboard },
|
|
233
|
+
{ id: 'scifi', name: 'Sci-Fi', icon: Zap },
|
|
234
|
+
{ id: 'bubble', name: 'Bubble', icon: Droplets },
|
|
235
|
+
];
|
|
236
|
+
var SoundLab = function (_a) {
|
|
237
|
+
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
|
|
238
|
+
_d = _a.className, // Default blue-500
|
|
239
|
+
className = _d === void 0 ? '' : _d, _e = _a.sounds, sounds = _e === void 0 ? DEFAULT_SOUNDS : _e;
|
|
240
|
+
var _f = useState(false), isOpen = _f[0], setIsOpen = _f[1];
|
|
241
|
+
var _g = useState(null), toastMessage = _g[0], setToastMessage = _g[1];
|
|
242
|
+
var _h = useState(false), showToast = _h[0], setShowToast = _h[1];
|
|
243
|
+
var timeoutRef = useRef(null);
|
|
244
|
+
var showNotification = function (message) {
|
|
245
|
+
setToastMessage(message);
|
|
246
|
+
setShowToast(true);
|
|
247
|
+
setTimeout(function () { return setShowToast(false); }, 2000);
|
|
248
|
+
};
|
|
249
|
+
var handleMouseEnter = function () {
|
|
250
|
+
if (timeoutRef.current) {
|
|
251
|
+
clearTimeout(timeoutRef.current);
|
|
252
|
+
timeoutRef.current = null;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
var handleMouseLeave = function () {
|
|
256
|
+
timeoutRef.current = setTimeout(function () {
|
|
257
|
+
setIsOpen(false);
|
|
258
|
+
}, 1000);
|
|
259
|
+
};
|
|
260
|
+
useEffect(function () {
|
|
261
|
+
return function () {
|
|
262
|
+
if (timeoutRef.current)
|
|
263
|
+
clearTimeout(timeoutRef.current);
|
|
264
|
+
};
|
|
265
|
+
}, []);
|
|
266
|
+
// Helper for Hex transparency
|
|
267
|
+
var hexToRgba = function (hex, alpha) {
|
|
268
|
+
var r = parseInt(hex.slice(1, 3), 16);
|
|
269
|
+
var g = parseInt(hex.slice(3, 5), 16);
|
|
270
|
+
var b = parseInt(hex.slice(5, 7), 16);
|
|
271
|
+
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
|
|
272
|
+
};
|
|
273
|
+
return (jsxs("div", __assign({ className: "relative ".concat(className) }, { children: [showToast && (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: jsx("span", __assign({ className: "text-xs font-bold" }, { children: toastMessage })) }))), 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
|
|
274
|
+
? (isDark ? "bg-zinc-800" : "bg-white")
|
|
275
|
+
: (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 ? jsx(Music, { size: 20, className: "md:w-6 md:h-6 animate-pulse" }) : jsx(Music, { size: 20, className: "md:w-6 md:h-6" }) })), isOpen && (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: [jsxs("div", __assign({ className: "flex justify-between items-center mb-4" }, { children: [jsxs("div", __assign({ className: "flex items-center gap-2" }, { children: [jsx(Music, { size: 14, className: isDark ? 'text-zinc-400' : 'text-slate-400' }), jsx("span", __assign({ className: "text-xs font-bold uppercase tracking-wider ".concat(isDark ? 'text-zinc-500' : 'text-slate-500') }, { children: "Sound Lab" }))] })), 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: jsx(X, { size: 14, className: isDark ? 'text-zinc-400' : 'text-slate-400' }) }))] })), 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: [jsx("span", __assign({ className: "text-xs font-medium ".concat(isDark ? 'text-zinc-300' : 'text-slate-600') }, { children: "Master Audio" })), jsx("button", __assign({ onClick: function () {
|
|
276
|
+
setIsSoundEnabled(!isSoundEnabled);
|
|
277
|
+
if (!isSoundEnabled) { // If turning ON, play a sound
|
|
278
|
+
setTimeout(function () { return playSound('switch'); }, 50);
|
|
279
|
+
showNotification('Sound Enabled');
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
showNotification('Sound Disabled');
|
|
283
|
+
}
|
|
284
|
+
}, 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: 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') }) }))] })), jsxs("div", __assign({ className: "p-3 rounded-xl mb-4 transition-colors ".concat(isDark ? 'bg-zinc-800/50' : 'bg-slate-50') }, { children: [jsxs("div", __assign({ className: "flex justify-between items-center mb-2" }, { children: [jsx("span", __assign({ className: "text-xs font-medium ".concat(isDark ? 'text-zinc-300' : 'text-slate-600') }, { children: "Volume" })), jsxs("span", __assign({ className: "text-xs font-bold", style: { color: primaryColor } }, { children: [Math.round(volume * 100), "%"] }))] })), jsx("input", { type: "range", min: "0", max: "1", step: "0.05", value: volume, onChange: function (e) {
|
|
285
|
+
setVolume(parseFloat(e.target.value));
|
|
286
|
+
if (!isSoundEnabled)
|
|
287
|
+
setIsSoundEnabled(true);
|
|
288
|
+
}, 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" })] })), jsx("div", __assign({ className: "grid grid-cols-3 gap-2" }, { children: sounds.map(function (profile) { return (jsxs("button", __assign({ onClick: function () {
|
|
289
|
+
setSoundProfile(profile.id);
|
|
290
|
+
if (!isSoundEnabled)
|
|
291
|
+
setIsSoundEnabled(true);
|
|
292
|
+
setTimeout(function () { return playSound('click'); }, 50);
|
|
293
|
+
showNotification("Profile: ".concat(profile.name));
|
|
294
|
+
}, 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 ? {
|
|
295
|
+
backgroundColor: hexToRgba(primaryColor, 0.1),
|
|
296
|
+
borderColor: hexToRgba(primaryColor, 0.5)
|
|
297
|
+
} : {} }, { children: [jsx(profile.icon, { size: 16, className: isDark ? 'text-zinc-500' : 'text-slate-400', style: soundProfile === profile.id ? { color: primaryColor } : {} }), 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)); }) }))] })))] })));
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
export { SoundLab };
|
|
301
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.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":["createLucideIcon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,eAAe,GAAG,gBAAgB,EACtD,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,EACnE,CAAA,EACFA,uBAAM,SAAS,EAAE,0BAA2B,CAAA,MAAA,CAAA,MAAM,GAAG,eAAe,GAAG,gBAAgB,CAAE,EACrF,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,EAAE,GAAG,EAAE,gBAEnF,OAAO,CAAC,IAAI,EAAA,CAAA,CACV,CAtBF,EAAA,CAAA,EAAA,OAAO,CAAC,EAAE,CAuBV,EACZ,EAAA,CAAC,IACA,CACJ,EAAA,CAAA,CAAA,CACT,CACC,EAAA,CAAA,CAAA,EACR;AACN;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@manas-dev/sound-lab",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A sleek sound control panel for modern web experiences.",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "rollup -c"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"react": "^18.0.0",
|
|
13
|
+
"react-dom": "^18.0.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@manas-dev/global-themes": "file:../global-themes",
|
|
17
|
+
"clsx": "^2.1.1",
|
|
18
|
+
"lucide-react": "^0.263.1",
|
|
19
|
+
"tailwind-merge": "^3.4.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
23
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
24
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
25
|
+
"autoprefixer": "^10.4.23",
|
|
26
|
+
"postcss": "^8.5.6",
|
|
27
|
+
"rollup": "^2.79.1",
|
|
28
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
29
|
+
"tailwindcss": "^4.1.18",
|
|
30
|
+
"tslib": "^2.4.0",
|
|
31
|
+
"typescript": "^4.7.4"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
3
|
+
import typescript from "@rollup/plugin-typescript";
|
|
4
|
+
import peerDepsExternal from "rollup-plugin-peer-deps-external";
|
|
5
|
+
import pkg from "./package.json";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
input: "src/index.tsx",
|
|
9
|
+
output: [
|
|
10
|
+
{
|
|
11
|
+
file: pkg.main,
|
|
12
|
+
format: "cjs",
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
file: pkg.module,
|
|
17
|
+
format: "esm",
|
|
18
|
+
sourcemap: true,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
plugins: [
|
|
22
|
+
peerDepsExternal(),
|
|
23
|
+
resolve(),
|
|
24
|
+
commonjs(),
|
|
25
|
+
typescript({ tsconfig: "./tsconfig.json" }),
|
|
26
|
+
],
|
|
27
|
+
};
|