@r2digisolutions/ui 0.10.1 → 0.11.0
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.
|
@@ -9,4 +9,5 @@ import CardHeader from './ui/Card/CardHeader.svelte';
|
|
|
9
9
|
import Avatar from './ui/Avatar/Avatar.svelte';
|
|
10
10
|
import Container from './ui/Container/Container.svelte';
|
|
11
11
|
import Section from './ui/Section/Section.svelte';
|
|
12
|
-
|
|
12
|
+
import Loading from './ui/Loading/Loading.svelte';
|
|
13
|
+
export { Alert, TableList, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Avatar, Container, Section, Loading, };
|
package/dist/components/index.js
CHANGED
|
@@ -9,4 +9,5 @@ import CardHeader from './ui/Card/CardHeader.svelte';
|
|
|
9
9
|
import Avatar from './ui/Avatar/Avatar.svelte';
|
|
10
10
|
import Container from './ui/Container/Container.svelte';
|
|
11
11
|
import Section from './ui/Section/Section.svelte';
|
|
12
|
-
|
|
12
|
+
import Loading from './ui/Loading/Loading.svelte';
|
|
13
|
+
export { Alert, TableList, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Avatar, Container, Section, Loading, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Loader } from 'lucide-svelte';
|
|
3
|
+
import type { ClassValue } from 'svelte/elements';
|
|
4
|
+
|
|
5
|
+
const {
|
|
6
|
+
loadingText = 'Cargando...',
|
|
7
|
+
...props
|
|
8
|
+
}: {
|
|
9
|
+
loadingText?: string;
|
|
10
|
+
class?: ClassValue;
|
|
11
|
+
} = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<div class={['flex justify-center gap-2', props.class]}>
|
|
15
|
+
<Loader class="h-6 w-6 animate-spin" />
|
|
16
|
+
<span> {loadingText} </span>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ClassValue } from 'svelte/elements';
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
loadingText?: string;
|
|
4
|
+
class?: ClassValue;
|
|
5
|
+
};
|
|
6
|
+
declare const Loading: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
|
+
type Loading = ReturnType<typeof Loading>;
|
|
8
|
+
export default Loading;
|