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

@@ -37,7 +37,7 @@ const BasicDemo = () => {
Badge({ class: 'badge-error' }, 'Error')
]);
};
$mount(BasicDemo, '#demo-basic');
Mount(BasicDemo, '#demo-basic');
```
### Badge Sizes
@@ -59,7 +59,7 @@ const SizesDemo = () => {
Badge({ class: 'badge-lg' }, 'Large')
]);
};
$mount(SizesDemo, '#demo-sizes');
Mount(SizesDemo, '#demo-sizes');
```
### Outline Badges
@@ -84,7 +84,7 @@ const OutlineDemo = () => {
Badge({ class: 'badge-outline badge-error' }, 'Error')
]);
};
$mount(OutlineDemo, '#demo-outline');
Mount(OutlineDemo, '#demo-outline');
```
### Ghost Badges
@@ -109,7 +109,7 @@ const GhostDemo = () => {
Badge({ class: 'badge-ghost badge-error' }, 'Error')
]);
};
$mount(GhostDemo, '#demo-ghost');
Mount(GhostDemo, '#demo-ghost');
```
### With Icons
@@ -146,7 +146,7 @@ const IconsDemo = () => {
])
]);
};
$mount(IconsDemo, '#demo-icons');
Mount(IconsDemo, '#demo-icons');
```
### Status Badges
@@ -175,7 +175,7 @@ const StatusDemo = () => {
))
]);
};
$mount(StatusDemo, '#demo-status');
Mount(StatusDemo, '#demo-status');
```
### Count Badges
@@ -208,7 +208,7 @@ const CountDemo = () => {
])
]);
};
$mount(CountDemo, '#demo-count');
Mount(CountDemo, '#demo-count');
```
### Interactive Badge
@@ -236,7 +236,7 @@ const InteractiveDemo = () => {
}, 'Reset')
]);
};
$mount(InteractiveDemo, '#demo-interactive');
Mount(InteractiveDemo, '#demo-interactive');
```
### All Variants
@@ -268,7 +268,7 @@ const VariantsDemo = () => {
])
]);
};
$mount(VariantsDemo, '#demo-variants');
Mount(VariantsDemo, '#demo-variants');
```
### Inline with Text
@@ -300,7 +300,7 @@ const InlineDemo = () => {
])
]);
};
$mount(InlineDemo, '#demo-inline');
Mount(InlineDemo, '#demo-inline');
```
<script>
@@ -322,7 +322,7 @@ $mount(InlineDemo, '#demo-inline');
Badge({ class: 'badge-error' }, 'Error')
]);
};
$mount(BasicDemo, basicTarget);
Mount(BasicDemo, basicTarget);
}
// 2. Badge Sizes
@@ -337,7 +337,7 @@ $mount(InlineDemo, '#demo-inline');
Badge({ class: 'badge-lg' }, 'Large')
]);
};
$mount(SizesDemo, sizesTarget);
Mount(SizesDemo, sizesTarget);
}
// 3. Outline Badges
@@ -355,7 +355,7 @@ $mount(InlineDemo, '#demo-inline');
Badge({ class: 'badge-outline badge-error' }, 'Error')
]);
};
$mount(OutlineDemo, outlineTarget);
Mount(OutlineDemo, outlineTarget);
}
// 4. Ghost Badges
@@ -373,7 +373,7 @@ $mount(InlineDemo, '#demo-inline');
Badge({ class: 'badge-ghost badge-error' }, 'Error')
]);
};
$mount(GhostDemo, ghostTarget);
Mount(GhostDemo, ghostTarget);
}
// 5. With Icons
@@ -403,7 +403,7 @@ $mount(InlineDemo, '#demo-inline');
])
]);
};
$mount(IconsDemo, iconsTarget);
Mount(IconsDemo, iconsTarget);
}
// 6. Status Badges
@@ -425,7 +425,7 @@ $mount(InlineDemo, '#demo-inline');
))
]);
};
$mount(StatusDemo, statusTarget);
Mount(StatusDemo, statusTarget);
}
// 7. Count Badges
@@ -451,7 +451,7 @@ $mount(InlineDemo, '#demo-inline');
])
]);
};
$mount(CountDemo, countTarget);
Mount(CountDemo, countTarget);
}
// 8. Interactive Badge
@@ -472,7 +472,7 @@ $mount(InlineDemo, '#demo-inline');
}, 'Reset')
]);
};
$mount(InteractiveDemo, interactiveTarget);
Mount(InteractiveDemo, interactiveTarget);
}
// 9. All Variants
@@ -497,7 +497,7 @@ $mount(InlineDemo, '#demo-inline');
])
]);
};
$mount(VariantsDemo, variantsTarget);
Mount(VariantsDemo, variantsTarget);
}
// 10. Inline with Text
@@ -522,7 +522,7 @@ $mount(InlineDemo, '#demo-inline');
])
]);
};
$mount(InlineDemo, inlineTarget);
Mount(InlineDemo, inlineTarget);
}
};