feat: convert js modules to ts and optimize performance

This commit is contained in:
syntaxbullet
2026-02-09 20:11:34 +01:00
parent bf2a11a84d
commit 658f4ab841
11 changed files with 1269 additions and 952 deletions

View File

@@ -14,7 +14,7 @@ const { id, label, options, value = options[0], title = "" } = Astro.props;
<span class="tui-segment-label">{label}</span>
<div class="tui-segment-options" id={id} data-value={value}>
{
options.map((opt, i) => (
options.map((opt) => (
<button
type="button"
class:list={[