@valerius_petrini/corekit-ui 0.1.92 → 0.1.93
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/display/Copyright/index.stories.svelte +11 -0
- package/dist/components/display/Copyright/index.stories.svelte.d.ts +18 -0
- package/dist/components/display/Copyright/index.svelte +20 -0
- package/dist/components/display/Copyright/index.svelte.d.ts +4 -0
- package/dist/components/display/Copyright/types.d.ts +4 -0
- package/dist/components/display/Copyright/types.js +1 -0
- package/dist/components/display/Skeleton/SkeletonGroup.svelte +23 -0
- package/dist/components/display/Skeleton/SkeletonGroup.svelte.d.ts +4 -0
- package/dist/components/display/Skeleton/types.d.ts +4 -0
- package/dist/components/display/index.d.ts +2 -0
- package/dist/components/display/index.js +1 -0
- package/dist/components/navigation/Footer/index.stories.svelte +17 -0
- package/dist/components/navigation/Footer/index.stories.svelte.d.ts +18 -0
- package/dist/components/navigation/Footer/index.svelte +18 -0
- package/dist/components/navigation/Footer/index.svelte.d.ts +4 -0
- package/dist/components/navigation/Footer/types.d.ts +3 -0
- package/dist/components/navigation/Footer/types.js +1 -0
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import { defineMeta } from "@storybook/addon-svelte-csf";
|
|
3
|
+
import Copyright from "./index.svelte";
|
|
4
|
+
|
|
5
|
+
const { Story } = defineMeta({
|
|
6
|
+
title: "Components/Display/Copyright",
|
|
7
|
+
component: Copyright,
|
|
8
|
+
});
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<Story name="Default" args={{ holder: "Example Inc." }}></Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Index: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Index = InstanceType<typeof Index>;
|
|
18
|
+
export default Index;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import type { CopyrightProps } from "./types";
|
|
4
|
+
import { Text } from "../../typography";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
holder = "",
|
|
8
|
+
class: className = ""
|
|
9
|
+
}: CopyrightProps = $props();
|
|
10
|
+
|
|
11
|
+
const year = $derived(new Date().getFullYear());
|
|
12
|
+
const combined = $derived(twMerge(
|
|
13
|
+
"select-none opacity-80",
|
|
14
|
+
className
|
|
15
|
+
));
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<Text class={combined}>
|
|
19
|
+
© {year} {holder}
|
|
20
|
+
</Text>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { SkeletonGroupProps } from "./types";
|
|
3
|
+
import { Skeleton } from "..";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
variant = "text",
|
|
8
|
+
count = 3,
|
|
9
|
+
element = $bindable(),
|
|
10
|
+
class: className
|
|
11
|
+
}: SkeletonGroupProps = $props();
|
|
12
|
+
|
|
13
|
+
const combinedClass = $derived(twMerge(
|
|
14
|
+
"flex flex-col gap-4 w-full",
|
|
15
|
+
className
|
|
16
|
+
));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<div class={combinedClass} bind:this={element} aria-hidden="true">
|
|
20
|
+
{#each Array(count) as _, i (i)}
|
|
21
|
+
<Skeleton variant={variant}/>
|
|
22
|
+
{/each}
|
|
23
|
+
</div>
|
|
@@ -13,6 +13,7 @@ export { default as TableCell } from "./Table/TableCell.svelte";
|
|
|
13
13
|
export { default as TableBody } from "./Table/TableBody.svelte";
|
|
14
14
|
export { default as TableRow } from "./Table/TableRow.svelte";
|
|
15
15
|
export { default as Image } from "./Image/index.svelte";
|
|
16
|
+
export { default as Copyright } from "./Copyright/index.svelte";
|
|
16
17
|
export type { ImageProps } from "./Image/types.ts";
|
|
17
18
|
export type { CardProps } from "./Card/types.ts";
|
|
18
19
|
export type { DataGridProps } from "./DataGrid/types.ts";
|
|
@@ -25,3 +26,4 @@ export type { TableHeadCellProps } from "./Table/types.ts";
|
|
|
25
26
|
export type { TableCellProps } from "./Table/types.ts";
|
|
26
27
|
export type { TableBodyProps } from "./Table/types.ts";
|
|
27
28
|
export type { TableRowProps } from "./Table/types.ts";
|
|
29
|
+
export type { CopyrightProps } from "./Copyright/types.ts";
|
|
@@ -13,3 +13,4 @@ export { default as TableCell } from "./Table/TableCell.svelte";
|
|
|
13
13
|
export { default as TableBody } from "./Table/TableBody.svelte";
|
|
14
14
|
export { default as TableRow } from "./Table/TableRow.svelte";
|
|
15
15
|
export { default as Image } from "./Image/index.svelte";
|
|
16
|
+
export { default as Copyright } from "./Copyright/index.svelte";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import { defineMeta } from "@storybook/addon-svelte-csf";
|
|
3
|
+
import Footer from "./index.svelte";
|
|
4
|
+
import { Link } from "../../typography";
|
|
5
|
+
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
title: "Components/Navigation/Footer",
|
|
8
|
+
component: Footer,
|
|
9
|
+
argTypes: {
|
|
10
|
+
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<Story name="Default">
|
|
16
|
+
<Link href="mailto:example@gmail.com">mailto:example@gmail.com</Link>
|
|
17
|
+
</Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Index: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Index = InstanceType<typeof Index>;
|
|
18
|
+
export default Index;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import type { FooterProps } from "./types";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
class: className = "",
|
|
7
|
+
children
|
|
8
|
+
}: FooterProps = $props();
|
|
9
|
+
|
|
10
|
+
const combined = $derived(twMerge(
|
|
11
|
+
"w-full h-16 flex items-center justify-center gap-4 px-10 flex-wrap text-sub-text bg-sub-background",
|
|
12
|
+
className
|
|
13
|
+
));
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<footer class={combined}>
|
|
17
|
+
{@render children()}
|
|
18
|
+
</footer>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,8 @@ export { default as NavbarDropdown } from "./Navbar/NavbarDropdown.svelte";
|
|
|
5
5
|
export { default as SideNavbar } from "./SideNavbar/index.svelte";
|
|
6
6
|
export { default as Breadcrumb } from "./Breadcrumb/index.svelte";
|
|
7
7
|
export { default as BreadcrumbItem } from "./Breadcrumb/BreadcrumbItem.svelte";
|
|
8
|
+
export { default as Footer } from "./Footer/index.svelte";
|
|
8
9
|
export type { NavbarProps, NavbarElementProps, NavbarSeparatorProps, NavbarDropdownProps } from "./Navbar/types.ts";
|
|
9
10
|
export type { SideNavbarProps, SideNavbarItem } from "./SideNavbar/types.ts";
|
|
10
11
|
export type { BreadcrumbProps, BreadcrumbItemProps } from "./Breadcrumb/types.ts";
|
|
12
|
+
export type { FooterProps } from "./Footer/types.ts";
|
|
@@ -5,3 +5,4 @@ export { default as NavbarDropdown } from "./Navbar/NavbarDropdown.svelte";
|
|
|
5
5
|
export { default as SideNavbar } from "./SideNavbar/index.svelte";
|
|
6
6
|
export { default as Breadcrumb } from "./Breadcrumb/index.svelte";
|
|
7
7
|
export { default as BreadcrumbItem } from "./Breadcrumb/BreadcrumbItem.svelte";
|
|
8
|
+
export { default as Footer } from "./Footer/index.svelte";
|