@r2digisolutions/ui 0.12.0 → 0.13.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.
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/ui/Button/Button.svelte +8 -1
- package/dist/components/ui/Button/type.d.ts +2 -1
- package/dist/components/ui/Card/Card.svelte +1 -1
- package/dist/components/ui/Heading/Heading.svelte +10 -0
- package/dist/components/ui/Heading/Heading.svelte.d.ts +4 -0
- package/dist/components/ui/Heading/type.d.ts +5 -0
- package/dist/components/ui/Heading/type.js +2 -0
- package/package.json +7 -7
|
@@ -11,4 +11,5 @@ 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
13
|
import Button from './ui/Button/Button.svelte';
|
|
14
|
-
|
|
14
|
+
import Heading from './ui/Heading/Heading.svelte';
|
|
15
|
+
export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, Heading, };
|
package/dist/components/index.js
CHANGED
|
@@ -11,4 +11,5 @@ 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
13
|
import Button from './ui/Button/Button.svelte';
|
|
14
|
-
|
|
14
|
+
import Heading from './ui/Heading/Heading.svelte';
|
|
15
|
+
export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, Heading, };
|
|
@@ -26,7 +26,14 @@
|
|
|
26
26
|
ghost:
|
|
27
27
|
'text-purple-600 hover:bg-purple-50 hover:text-purple-700 focus:ring-purple-500 bg-transparent shadow-none hover:shadow-md',
|
|
28
28
|
gradient:
|
|
29
|
-
'bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 text-white hover:from-pink-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30'
|
|
29
|
+
'bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 text-white hover:from-pink-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
30
|
+
danger:
|
|
31
|
+
'bg-gradient-to-r from-red-500 via-purple-500 to-indigo-500 text-white hover:from-red-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
32
|
+
success:
|
|
33
|
+
'bg-gradient-to-r from-green-500 via-purple-500 to-indigo-500 text-white hover:from-green-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
34
|
+
warning:
|
|
35
|
+
'bg-gradient-to-r from-yellow-500 via-purple-500 to-indigo-500 text-white hover:from-yellow-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30',
|
|
36
|
+
info: 'bg-gradient-to-r from-blue-500 via-purple-500 to-indigo-500 text-white hover:from-blue-600 hover:via-purple-600 hover:to-indigo-600 focus:ring-purple-500 shadow-purple-500/30'
|
|
30
37
|
};
|
|
31
38
|
|
|
32
39
|
const sizeClasses: Record<typeof size, string> = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { IBaseProps } from "../../../types/base.type.js";
|
|
2
2
|
import type { TSize } from "../../../types/sizes.type.js";
|
|
3
3
|
import type { Snippet } from "svelte";
|
|
4
|
-
export type TButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'gradient';
|
|
4
|
+
export type TButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'gradient' | 'danger' | 'success' | 'warning' | 'info';
|
|
5
5
|
export type TButtonType = 'submit' | 'reset' | 'button';
|
|
6
6
|
export interface Props extends IBaseProps {
|
|
7
|
+
onclick?: () => void;
|
|
7
8
|
variant?: TButtonVariant;
|
|
8
9
|
size?: TSize;
|
|
9
10
|
isLoading?: boolean;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
aria-label="Card"
|
|
14
14
|
{onclick}
|
|
15
15
|
class={[
|
|
16
|
-
'
|
|
16
|
+
'rounded-3xl border border-white/50 bg-white text-black shadow-sm backdrop-blur-xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-white',
|
|
17
17
|
props.class
|
|
18
18
|
]}
|
|
19
19
|
>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Props } from './type.js';
|
|
3
|
+
|
|
4
|
+
const { title, description, ...props }: Props = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class={['flex flex-col', props.class]}>
|
|
8
|
+
<h2 class="text-3xl font-bold text-gray-900 md:text-4xl">{title}</h2>
|
|
9
|
+
<p class="text-xl text-gray-600">{description}</p>
|
|
10
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r2digisolutions/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"packageManager": "bun@1.2.18",
|
|
6
6
|
"publishConfig": {
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@storybook/addon-interactions": "^8.6.14",
|
|
56
56
|
"@storybook/addon-svelte-csf": "5.0.7",
|
|
57
57
|
"@storybook/blocks": "^8.6.14",
|
|
58
|
-
"@storybook/svelte": "^9.0.
|
|
59
|
-
"@storybook/sveltekit": "^9.0.
|
|
58
|
+
"@storybook/svelte": "^9.0.17",
|
|
59
|
+
"@storybook/sveltekit": "^9.0.17",
|
|
60
60
|
"@storybook/test": "^8.6.14",
|
|
61
61
|
"@sveltejs/adapter-static": "^3.0.8",
|
|
62
|
-
"@sveltejs/kit": "^2.
|
|
62
|
+
"@sveltejs/kit": "^2.24.0",
|
|
63
63
|
"@sveltejs/package": "^2.4.0",
|
|
64
|
-
"@sveltejs/vite-plugin-svelte": "^6.
|
|
64
|
+
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
|
65
65
|
"@tailwindcss/postcss": "^4.1.11",
|
|
66
66
|
"@testing-library/svelte": "^5.2.8",
|
|
67
67
|
"@vitest/browser": "^3.2.4",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"prettier-plugin-svelte": "^3.4.0",
|
|
77
77
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
78
78
|
"publint": "^0.3.12",
|
|
79
|
-
"storybook": "^9.0.
|
|
80
|
-
"svelte": "^5.36.
|
|
79
|
+
"storybook": "^9.0.17",
|
|
80
|
+
"svelte": "^5.36.1",
|
|
81
81
|
"svelte-check": "^4.2.2",
|
|
82
82
|
"tailwindcss": "^4.1.11",
|
|
83
83
|
"typescript": "^5.8.3",
|