mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(skin): add audio skins for HTML and React presets (#772)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
038ad8b4f5
commit
d751fdabea
@@ -1,6 +1,7 @@
|
||||
import { isPlainObject, isString } from '../predicate';
|
||||
|
||||
type ClassValue = string | Record<string, unknown> | undefined;
|
||||
type ClassPrimitive = string | Record<string, unknown> | undefined;
|
||||
type ClassValue = ClassPrimitive | readonly string[] | readonly ClassPrimitive[];
|
||||
|
||||
/**
|
||||
* A (very basic) utility to merge class names and make them a little easier to read.
|
||||
@@ -17,7 +18,7 @@ type ClassValue = string | Record<string, unknown> | undefined;
|
||||
export function cn(...classes: ClassValue[]): string {
|
||||
const result: string[] = [];
|
||||
|
||||
for (const value of classes) {
|
||||
for (const value of classes.flat()) {
|
||||
if (isString(value) && value) {
|
||||
result.push(value);
|
||||
} else if (isPlainObject(value)) {
|
||||
|
||||
Reference in New Issue
Block a user