Update new functions

This commit is contained in:
2026-04-06 03:19:15 +02:00
parent f9095332eb
commit 294547fc56
139 changed files with 2249 additions and 2109 deletions

View File

@@ -34,7 +34,7 @@ const BasicDemo = () => {
value: color
});
};
$mount(BasicDemo, '#demo-basic');
Mount(BasicDemo, '#demo-basic');
```
### With Reactive Preview
@@ -63,7 +63,7 @@ const PreviewDemo = () => {
])
]);
};
$mount(PreviewDemo, '#demo-preview');
Mount(PreviewDemo, '#demo-preview');
```
### Color Palette Grid
@@ -101,7 +101,7 @@ const PaletteDemo = () => {
Div({ class: 'mt-2 text-center text-sm font-mono' }, () => selectedColor())
]);
};
$mount(PaletteDemo, '#demo-palette');
Mount(PaletteDemo, '#demo-palette');
```
### With Text Color Preview
@@ -137,7 +137,7 @@ const TextDemo = () => {
])
]);
};
$mount(TextDemo, '#demo-text');
Mount(TextDemo, '#demo-text');
```
### All Variants
@@ -170,7 +170,7 @@ const VariantsDemo = () => {
})
]);
};
$mount(VariantsDemo, '#demo-variants');
Mount(VariantsDemo, '#demo-variants');
```
### Dynamic Color Swatch
@@ -210,7 +210,7 @@ const DynamicDemo = () => {
])
]);
};
$mount(DynamicDemo, '#demo-dynamic');
Mount(DynamicDemo, '#demo-dynamic');
```
<script>
@@ -227,7 +227,7 @@ $mount(DynamicDemo, '#demo-dynamic');
value: color
});
};
$mount(BasicDemo, basicTarget);
Mount(BasicDemo, basicTarget);
}
// 2. With Reactive Preview
@@ -248,7 +248,7 @@ $mount(DynamicDemo, '#demo-dynamic');
])
]);
};
$mount(PreviewDemo, previewTarget);
Mount(PreviewDemo, previewTarget);
}
// 3. Color Palette Grid
@@ -279,7 +279,7 @@ $mount(DynamicDemo, '#demo-dynamic');
Div({ class: 'mt-2 text-center text-sm font-mono' }, () => selectedColor())
]);
};
$mount(PaletteDemo, paletteTarget);
Mount(PaletteDemo, paletteTarget);
}
// 4. With Text Color Preview
@@ -308,7 +308,7 @@ $mount(DynamicDemo, '#demo-dynamic');
])
]);
};
$mount(TextDemo, textTarget);
Mount(TextDemo, textTarget);
}
// 5. All Variants
@@ -334,7 +334,7 @@ $mount(DynamicDemo, '#demo-dynamic');
})
]);
};
$mount(VariantsDemo, variantsTarget);
Mount(VariantsDemo, variantsTarget);
}
// 6. Dynamic Color Swatch
@@ -367,7 +367,7 @@ $mount(DynamicDemo, '#demo-dynamic');
])
]);
};
$mount(DynamicDemo, dynamicTarget);
Mount(DynamicDemo, dynamicTarget);
}
};