Skip to content

Commit 94cc94b

Browse files
committed
v1.0.4
1 parent 3c5baeb commit 94cc94b

8 files changed

+87
-52
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# flowbite-svelte-admin-dashboard
22

3+
## 1.0.4
4+
5+
### Patch Changes
6+
7+
- fix: replace default object with $dereived()
8+
39
## 1.0.3
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-svelte-admin-dashboard",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Flowbite Admin Dashboard components for Svelte",
55
"homepage": "https://flowbite-svelte-admin-dashboard.vercel.app/",
66
"private": false,

src/lib/DeleteDrawer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
## Props
2525
@prop hidden = $bindable(true)
2626
@prop title = 'Delete item'
27-
@prop confirm = 'Are you sure you want to delete this product?'
27+
@prop confirm = 'Are you sure you want to delete this?'
2828
@prop yes = "Yes, I'm sure"
2929
@prop no = 'No, cancel'
3030
-->

src/lib/DeleteModal.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[DeleteModalProps](https://github.com/themesberg/flowbite-svelte-next/blob/main/src/lib/types.ts#L241)
2525
## Props
2626
@prop open = $bindable(true)
27-
@prop title = 'Are you sure you want to delete this product?'
27+
@prop title = 'Are you sure you want to delete this?'
2828
@prop yes = "Yes, I'm sure"
2929
@prop no = 'No, cancel'
3030
-->

src/lib/ForgotPassword.svelte

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
}: ForgotPasswordProps = $props();
1919
2020
const siteDefault = {
21-
name: 'Flowbite',
22-
img: '/images/flowbite-svelte-icon-logo.svg',
23-
link: '/',
24-
imgAlt: 'FlowBite Logo'
25-
};
21+
name: 'Flowbite',
22+
img: '/images/flowbite-svelte-icon-logo.svg',
23+
link: '/',
24+
imgAlt: 'FlowBite Logo'
25+
};
2626
const actualSite = $derived(site ?? siteDefault);
2727
2828
const mainDivCls = twMerge('flex flex-col items-center justify-center px-6 pt-8 mx-auto md:h-screen pt:mt-0 dark:bg-gray-900', mainDivClass);
@@ -51,3 +51,22 @@
5151
</Card>
5252
</div>
5353
</main>
54+
55+
<!--
56+
@component
57+
[Go to docs](https://flowbite-svelte-admin-dashboard.vercel.app/)
58+
## Type
59+
[ForgotPasswordProps](https://github.com/themesberg/flowbite-svelte-next/blob/main/src/lib/types.ts#L145)
60+
## Props
61+
@prop children
62+
@prop title = 'Forgot your password?'
63+
@prop site
64+
@prop btnTitle = 'Reset password'
65+
@prop pageDescription = "Don't fret! Just type in your email and we will send you a code to reset your password!"
66+
@prop mainClass = 'bg-gray-50 dark:bg-gray-900'
67+
@prop mainDivClass
68+
@prop siteLinkClass
69+
@prop siteImgClass = 'mr-4 h-11'
70+
@prop cardH1Class
71+
@prop ...restProps
72+
-->

src/lib/Maintenance.svelte

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
}: MaintenanceProps = $props();
1919
2020
const imageDefault = {
21-
src: imagesPath('illustrations/maintenance.svg'),
22-
alt: 'maintenance'
23-
}
24-
const actualImage = $derived( image ?? imageDefault);
21+
src: imagesPath('illustrations/maintenance.svg'),
22+
alt: 'maintenance'
23+
};
24+
const actualImage = $derived(image ?? imageDefault);
2525
2626
const mainDivCls = twMerge('flex flex-col justify-center items-center px-6 mx-auto h-screen xl:px-0 dark:bg-gray-900', mainDivClass);
2727
const h1Cls = twMerge('mb-3 text-2xl font-bold leading-tight text-gray-900 sm:text-4xl lg:text-5xl dark:text-white', h1Class);
@@ -46,3 +46,21 @@
4646
</div>
4747
</div>
4848
</main>
49+
50+
<!--
51+
@component
52+
[Go to docs](https://flowbite-svelte-admin-dashboard.vercel.app/)
53+
## Type
54+
[MaintenanceProps](https://github.com/themesberg/flowbite-svelte-next/blob/main/src/lib/types.ts#L205)
55+
## Props
56+
@prop title = 'Under Maintenance'
57+
@prop description = 'Sorry for the inconvenience but we’re performing some maintenance at the moment. If you need to you can always <a href
58+
@prop image
59+
@prop btnTitle = 'Go back home'
60+
@prop btnHref = '/'
61+
@prop mainClass = 'bg-gray-50 dark:bg-gray-900'
62+
@prop mainDivClass
63+
@prop h1Class
64+
@prop imgDiv = 'block mb-5 md:max-w-md'
65+
@prop div2Class = 'text-center xl:max-w-4xl'
66+
-->

src/lib/NotFound.svelte

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
}: NotFoundProps = $props();
1919
2020
const imageDefault = {
21-
src: imagesPath('404.svg', 'illustrations'),
22-
alt: 'astronaut'
23-
}
24-
const actualImage = $derived( image ?? imageDefault);
21+
src: imagesPath('404.svg', 'illustrations'),
22+
alt: 'astronaut'
23+
};
24+
const actualImage = $derived(image ?? imageDefault);
2525
2626
const mainDivCls = twMerge('flex flex-col items-center justify-center px-6 pt-8 mx-auto md:h-screen pt:mt-0 dark:bg-gray-900', mainDivClass);
2727
const h1Cls = twMerge('mb-3 text-2xl font-bold leading-tight text-gray-900 sm:text-4xl lg:text-5xl dark:text-white', h1Class);
@@ -52,21 +52,17 @@
5252
<!--
5353
@component
5454
[Go to docs](https://flowbite-svelte-admin-dashboard.vercel.app/)
55+
## Type
56+
[NotFoundProps](https://github.com/themesberg/flowbite-svelte-next/blob/main/src/lib/types.ts#L192)
5557
## Props
56-
@prop export let title = 'Page not found';
57-
@prop export let description =
58-
'Oops! Looks like you followed a bad link. If you think this is a problem with us, please tell us.';
59-
@prop export let image = {
60-
src: imagesPath('404.svg', 'illustrations'),
61-
alt: 'astronaut'
62-
};
63-
@prop export let btnTitle = 'Go back home';
64-
@prop export let btnHref = '/';
65-
@prop export let mainClass = 'bg-gray-50 dark:bg-gray-900';
66-
@prop export let mainDivClass =
67-
'flex flex-col items-center justify-center px-6 pt-8 mx-auto md:h-screen pt:mt-0 dark:bg-gray-900';
68-
@prop export let h1Class =
69-
'mb-3 text-2xl font-bold leading-tight text-gray-900 sm:text-4xl lg:text-5xl dark:text-white';
70-
@prop export let imgDiv = 'block md:max-w-lg';
71-
@prop export let div2Class = 'text-center xl:max-w-4xl';
58+
@prop title = 'Page not found'
59+
@prop description = 'Oops! Looks like you followed a bad link. If you think this is a problem with us, please tell us.'
60+
@prop image
61+
@prop btnTitle = 'Go back home'
62+
@prop btnHref = '/'
63+
@prop mainClass = 'bg-gray-50 dark:bg-gray-900'
64+
@prop mainDivClass
65+
@prop h1Class
66+
@prop imgDiv = 'block md:max-w-md'
67+
@prop div2Class = 'text-center xl:max-w-4xl'
7268
-->

src/lib/ServerError.svelte

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
}: ServerErrorProps = $props();
1919
2020
const imageDefault = {
21-
src: imagesPath('illustrations/500.svg'),
22-
alt: 'astronaut'
23-
}
24-
const actualImage = $derived( image ?? imageDefault);
21+
src: imagesPath('illustrations/500.svg'),
22+
alt: 'astronaut'
23+
};
24+
const actualImage = $derived(image ?? imageDefault);
2525
2626
const mainDivCls = twMerge('flex flex-col justify-center items-center px-6 mx-auto h-screen xl:px-0 dark:bg-gray-900', mainDivClass);
2727
const h1Cls = twMerge('mb-3 text-2xl font-bold leading-tight text-gray-900 sm:text-4xl lg:text-5xl dark:text-white', h1Class);
@@ -52,21 +52,17 @@
5252
<!--
5353
@component
5454
[Go to docs](https://flowbite-svelte-admin-dashboard.vercel.app/)
55+
## Type
56+
[ServerErrorProps](https://github.com/themesberg/flowbite-svelte-next/blob/main/src/lib/types.ts#L218)
5557
## Props
56-
@prop export let title = 'Something has gone seriously wrong';
57-
@prop export let description =
58-
"It's always time for a coffee break. We should be back by the time you finish your coffee.";
59-
@prop export let image = {
60-
src: imagesPath('illustrations/500.svg'),
61-
alt: 'astronaut'
62-
};
63-
@prop export let btnHref = '/';
64-
@prop export let btnTitle = 'Go back home';
65-
@prop export let mainClass = 'bg-gray-50 dark:bg-gray-900';
66-
@prop export let mainDivClass =
67-
'flex flex-col justify-center items-center px-6 mx-auto h-screen xl:px-0 dark:bg-gray-900';
68-
@prop export let h1Class =
69-
'mb-3 text-2xl font-bold leading-tight text-gray-900 sm:text-4xl lg:text-5xl dark:text-white';
70-
@prop export let imgDiv = 'block md:max-w-lg';
71-
@prop export let div2Class = 'text-center xl:max-w-4xl';
58+
@prop title = 'Something has gone seriously wrong'
59+
@prop description = "It's always time for a coffee break. We should be back by the time you finish your coffee."
60+
@prop image
61+
@prop btnTitle = 'Go back home'
62+
@prop btnHref = '/'
63+
@prop mainClass = 'bg-gray-50 dark:bg-gray-900'
64+
@prop mainDivClass
65+
@prop h1Class
66+
@prop imgDiv = 'block md:max-w-lg'
67+
@prop div2Class = 'text-center xl:max-w-4xl'
7268
-->

0 commit comments

Comments
 (0)