@svadmin/lite 0.33.5 → 0.33.7

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.
@@ -3,12 +3,18 @@
3
3
  href?: string;
4
4
  label?: string;
5
5
  thresholdText?: string;
6
+ class?: string;
6
7
  }
7
8
 
8
- let { href = '#top', label = 'Back to top', thresholdText = '↑ Top' }: Props = $props();
9
+ let {
10
+ href = '#top',
11
+ label = 'Back to top',
12
+ thresholdText = '↑ Top',
13
+ class: className = '',
14
+ }: Props = $props();
9
15
  </script>
10
16
 
11
- <a class="lite-back-top" {href} aria-label={label}>{thresholdText}</a>
17
+ <a class="lite-back-top {className}" {href} aria-label={label}>{thresholdText}</a>
12
18
 
13
19
  <style>
14
20
  .lite-back-top { position: fixed; right: 24px; bottom: 80px; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #E5E6EB; border-radius: 999px; background: #fff; color: #1D2129; box-shadow: 0 6px 20px rgba(29, 33, 41, 0.16); font-size: 12px; text-decoration: none; }
@@ -2,6 +2,7 @@ interface Props {
2
2
  href?: string;
3
3
  label?: string;
4
4
  thresholdText?: string;
5
+ class?: string;
5
6
  }
6
7
  declare const LiteBackTop: import("svelte").Component<Props, {}, "">;
7
8
  type LiteBackTop = ReturnType<typeof LiteBackTop>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/lite",
3
- "version": "0.33.5",
3
+ "version": "0.33.7",
4
4
  "description": "SSR-first lightweight admin UI for @svadmin with optional progressive enhancement",
5
5
  "type": "module",
6
6
  "sideEffects": [