@r2digisolutions/ui 0.12.1 → 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.
@@ -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
- export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, };
14
+ import Heading from './ui/Heading/Heading.svelte';
15
+ export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, Heading, };
@@ -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
- export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, };
14
+ import Heading from './ui/Heading/Heading.svelte';
15
+ export { Alert, Avatar, Button, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Container, Section, Loading, TableList, Heading, };
@@ -4,6 +4,7 @@ import type { Snippet } from "svelte";
4
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
- 'overflow-hidden 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',
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>
@@ -0,0 +1,4 @@
1
+ import type { Props } from './type.js';
2
+ declare const Heading: import("svelte").Component<Props, {}, "">;
3
+ type Heading = ReturnType<typeof Heading>;
4
+ export default Heading;
@@ -0,0 +1,5 @@
1
+ import type { IBaseProps } from "../../../types/base.type.js";
2
+ export interface Props extends IBaseProps {
3
+ title: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/ui",
3
- "version": "0.12.1",
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.16",
59
- "@storybook/sveltekit": "^9.0.16",
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.23.0",
62
+ "@sveltejs/kit": "^2.24.0",
63
63
  "@sveltejs/package": "^2.4.0",
64
- "@sveltejs/vite-plugin-svelte": "^6.0.0",
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.16",
80
- "svelte": "^5.36.0",
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",